



























– By Jared Galanis
Today the Ember project is releasing version 4.12 of Ember.js, EmberData, and Ember CLI.
This release kicks off the 5.0 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 4.12 is an incremental, backwards compatible release of Ember with bug fixes, performance improvements, and minor deprecations.
Ember.js 4.12 introduced 3 bug fixes.
bind were flagged with an assignability error.Ember.js 4.12 introduced 3 features.
isTypeScriptProject is true without additional environment variables per RFC #800.Ember.js 4.12 introduced 0 deprecations.
Deprecations are added to Ember.js when an API will be removed at a later date. Each deprecation has an entry in the deprecation guide describing the migration path to a more stable API. Deprecated public APIs are not removed until a major release of the framework. No new deprecations are allowed after the .10 release, to minimize churn before the next major release.
Consider using the ember-cli-deprecation-workflow addon if you would like to upgrade your application without immediately addressing deprecations.
For more details on changes in Ember.js 4.12, please review the Ember.js 4.12.0 release page.
EmberData is the official data persistence library for Ember.js applications.
There were many significant changes to EmberData in 4.12, including:
@ember-data/request and the RequestManager, a package that can be used independently (but also comes bundled with ember-data) that re-envisions how data fetching is managed for both EmberData and applications more broadly - see the docs and related RFC;store.request, requests are now capable of providing a cache-key or being cached by URL, with full lifecycle control and notification subscriptions. Documents are a first-class citizen of the Cache and EmberData more broadly. To go with this, the JSON:API cache previously provided by @ember-data/record-data is now upgraded to the 2.1 spec and available as the @ember-data/json-api package. While this cache does not yet implement the full suite of cache 2.1 APIs, support for all Cache 2.1 APIs has been added to the store. Read more about Cache 2.1 in the related RFC.EmberData 4.12 introduced 20 bug fixes.
EmberData 4.12 introduced 24 features.
EmberData 4.12 introduced 2 deprecation removals.
We are not detailing all the work done in this release, here, so for more details on changes in EmberData 4.12 please review the thorough notes on the EmberData 4.12.0 release page and the EmberData changelog
Ember CLI is the command line interface for managing and packaging Ember.js applications.
You may upgrade Ember CLI 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 EmberData, this is not required. After updating ember-cli, you can keep your current version(s) of Ember or EmberData by editing package.json to revert the changes to the lines containing ember-source and ember-data.
Ember CLI
Ember CLI did not introduce new bug fixes, features or deprecations, but there were a few updates that added ember-modifier and tracked-built-ins to the app blueprint and there was one update addressing a dependency vulnerability.
Ember CLI 4.12 introduced 2 bug fixes.
addon command should throw when no addon name is providedEmber CLI 4.12 introduced 11 features.
app and addon blueprintsapp and addon blueprintsember-cli-terser when generating apps using the --embroider optionember-cli-sri when generating apps using the --embroider optionapp.import comment in app blueprintember-welcome-page to v7 in app blueprintecmaVersion to latest in app blueprintaddon blueprint - Remove v3.28 LTS and ember-classic scenarioEmber CLI 4.12 introduced 0 deprecations.
For more details on the changes in Ember CLI 4.12 and detailed upgrade instructions, please review the Ember CLI 4.12.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阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。