At this time the Ember mission is releasing model 6.3 of Ember.js and Ember CLI.
This launch kicks off the 6.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 revealed as a closing launch in six weeks’ time. The ember-try addon is a good way to constantly check your tasks towards the newest Ember releases.
You may learn extra about our normal launch course of right here:
Ember.js
Ember.js is the core framework for constructing bold net purposes.
Adjustments in Ember.js 6.3
Ember.js 6.3 is an incremental, backwards suitable launch of Ember with bug fixes, efficiency enhancements, and minor deprecations.
Bug fixes
Ember.js 6.3 consists of 1 noteworthy bug repair:
Options
Ember.js 6.3 introduces 1 new function.
#20800 Template Tag help in Routes
Following RFC #1046, Ember now helps using <template>
authoring-format Glimmer parts (gjs | gts) instead of route templates.
This can be a substitute for the ember-route-template addon.
Deprecations
Ember.js 6.3 introduces 1 new deprecation.
#20526 Deprecates importing inject from @ember/service.
The export is renamed to service per RFC #0752. See the deprecation information for extra data.
For extra particulars on adjustments in Ember.js 6.3, please evaluation the Ember.js 6.3.0 launch web page.
EmberData
EmberData is the official information persistence library for Ember.js purposes.
EmberData broke from Lockstep versioning in November 2023. Below the brand new coverage, EmberData 5.3 is an LTS that helps ember-source
5.12 and ember-source
6.0. Extra compatibility data is on the market within the README.
EmberData can also be within the means of rebranding to WarpDrive. Keep tuned for more information!
This help extends past bug-fixes. If minor enhancements could be made to higher help new presentation class implementations that help the 5.x sequence we’ll willingly settle for them. Our aim is that we wish nobody left behind.
To be taught concerning the motivation and objectives for upcoming adjustments to EmberData in 5.x,
learn the weblog submit, EmberData 5.X Replace.
This may make it easier to type the psychological mannequin of what to anticipate throughout the 5.x sequence,
and perceive deprecation removals within the context of the upcoming objectives.
Ember CLI
Ember CLI is the command line interface for managing and packaging Ember.js purposes.
Upgrading Ember CLI
You might improve Ember CLI utilizing the ember-cli-update
mission:
npx ember-cli-update
This utility will make it easier to to replace your app or addon to the newest Ember CLI model. You’ll most likely 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
mission, see the GitHub README.
It isn’t required to maintain Ember CLI variations in sync with Ember and EmberData. After updating ember-cli, you may preserve your present model(s) of Ember or EmberData by modifying package deal.json
to revert the adjustments to the traces containing ember-source
and ember-data
.
Adjustments in Ember CLI 6.3
Bug fixes
Ember CLI 6.3 consists of 4 noteworthy bug fixes:
- #10612 Repair ember-data TS config in monorepo when utilizing npm or yarn v1
- #10592 Repair ESLint config for v1 addons
- #10633 / #10638 Repair Ember Information package deal variations within the blueprint
- #10643 Take away unmaintained ember-cli-lodash-subset in favor of requiring capabilities immediately from lodash
Options
Ember CLI 6.3 introduces 5 new function and noteworthy enhancements:
Vanilla Prettier
setup per RFC #1055
#10596 strikes the default Prettier
setup to not be run by linters (ESLint, Stylelint) however to be run immediately.
The next scripts are including to package deal.json by way of the blueprint:
npm run format
runsprettier . --cache --write
. This may format all recordsdata with Prettier that aren’t ignored within the Prettier configuration. Beforehand this may solely have utilized to recordsdata configured in your linters.npm run lint:repair
will run this command.npm run lint:format
runsprettier . --cache --check
This runsprettier
as a linter and permitsnpm run lint
to fail if prettier has not run.
As famous within the RFC: we use format
as an alternative of lint:format:repair
, as a result of we do not wish to run Prettier parallel to ESLint and Stylelint when fixing lint errors. The lint:repair
script will at all times run format
final to keep away from competing adjustments.
Prettier will now run over all recordsdata, not simply JavaScript and TypeScript. Information could be excludde by including globs to the .prettierignore
file.
Add ember-cli-deprecation-workflow to app blueprint per RFC #1009
#10588 Provides the ember-cli-deprecation-workflow
addon to the default blueprint for apps and generates the setup for the addon as nicely.
The addon permits gathering deprecations as they occur and making a configuration with the intention to silence deprecations or make them throw. See the README for extra data.
For instance, you might want to silence a deprecation that’s coming from an addon when you await an up to date model, or you might want to trigger a deprecation to throw that you’ve already cleared and don’t want to enable to regress.
Different enhancements of notice
- #10613 Help –ember-data / –no-ember-data flags when creating a brand new app
- #10617 Use
staticInvokables
within the app (embroider) blueprint - #10595 Replace @glimmer/element to v2 in blueprints
Deprecations
Ember CLI 6.3 introduces 1 new deprecation:
Deprecate v1 addon contentFor
sorts per RFC #1029
#10589 deprecates contentFor
with the next sorts:
- app-prefix
- app-suffix
- tests-prefix
- tests-suffix
- vendor-prefix
- vendor-suffix
The deprecation information is just not but revealed however the content material could be learn within the RFC.
For extra particulars on the adjustments in Ember CLI 6.3 and detailed improve
directions, please evaluation the Ember CLI 6.3.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 potential with out your continued help. We’re extraordinarily grateful to our contributors for his or her efforts.