Today the Ember project is releasing version 3.22 of Ember.js, Ember Data, and Ember CLI.
This release kicks off the 3.23 beta cycle for all sub-projects. We encourage our community (especially addon authors) to help test these beta builds and report any bugs before they are published as a final release in six weeks' time. The ember-try addon is a great way to continuously test your projects against the latest Ember releases.
You can read more about our general release process here:
Ember.js is the core framework for building ambitious web applications.
Changes in Ember.js 3.22
Ember.js 3.22 is an incremental, backwards compatible release of Ember with bugfixes, performance improvements, and minor deprecations.
Ember.js 3.22 introduced several bug fixes, including:
RouterService#isActiveupdates correctly when the route changes. (#19094)
- A custom modifier manager only consumes arguments that it actually uses. (Previously, the manager would eagerly consume all arguments.) In order for specific modifiers to take advantage of this change, they need to call
- Modifier manager accepts the resolved value of
owner.factoryFordirectly. This approach aligns with how helpers and component managers work. (#19170)
- Changes made to
3.22.0-beta.2+) work in
Ember.js 3.22 introduced 3 features.
@ember/destroyableAPI, which allows you to create and manage your own destroyables. For more information, please see the Destroyables RFC.
- Enabled Cache API, a low-level primitive for memoizing the result of a function based on autotracking. (You can install a polyfill for apps between versions 3.13 and 3.21.) For more information, please check the Ember Guides and Autotracking Memoization RFC.
- Allowed passing the
transitionobject to 2 route hooks,
Ember.js 3.22 introduced 0 deprecations.
Ember Data is the official data persistence library for Ember.js applications.
Changes in Ember Data 3.22
Ember Data 3.22 included several bug fixes of note, including:
- several fixes ensuring that the
Errors.errorsForarray and subarray are properly updated and that autotracking works #7273, #7330, and #7331;
- #7322 disables the esm cache to solve build time errors some applications were experiencing; and
- #7126 addresses relationship state when sideposting with
Ember Data 3.22 introduced 0 features.
Ember Data 3.22 introduced 1 deprecation.
- Use of
najaxhas been deprecated in favor of
ember-fetchwhen fastboot is installed.
For more details on changes in Ember Data 3.22, please review the Ember Data 3.22.0 release page.
Ember CLI is the command line interface for managing and packaging Ember.js applications.
Upgrading Ember CLI
You may upgrade Ember CLI easily using the ember-cli-update project:
This utility will help you to update your app or addon to the latest Ember CLI version. You will probably encounter merge conflicts, in which the default behavior is to let you resolve conflicts on your own. For more information on the
ember-cli-update project, see the GitHub README.
While it is recommended to keep Ember CLI versions in sync with Ember and Ember Data, this is not required. After updating ember-cli, you can keep your current version(s) of Ember or Ember Data by editing
package.json to revert the changes to the lines containing
Changes in Ember CLI 3.22
Ember CLI 3.22 includes only internal changes. However, please note that eslint-plugin-ember released a new major version,
v9.x. The new version introduces 6 recommended rules and removes support of Node
New Ember apps will install
v9 or higher of
eslint-plugin-ember, which may limit the version of Node that you use. To learn more, please check out the changelog for
Ember CLI 3.22 introduced 0 features.
Ember CLI 3.22 introduced 0 deprecations.
For more details on the changes in Ember CLI 3.22 and detailed upgrade instructions, please review the Ember CLI 3.22.0 release page.
As a community-driven open-source project with an ambitious scope, each of these releases serves as a reminder that the Ember project would not have been possible without your continued support. We are extremely grateful to our contributors for their efforts.