Skip to content

Releases: ember-decorators/ember-decorators

v6.1.0

14 Aug 19:56
Compare
Choose a tag to compare
  • Adds the @classNameBindings and @attributeBindings class decorators, which make 1-1 conversions for components that use these APIs much easier

v6.0.0

11 Apr 20:55
Compare
Choose a tag to compare

Breaking Changes

  • Removed Packages

    • @ember-decorators/babel-transforms
    • @ember-decorators/controller
    • @ember-decorators/data
    • @ember-decorators/service
  • Removed APIs from @ember-decorators/object

    • @computed
    • @wrapComputed
    • @action
    • All computed macros

The functionality provided by these APIs is now built into Ember directly! You will be able to use them by importing them from ember, e.g.

import { action, computed } from '@ember/object';

You can include these in your app today using the polyfill.

v5.0.0

15 Jan 00:07
Compare
Choose a tag to compare

Breaking Changes

  1. @readOnly and @volatile have been removed in favor of @(computed().readOnly()) and @(computed().volatile()) style declarations. All classic modifiers are available, enabled, and chainable in this way.
  2. @reads and @overridableReads have been removed and changed back to @readOnly and @reads respectively, and @oneWay has been added back.
  3. @service and @controller have both been renamed to inject to match the exports in Ember proper.
  4. The shouldThrowOnComputedOverride configuration option has been removed, since it is not an option in Ember proper.
  5. Removed the macro function in favor of compatibility with classic classes

New Features

  1. @computed can now receive a ComputedPropertyDescriptor as its last argument (e.g. a function or { get, set } object.
  2. All computed property decorators can now be used in classic classes as well. This makes the decorators a drop-in replacement for @ember/object#computed.
  3. @action now binds action methods as well as copying their reference.

v4.0.0

12 Jan 01:04
Compare
Choose a tag to compare

Breaking Changes

  • Drops support for Typescript 2.7 (now only 2.8+)

v3.1.0

12 Jan 01:03
Compare
Choose a tag to compare

New Features

  • Support for the stage 2 decorators transforms has been added

v3.0.0

01 Nov 17:58
Compare
Choose a tag to compare

Breaking Changes

  • The @readOnly computed macro has been renamed to @reads, and the @reads and @oneWay macros have been renamed to @overridableReads
  • Computed properties are now overridable (clobberable) by default. You can disable this by setting the throwOnComputedOverride option in the build config.

v2.5.2

04 Oct 21:59
Compare
Choose a tag to compare
v2.5.2

v2.5.0

19 Sep 06:03
Compare
Choose a tag to compare

New Features

  • Undeprecated @readOnly and added @volatile
  • @readOnly and @volatile can be applied in any order
  • Added ability to configure if computeds should throw an error on override (clobber)

Bugfixes

  • Fixes blueprints

v2.4.0

25 Aug 02:07
Compare
Choose a tag to compare

New Features

Added decorators for observers and event listeners:

  • @on
  • @off
  • @observes
  • @unobserves

Bugfixes

  • Fixed typings for @attr so it can receive options hashes

v2.3.1

25 Aug 02:10
Compare
Choose a tag to compare

Bugfixes

  • Fixed the typings for @layout
  • Fixed an issue where default blueprints would attempt to run yarn in parallel