Wednesday, May 8, 2024
HomeJavaScriptEmber 3.22 Launched

Ember 3.22 Launched


As we speak the Ember challenge is releasing model 3.22 of Ember.js, Ember Information, and Ember CLI.

This launch kicks off the three.23 beta cycle for all sub-projects. We encourage our neighborhood (particularly addon authors) to assist take a look at 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 take a look at your tasks towards the most recent Ember releases.

You possibly can learn extra about our common launch course of right here:


Ember.js

Ember.js is the core framework for constructing formidable internet functions.

Modifications in Ember.js 3.22

Ember.js 3.22 is an incremental, backwards suitable launch of Ember with bugfixes, efficiency enhancements, and minor deprecations.

Ember.js 3.22 launched a number of bug fixes, together with:

  • RouterService#isActive updates appropriately when the route adjustments. (#19094)
  • A customized modifier supervisor solely consumes arguments that it really makes use of. (Beforehand, the supervisor would eagerly eat all arguments.) To ensure that particular modifiers to make the most of this alteration, they should name modifierCapabilities('3.22') (as a substitute of '3.13'). (#19163)
  • Modifier supervisor accepts the resolved worth of proprietor.factoryFor immediately. This strategy aligns with how helpers and element managers work. (#19170)
  • Modifications made to protocolForUrl (in 3.22.0-beta.2+) work in fastboot@3.1.0 surroundings by leveraging the native JavaScript URL international. (#19124)

New Options

Ember.js 3.22 launched 3 options.

  1. Enabled @ember/destroyable API, which lets you create and handle your individual destroyables. For extra data, please see the Destroyables RFC.
  2. Enabled Cache API, a low-level primitive for memoizing the results of a operate based mostly on autotracking. (You possibly can set up a polyfill for apps between variations 3.13 and three.21.) For extra data, please examine the Ember Guides and Autotracking Memoization RFC.
  3. Allowed passing the transition object to 2 route hooks, activate and deactivate.

Deprecations

Ember.js 3.22 launched 0 deprecations.


Ember Information

Ember Information is the official knowledge persistence library for Ember.js functions.

Modifications in Ember Information 3.22

Ember Information 3.22 included a number of bug fixes of observe, together with:

  • a number of fixes making certain that the Errors.errorsFor array and subarray are correctly up to date and that autotracking works #7273, #7330, and #7331;
  • #7322 disables the esm cache to unravel construct time errors some functions had been experiencing; and
  • #7126 addresses relationship state when sideposting with lid.

New Options

Ember Information 3.22 launched 0 options.

Deprecations

Ember Information 3.22 launched 1 deprecation.

  1. Use of najax has been deprecated in favor of ember-fetch when FastBoot is put in. To discover ways to migrate your app, please see the Deprecations Information.

For extra particulars on adjustments in Ember Information 3.22, please evaluation the
Ember Information 3.22.0 launch web page.


Ember CLI

Ember CLI is the command line interface for managing and packaging Ember.js functions.

Upgrading Ember CLI

It’s possible you’ll improve Ember CLI simply utilizing the ember-cli-update challenge:

npx ember-cli-update

This utility will enable you to replace your app or addon to the most recent Ember CLI model. You’ll in all probability encounter merge conflicts, by which the default conduct is to allow you to resolve conflicts by yourself. For extra data on the ember-cli-update challenge, see the GitHub README.

Whereas it is strongly recommended to maintain Ember CLI variations in sync with Ember and Ember Information, this isn’t required. After updating ember-cli, you may preserve your present model(s) of Ember or Ember Information by enhancing package deal.json to revert the adjustments to the strains containing ember-source and ember-data.

Modifications in Ember CLI 3.22

Ember CLI 3.22 contains solely inner adjustments. Nonetheless, please observe that eslint-plugin-ember launched a brand new main model, v9.x. The brand new model introduces 6 really helpful guidelines and removes help of Node v13.

New Ember apps will set up v9 or larger of eslint-plugin-ember, which can restrict the model of Node that you just use. To be taught extra, please try the changelog for eslint-plugin-ember.

New Options

Ember CLI 3.22 launched 0 options.

Deprecations

Ember CLI 3.22 launched 0 deprecations.


For extra particulars on the adjustments in Ember CLI 3.22 and detailed improve
directions, please evaluation the Ember CLI 3.22.0 launch web page.

Thank You!

As a community-driven open-source challenge with an formidable scope, every of those releases serves as a reminder that the Ember challenge wouldn’t have been doable with out your continued help. We’re extraordinarily grateful to our contributors for his or her efforts.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments