Tuesday, May 7, 2024
HomeJavaScriptEmber 3.15 "Octane" Launched

Ember 3.15 “Octane” Launched


At the moment the Ember venture is releasing model 3.15 of Ember.js, Ember Knowledge, and
Ember CLI. Along with brining new options and bug fixes, Ember 3.15 additionally marks the official launch of the Octane version, which is Ember’s first version launch.

Ember builders utilizing the Octane version can train trendy options like native ES
courses, decorators, the brand new Glimmer part API, and a brand new method to state
administration known as tracked properties. Mixed, these revolutionary adjustments to
Ember are extra than simply new instruments and APIs. Octane’s options, collectively,
sum as much as a paradigm shift in how Ember functions are constructed.


Learn extra about how Octane makes internet utility improvement enjoyable and
productive in
Octane is Right here, a weblog publish from Yehuda.

…after which discover our fully up to date and refreshed information and API
documentation:

Along with the Octane launch, right this moment you may also discover model 3.16-beta.1
launched for Ember.js, Ember Knowledge, and Ember CLI. As at all times we encourage our
group (particularly addon authors) to assist take a look at these beta builds and report
any bugs earlier than they’re printed as a last launch in six weeks’ time.

You possibly can learn extra about Ember’s basic launch course of on the Launch Dashboard.


Different Adjustments in Ember.js 3.15

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 serious 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.

There have been three deprecations in Ember.js v3.15.0.

Deprecate Part#isVisible (1 of three)

Basic Ember elements help utilizing the isVisible property to toggle the
visibility of a part’s root aspect. This API was quite common in early
Ember 1.x functions however is uncommon right this moment. In follow use of template bindings
has supplanted use of the isVisible API.

isVisible is deprecated as of Ember 3.15.

To transition away from this, we advocate utilizing conditionals in a template:

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

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

See the deprecation information for
isVisible

for extra data.

Deprecate {{partial}} (2 of three)

As of the introduction of template-only
elements

and Glimmer
elements
,
in addition to of the
template-only-glimmer-components
non-obligatory function the {{partial}} API in Ember not gives any distinctive
advantages. As an alternative it has a number of downsides together with troublesome to show scoping
guidelines and poor efficiency.

See the deprecation information for
{{partial}}
for
an instance of how you can migration current use to part APIs.

Deprecate intimate window.ENV API (3 of three)

Ember functions way back shifted to utilizing window.EmberENV as the house of
varied configuration choices. As of three.15.0 utility code which makes use of window.ENV
for Ember configuration values will trigger a deprecation warning to be issued.
Help for this intimate API can be eliminated in 3.17.0.

See emberjs/ember.js#18441
for extra particulars about this deprecation.

For extra particulars on adjustments in Ember.js 3.15, please evaluate the Ember.js 3.15.0 launch web page.

Ember Knowledge

Ember Knowledge is the official information persistence library for Ember.js functions.

There have been two new options and no deprecations for EmberData v.3.15.0.

Identifiers (1 of two)

Identifiers gives infrastructure for dealing with identification inside ember-data to fulfill
necessities round improved caching, serializability, replication, and dealing with of
distant information.

For extra data learn RFC-403 Identifiers.

Inspector Help is now non-obligatory in manufacturing (2 of two)

EmberData ships with a DataAdapter which gives the required help for
the information panel within the Ember Inspector.

This bundle provides roughly .6 KB when minified and compressed to your utility
in manufacturing; nevertheless, now you can decide out of delivery this addon in manufacturing
through choices in ember-cli-build.js

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

When utilizing ember-data as a dependency of your app, the default is to ship the
inspector help to manufacturing.

When not utilizing ember-data as a dependency however as a substitute utilizing EmberData through
declaring particular @ember-data/<bundle> dependencies the default is to not
ship to manufacturing.

For extra particulars on adjustments in Ember Knowledge 3.15.0, please evaluate the complete
Ember Knowledge 3.15.0 change log.

Ember CLI

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

There have been some noteworthy adjustments in ember-cli to help the discharge of the Octane version of Ember. The @glimmer/part@1.0.0 bundle was added as a dev dependency for each apps and addons, Octane-related non-obligatory options have been enabled, ember-template-lint was up to date to make use of the octane version preset, and all packages have been up to date to their newest model within the utility blueprint!

The brand new addon blueprint additionally dropped the Ember 3.4 ember-try state of affairs, however dropping help for current addons must be thought of a breaking change. Current addons ought to both hold the state of affairs, or do a serious model bump in the event that they drop help for older Ember variations.

For extra particulars on the adjustments in Ember CLI 3.15.0 and detailed improve
directions, please evaluate the Ember CLI 3.15.0 launch web page.

Thank You!

As a community-driven open-source venture with an formidable scope, every of those releases function a reminder that the Ember venture wouldn’t have been attainable 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