


























Today the Ember project is releasing version 6.3 of Ember.js and Ember CLI.
This release kicks off the 6.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 6.3 is an incremental, backwards compatible release of Ember with bug fixes, performance improvements, and minor deprecations.
Ember.js 6.3 includes 1 noteworthy bug fix:
helper wrapper from the helper generator; Plain functions as helpers have been supported since v4.5.Ember.js 6.3 introduces 1 new feature.
Following RFC #1046, Ember now supports the use of <template> authoring-format Glimmer components (gjs | gts) in place of route templates.
This is a replacement for the ember-route-template addon.
Ember.js 6.3 introduces 1 new deprecation.
The export is renamed to service per RFC #0752. See the deprecation guide for more information.
For more details on changes in Ember.js 6.3, please review the Ember.js 6.3.0 release page.
EmberData is the official data persistence library for Ember.js applications.
EmberData broke from Lockstep versioning in November 2023. Under the new policy, EmberData 5.3 is an LTS that supports ember-source 5.12 and ember-source 6.0. More compatibility info is available in the README.
EmberData is also in the process of rebranding to WarpDrive. Stay tuned for more info!
This support extends beyond bug-fixes. If minor enhancements can be made to better support new presentation class implementations that support the 5.x series we will willingly accept them. Our goal is that we want no one left behind.
To learn about the motivation and goals for upcoming changes to EmberData in 5.x, read the blog post, EmberData 5.X Update.
This will help you form the mental model of what to expect across the 5.x series, and understand deprecation removals in the context of the upcoming goals.
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.
It is not required to keep Ember CLI versions in sync with Ember and EmberData. 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 6.3 includes 4 noteworthy bug fixes:
Ember CLI 6.3 introduces 5 new feature and noteworthy enhancements:
Prettier setup per RFC #1055#10596 moves the default Prettier setup to no longer be run through linters (ESLint, Stylelint) but to be run directly.
The following scripts are adding to package.json via the blueprint:
npm run format runs prettier . --cache --write. This will format all files with Prettier that are not ignored in the Prettier configuration. Previously this would only have applied to files configured in your linters. npm run lint:fix will run this command.npm run lint:format runs prettier . --cache --check This runs prettier as a linter and allows npm run lint to fail if prettier has not run.As noted in the RFC: we use format instead of lint:format:fix, because we don't want to run Prettier parallel to ESLint and Stylelint when fixing lint errors. The lint:fix script will always run format last to avoid competing changes.
Prettier will now run over all files, not just JavaScript and TypeScript. Files can be excludde by adding globs to the .prettierignore file.
#10588 Adds the ember-cli-deprecation-workflow addon to the default blueprint for apps and generates the setup for the addon as well.
The addon enables collecting deprecations as they happen and creating a configuration so that you can silence deprecations or make them throw. See the README for more information.
For example, you may wish to silence a deprecation that is coming from an addon while you await an updated version, or you may wish to cause a deprecation to throw that you have already cleared and do not wish to allow to regress.
staticInvokables in the app (embroider) blueprintEmber CLI 6.3 introduces 1 new deprecation:
contentFor types per RFC #1029#10589 deprecates contentFor with the following types:
The deprecation guide is not yet published but the content can be read in the RFC.
For more details on the changes in Ember CLI 6.3 and detailed upgrade instructions, please review the Ember CLI 6.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阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。