In the present day the Ember mission is releasing model 4.1 of Ember.js, Ember Knowledge, and Ember CLI.
This launch kicks off the 4.2 beta cycle for all sub-projects. We encourage our group (particularly addon authors) to assist take a look at these beta builds and report any bugs earlier than they’re revealed as a last launch in six weeks’ time. The ember-try addon is an effective way to repeatedly take a look at your initiatives in opposition to the newest Ember releases.
You’ll be able to learn extra about our normal launch course of right here:
Ember.js
Ember.js is the core framework for constructing bold internet purposes.
Modifications in Ember.js 4.1
Ember.js 4.1 is an incremental, backwards suitable launch of Ember with bug fixes, efficiency enhancements, and minor deprecations.
Bug Fixes
Ember.js 4.1 launched 2 bug fixes.
- Passing an
ObjectProxy
toisEmpty
with a property measurement now throws an assertion (#17570). - The router has been up to date in order that when question params are utilizing a nested worth a
Route
can decide if that nested question param is marked asrefreshModel
. (#18269)
Options
Ember.js 4.1 launched 3 options.
- There’s now a
service
export out there from@ember/service
in favor of the beforehand usedinject
, which was beforehand usually aliased upon import toservice
. (#19776) - A
refresh
methodology has been added to theRouterService
that callsrefresh
on all at the moment lively routes, or if a route identify is supplied, refreshes solely that route supplied and its descendants. (#19471 / #19834) - A
@cached
decorator for memoizing the results of a getter based mostly on autotracking has been added to assist when a getter is pricey and used fairly often. (#19772 / #19826)
Deprecations
Ember.js 4.1 launched 1 deprecation.
- The
AutoLocation
class, which beforehand served to assist detection of browser assist for the Historical past Location API is now deprecated. Nearly all browsers now assist the historical past API, so that is what ‘auto’ will resolve to in nearly each case, rendering theAutoLocation
class pointless. As an alternative, please setlocationType
inconfig/atmosphere.js
to ‘historical past’. (#19510)
Deprecations are added to Ember.js when an API can 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 should not eliminated till a significant launch of the framework.
Think about using the ember-cli-deprecation-workflow addon if you want to improve your utility with out instantly addressing deprecations.
For extra particulars on adjustments in Ember.js 4.1, please evaluation the Ember.js 4.1.0 launch web page.
Ember Knowledge
Ember Knowledge is the official information persistence library for Ember.js purposes.
Modifications in Ember Knowledge 4.1
Bug Fixes
Ember Knowledge 4.1 launched 0 bug fixes.
Options
Ember Knowledge 4.1 launched 0 options.
Deprecations
Ember Knowledge 4.1 launched 0 deprecations.
For extra particulars on adjustments in Ember Knowledge 4.1, please evaluation the
Ember Knowledge 4.1.0 launch web page.
Ember CLI
Ember CLI is the command line interface for managing and packaging Ember.js purposes.
Upgrading Ember CLI
You could improve Ember CLI utilizing the ember-cli-update
mission:
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 in all probability encounter merge conflicts, during which the default habits is to allow you to resolve conflicts by yourself. For extra info on the ember-cli-update
mission, see the GitHub README.
Whereas it’s endorsed to maintain Ember CLI variations in sync with Ember and Ember Knowledge, this isn’t required. After updating ember-cli, you possibly can maintain your present model(s) of Ember or Ember Knowledge by modifying bundle.json
to revert the adjustments to the traces containing ember-source
and ember-data
.
Modifications in Ember CLI 4.1
Bug Fixes
Ember CLI 4.1 launched 0 bug fixes.
Options
Ember CLI 4.1 launched 0 options.
Deprecations
Ember CLI 4.1 launched 0 deprecations.
For extra particulars on the adjustments in Ember CLI 4.1 and detailed improve
directions, please evaluation the Ember CLI 4.1.0 launch web page.
Thank You!
As a community-driven open-source mission with an bold scope, every of those releases serves as a reminder that the Ember mission wouldn’t have been doable with out your continued assist. We’re extraordinarily grateful to our contributors for his or her efforts.