-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): update dependency ember-intl to v6 - autoclosed #810
Conversation
aad5608
to
7e99335
Compare
7e35efd
to
f371581
Compare
f371581
to
3c8923f
Compare
06693f5
to
bb8176a
Compare
bb8176a
to
b972b74
Compare
b972b74
to
4dbf136
Compare
⚠ Artifact update problemRenovate failed to update an artifact related to this branch. You probably do not want to merge this PR as-is. ♻ Renovate will retry this branch, including artifacts, only when one of the following happens:
The artifact failure details are included below: File name: yarn.lock
|
1b4c94c
to
2533ea8
Compare
185c10d
to
98bf141
Compare
98bf141
to
85831a0
Compare
85831a0
to
a198019
Compare
|
This PR contains the following updates:
^5.7.2
->^6.5.5
Release Notes
ember-intl/ember-intl (ember-intl)
v6.5.5
: Added @babel/core as a dependency (required by ember-cli-babel@v8)Compare Source
Thanks to @mkszepp. (The patch can also be found in
v7.0.0-beta.5
.)v6.5.4
: Removed broccoli-merge-files (security patch)Compare Source
Thanks to @LucasHill for removing the dependency. (The patch can also be found in
v7.0.0-beta.3
.)v6.5.3
: Fixed a memory leak introduced in v6.3.0. Ensured that registerDestructor is called when helpers are destroyed.Compare Source
Thanks to @johanrd for investigating the issue and providing the fix quickly.
v6.5.2
: Updated ember-cli-typescript to v5.3.0. Deprecatedember g translation
.Compare Source
Updating
ember-cli-typescript
will help remove warnings thatember-intl
(along with other addons) might have produced.WARNING: ember-cli-typescript requires ember-cli-babel ^7.17.0, but you have version 8.0.0 installed; your TypeScript files may not be transpiled correctly
v6.5.1
: Documented how to provide translations in apps, v1 addons, and v2 addonsCompare Source
In the
docs
folder, I created 3 additional projects so that there's a living documentation (tested in CI) of how apps, v1 addons, and v2 addons can provide translations.I also updated the documentation site. You will find new content in:
Getting Started > Overview
Getting Started > Quickstart (Apps)
Getting Started > Quickstart (Addons)
v6.5.0
: Refactored intl service and private utilitiesCompare Source
Thanks to @bertdeblock for fixing a URL typo in the blueprints.
v6.4.1
: Updated dependencies. Added ember-lts-5.4 to ember-try scenarios.Compare Source
The dependencies of
ember-intl
(in particular,@types/ember__runloop
and@types/ember__template
) have been updated to the latest version. This may fix the error messages shown below:Thanks to @jelhan.
v6.4.0
: Improved DX and deprecated macrosCompare Source
What changed?
setLocale()
andaddTranslation()
to callsettled()
v7.0.0
)<template>
-tag support (allowed importing helpers fromindex
)Migration guide
Test helpers
Before
v6.4.0
, callingsetLocale()
andaddTranslations()
wouldn't have an effect on the application in tests. You might have had to callawait settled()
or use something from@ember/runloop
to trigger an update.Now, the test helpers handle the update and mean the following in tests:
setLocale()
- update the locale as if the user had somehow changed their preferred languageaddTranslations()
- update the translations as if you had somehow added them (e.g. via lazy loading)You will want to search your test files for
setLocale(
,addTranslations(
, andember-intl/test-support
, then migrate code as follows:Example:
setLocale()
Example:
addTranslations()
Macros
In classic and Glimmer components, inject the
intl
service to access its methods. If you want to create a value that depends on other things, you can use the@computed
decorator (i.e. create a computed property) in classic and the native getter in Glimmer components. Alternatively, you can useember-intl
's helpers in the template.Before: A classic component with macros
After: A Glimmer component with getters
Helpers in
<template>
-tag componentsBefore
v6.4.0
, you had to remember and write the full path to use one ofember-intl
's helpers in a<template>
-tag component. Now, you can import all helpers from theindex
file.Example:
t()
v6.3.2
: Fixed two regressions introduced in v6.3.0Compare Source
What changed?
Reverted the removal of the class property
allowEmpty
If you happened to overwrite an
ember-intl
's helper so that, in your app, the helper allows "empty" values by default, then you may continue to use the following syntax:However, this (overwriting the addon, especially through inheritance) is not recommended, as implementation details can change in the future.
Allowed the intl service to handle removing event listeners
In addition to separating concerns better, the pull request fixes an error that you might have seen in your tests after installing
[email protected]
or6.3.1
.v6.3.1
: Updated helper signatures. Rewrote tests for helpers.Compare Source
I fixed the type issues introduced in
6.3.0
. All helpers have a return type ofstring
once again.v6.3.0
: Remove inheritance among helpersCompare Source
I removed the base helper
-format-base.js
so that the code for each helper is easier to understand and maintain.Example of a migration
Compared to
v6.2.2
, the unpacked size may be slightly larger (~2 kB). On the plus side, a few type errors and hidden bugs (runtime errors) should be fixed now. Since the code change is large, I went with a minor release to be on the safe side.v6.2.2
: Fixed a type regressionCompare Source
If you encountered TypeScript errors of the following form after installing
6.2.0
or6.2.1
,please try installing
6.2.2
instead. As a temporary fix, I cast the return type of the test helpert()
to bestring
.v6.2.1
: Enabled embroider-safe and embroider-optimized scenarios. Updated dependencies.Compare Source
In CI (continuous integration), we can now show that
ember-intl
(still a v1 addon) passesembroider-safe
andembroider-optimized
scenarios.To ease maintenance, I removed 3 dependencies (
lodash.omit
,has-unicode
, andlocale-emoji
) that affect the private implementation. The removal shouldn't affect the public API, so I believe we can do with a patch release.v6.2.0
: Introduced workspaces. Updated @glint/* to v1.2.1.Compare Source
I changed the project structure to resemble that of a v2 addon. Workspaces should also help us understand the dependencies of each package and the origin of an error. The latter is demonstrated by the ability to update
@glint/*
packages from0.9.7
to the latest.v6.1.2
: Updated dependencies and addressed vulnerabilitiesCompare Source
Sample patch file for
[email protected]
v6.1.1
: Failed attempt to address a vulnerabilityCompare Source
v6.1.0
: Beginning of the 6.x seriesAlmost 2 years passed since
5.7.2
had been released. Many thanks to those who have continued to useember-intl
and even tried out6.0.0-beta.x
.If you run into a breaking change that hasn't been documented, please let us know by opening an issue and/or creating a pull request.
https://ember-intl.github.io/ember-intl/docs/guide/migration-5-0-to-6-1
v6.0.0
Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.