As we speak the Ember venture is releasing model 5.3 of Ember.js, EmberData, and Ember CLI.
This launch kicks off the 5.4 beta cycle for all sub-projects. We encourage our group (particularly addon authors) to assist check these beta builds and report any bugs earlier than they’re printed as a remaining launch in six weeks’ time. The ember-try addon is an effective way to repeatedly check your tasks in opposition to the newest Ember releases.
You may learn extra about our basic launch course of right here:
Ember.js
Ember.js is the core framework for constructing bold internet purposes.
Modifications in Ember.js 5.3
Ember.js 5.3 is an incremental, backwards appropriate launch of Ember with bug fixes, efficiency enhancements, and minor deprecations.
Deprecations
Ember.js 5.3 launched 1 deprecation.
- Deprecate implicit report loading in Ember Route per RFC #774. Please see the deprecation information for extra data.
Deprecations are added to Ember.js when an API will likely be eliminated at a later date. Every deprecation has an entry within the deprecation information describing the migration path to a extra steady API. Deprecated public APIs usually are not eliminated till a serious launch of the framework.
Think about using the ember-cli-deprecation-workflow addon if you want to improve your software with out instantly addressing deprecations.
For extra particulars on adjustments in Ember.js 5.3, please assessment the Ember.js 5.3.0 launch web page.
EmberData
EmberData is the official knowledge persistence library for Ember.js purposes.
Modifications in EmberData 5.3
Bug Fixes
EmberData 5.3 launched 10 bug fixes. Particulars are within the
EmberData 5.3.0 launch web page.
Options
EmberData 5.3 launched a number of new options.
This launch primarily centered on polish for the RequestManager
story, introducing builder utils, builders for REST
ActiveRecord
and JSON:API
requests in addition to serialization utils for JSON:API
requests.
As a part of transport serialization utils, we carried out a number of long-awaited cache options to help them:
cache.changedRelationships
retrieves a diff of what has been added or faraway from every relationship for a useful resourcecache.hasChangedRelationships
solutions whether or not any relationships have modified for a useful resourcecache.rollbackRelationships
will reset all relationships for that useful resource to their “distant” state, eradicating any native adjustments.
Deprecations
EmberData 5.3 launched 5 deprecations.
As a part of our ongoing efforts to modernize the library and to help the above adjustments, we carried out a number of new deprecations.
- Deprecate legacy import paths (
ember-data/
) apart fromember-data/retailer
- Deprecate non-strict-type (e.g. “customers” or “myType” as a substitute of “person” and “my-type”)
- Deprecate non-strict-id (e.g .
1
as a substitute of"1"
)
And in relationships particularly:
- deprecate fixing non-unique relationship payloads (when the identical report is referenced a number of instances in a associated assortment)
- deprecate distant updates clearing native adjustments (an upcoming weblog put up will clarify the brand new habits right here intimately)
For extra particulars on adjustments in EmberData 5.3, please assessment the
EmberData 5.3.0 launch web page.
Ember CLI
Ember CLI is the command line interface for managing and packaging Ember.js purposes.
Upgrading Ember CLI
Chances are you’ll improve Ember CLI utilizing the ember-cli-update
venture:
npx ember-cli-update
This utility will show you how to to replace your app or addon to the newest Ember CLI model. You’ll most likely encounter merge conflicts, during which the default habits is to allow you to resolve conflicts by yourself. For extra data on the ember-cli-update
venture, see the GitHub README.
Whereas it’s endorsed to maintain Ember CLI variations in sync with Ember and EmberData, this isn’t required. After updating ember-cli, you’ll be able to hold your present model(s) of Ember or EmberData by modifying bundle.json
to revert the adjustments to the traces containing ember-source
and ember-data
.
Modifications in Ember CLI 5.3
Options
Ember CLI 5.3 launched 1 new characteristic:
- #10337 – the characteristic flag for pnpm help was eliminated, formally permitting utilizing of the
--pnpm
flag.
Bug Fixes
Ember CLI 5.3 launched 3 bug fixes.
Deprecations
Ember CLI 5.3 launched 1 deprecation.
- Deprecate outputPaths construct choice, as output paths will now not be predetermined below Embroider
For extra particulars on the adjustments in Ember CLI 5.3 and detailed improve
directions, please assessment the Ember CLI 5.3.0 launch web page.
Thank You!
As a community-driven open-source venture with an bold scope, every of those releases serves as a reminder that the Ember venture wouldn’t have been doable with out your continued help. We’re extraordinarily grateful to our contributors for his or her efforts.