



























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.
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#isActive updates correctly when the route changes. (#19094)modifierCapabilities('3.22') (instead of '3.13'). (#19163)owner.factoryFor directly. This approach aligns with how helpers and component managers work. (#19170)protocolForUrl (in 3.22.0-beta.2+) work in fastboot@3.1.0 environment by leveraging the native JavaScript URL global. (#19124)Ember.js 3.22 introduced 3 features.
@ember/destroyable API, which allows you to create and manage your own destroyables. For more information, please see the Destroyables RFC.transition object to 2 route hooks, activate and deactivate.Ember.js 3.22 introduced 0 deprecations.
Ember Data is the official data persistence library for Ember.js applications.
Ember Data 3.22 included several bug fixes of note, including:
Errors.errorsFor array and subarray are properly updated and that autotracking works #7273, #7330, and #7331;lid.Ember Data 3.22 introduced 0 features.
Ember Data 3.22 introduced 1 deprecation.
najax has been deprecated in favor of ember-fetch when FastBoot is installed. To learn how to migrate your app, please see the Deprecations Guide.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.
You may upgrade Ember CLI easily using the ember-cli-update project:
npx ember-cli-update
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 ember-source and ember-data.
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 v13.
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 eslint-plugin-ember.
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.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。