Ember 3.15 “Octane” released

Today, the Ember project released version 3.15 of Ember.js, Ember Data, and Ember CLI.In addition to bringing new features and bug fixes, Ember 3.15 also marks the official release Octane Edition, This is Ember’s first Version release.

Ember developers using the Octane version can use modern features such as native ES classes, decorators, new Glimmer component API, and a new state management method called tracking properties. Combined, these innovative changes of Ember are not just new tools and APIs. Together, the characteristics of Octane constitute a paradigm shift in how Ember applications are built.

Read more about how Octane makes web application development fun and efficient
Octane is here, From Yehuda’s blog post.

…And then explore our fully updated and updated guide and API documentation:

In addition to the Octane version, today you can also find the 3.16-beta.1 version released for Ember.js, Ember Data and Ember CLI. As always, we encourage our community (especially plugin authors) to help test these beta versions and report any bugs before they are released as the final version in six weeks.

You can read more about Ember’s general release process at Publish dashboard.

Other changes in Ember.js 3.15

When the API will be removed in the future, a deprecation will be added to Ember.js. Each deprecation guide has an entry in the deprecation guide that describes the migration path to a more stable API. Before the major version of the framework is released, the deprecated public API will not be removed.

Consider using ember-cli-deprecated-workflow addon If you want to upgrade your application without immediately solving the deprecation issue.

There are three deprecations in Ember.js v3.15.0.

Deprecated Component#isVisible (1 of 3)

Classic Ember components support the use isVisible Property to switch the visibility of the root element of the component. This API was common in early Ember 1.x applications, but it is rare today.In practice, the use of template binding has replaced the use of isVisible Application programming interface.

isVisible Deprecated since Ember 3.15.

To get rid of this situation, we recommend using conditions in the template:

{{#if this.showComponent}}
  <MyComponent />

{{! or }}
<div hidden={{this.isHidden}}></div>

see Deprecation guide

Want more information.

Deprecated {{partial}} (2 out of 3)

As of introduction Template component only
with Low light component,as well as

Optional function {{partial}} The API in Ember no longer provides any unique benefits. On the contrary, it has several disadvantages, including difficulty in teaching range rules and poor performance.

see Deprecation guide
Examples of how to migrate existing uses to component APIs.

Abandon intimacy window.ENV API (3 of 3)

The Ember app was switched to use a long time ago window.EmberENV As a home for various configuration options.Starting from 3.15.0 application code, it uses window.ENV
Configuration values ​​for Ember will cause a deprecation warning to be issued. 3.17.0 will remove support for this intimate API.

Look emberjs/ember.js # 18441
More details about this deprecation.

For more details about the changes in Ember.js 3.15, please check Ember.js 3.15.0 release page.

Embers data

Ember Data is the official data persistence library for Ember.js applications.

EmberData v.3.15.0 has two new features and is not deprecated.

Identifier (1 of 2)

Identifiers provide the infrastructure for processing identities in ember-data to meet requirements around improved caching, serialization, replication, and remote data processing.

For more information, please read RFC-403 identifier.

Inspector Support is now optional in production (2 of 2)

EmberData comes with a DataAdapter It provides the necessary support for the data panel Embers inspector.

This package has increased by approximately 0.6 KB when it is reduced in production and compressed into your application; however, you can now choose not to ship this plugin in production through the option in the options ember-cli-build.js

let app = new EmberApp(defaults, {
  emberData: {
    includeDataAdapterInProduction: false

when using it ember-data As a dependency of your application, checker support is sent to the production environment by default.

When not in use ember-data As a dependency, but use EmberData in a specific way by declaring @ember-data/<package> By default, dependencies are not shipped to production.

For more details about the changes in Ember Data 3.15.0, please view the full
Ember Data 3.15.0 Change Log.

Ember command line interface

Ember CLI is a command line interface for managing and packaging Ember.js applications.

There are some notable changes ember-cli Support the release of Octane version of Ember.This @glimmer/component@1.0.0 The package is added as a development dependency for applications and plugins, enabling optional features related to Octane, ember-template-lint Has been updated to use octane The version is preset, and all packages are updated to the latest version in the application blueprint!

The new plug-in blueprint also abandons the ember-try scenario of Ember 3.4, but abandoning support for existing plug-ins should be considered a breakthrough change. Existing plug-ins either keep the scene or make major version upgrades when they give up support for the old Ember version.

For more detailed information about the changes to Ember CLI 3.15.0 and detailed upgrade instructions, please check Ember CLI 3.15.0 release page.

thank you!

As an ambitious community-driven open source project, each of these releases reminds us that without your continued support, the Ember project is impossible to achieve. We are very grateful for the efforts of our contributors.

Leave a Reply

Your email address will not be published. Required fields are marked *