



























Today the Ember project is releasing version 5.3 of Ember.js, EmberData, and Ember CLI.
This release kicks off the 5.4 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 5.3 is an incremental, backwards compatible release of Ember with bug fixes, performance improvements, and minor deprecations.
Ember.js 5.3 introduced 1 deprecation.
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.
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 5.3, please review the Ember.js 5.3.0 release page.
EmberData is the official data persistence library for Ember.js applications.
EmberData 5.3 introduced 10 bug fixes. Details are in the EmberData 5.3.0 release page.
EmberData 5.3 introduced several new features.
This release primarily focused on polish for the RequestManager story, introducing builder utils, builders for REST ActiveRecord and JSON:API requests as well as serialization utils for JSON:API requests.
As part of shipping serialization utils, we implemented several long-awaited cache features to support them:
cache.changedRelationships retrieves a diff of what has been added or removed from each relationship for a resourcecache.hasChangedRelationships answers whether any relationships have changed for a resourcecache.rollbackRelationships will reset all relationships for that resource to their "remote" state, removing any local changes.EmberData 5.3 introduced 5 deprecations.
As part of our ongoing efforts to modernize the library and to support the above changes, we implemented several new deprecations.
ember-data/) except for ember-data/store1 instead of "1")And in relationships specifically:
For more details on changes in EmberData 5.3, please review the EmberData 5.3.0 release page.
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 5.3 introduced 1 new feature:
--pnpm flag.Ember CLI 5.3 introduced 3 bug fixes.
Ember CLI 5.3 introduced 1 deprecation.
For more details on the changes in Ember CLI 5.3 and detailed upgrade instructions, please review the Ember CLI 5.3.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阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。