Skip to content

Releases: alexlafroscia/ember-emotion

v5.0.0

02 Jan 02:17
Compare
Choose a tag to compare

5.0.0 (2019-01-02)

Bug Fixes

  • get FastBoot compatibility working again (ba29d12)

Chores

  • deps: upgrade to emotion 10 (a746c06)

BREAKING CHANGES

  • deps: While neither the public API of emotion nor the addon changed, the Babel plugin has slightly less options that it did before, which could break some people's usage of the Ember addon. Because of this, it makes more sense to cut a breaking change. Note that, if you're not configuing the Babel plugin yourself, this is likely an upgrade you can perform withotu changing your code at all.

v4.0.3

03 May 22:05
Compare
Choose a tag to compare

4.0.3 (2018-05-03)

Bug Fixes

  • Allow multiple callbacks in style definition (aafe99d), closes #23

v4.0.2

03 May 18:31
Compare
Choose a tag to compare

4.0.2 (2018-05-03)

Bug Fixes

  • Correct name of HTMLBars plugin (4cfa8a4)

v4.0.1

02 May 21:44
Compare
Choose a tag to compare

4.0.1 (2018-05-02)

Bug Fixes

v4.0.0

05 Feb 00:19
Compare
Choose a tag to compare

Breaking Changes

  • Upgrade to emotion version 9

New Features

  • Ability to dynamically define CSS classes based on component state using the computed function (#19)
  • First-class FastBoot support to avoid FOUC (#16)

v3.0.0

24 Jan 22:35
Compare
Choose a tag to compare

Breaking Changes

Upgrade Path

Since we now ship a blueprint that would be run on installation, people upgrading to this version need to run it manually. After upgrading to 3.0.0, run the following:

ember g ember-emotion

and the change to your resolver.js should be applied. If there are issues, check out the repo's dummy app to understand how the mixin can be imported and applied.

v2.0.0

17 Jan 19:33
Compare
Choose a tag to compare

Breaking Changes

  • emotion classes are no longer set on the component instance. Use the emotion-class helper instead
  • No more initializer to bootstrap injecting styles into components

New Features

  • emotion-class helper, used to look up the emotion classes for a component or controller
    • ember-emotion now works with controllers, too
  • cx helper, mapping to the cx function in emotion, for attaching multiple classes to an element

v1.3.0

10 Jan 18:16
Compare
Choose a tag to compare

v1.2.0

10 Jan 07:12
Compare
Choose a tag to compare
  • Add css helper, analogous to using the emotion function with object styles

v1.1.0

10 Jan 06:31
Compare
Choose a tag to compare
  • Automatically make classes exported from styles.js within a component pod available to the template
  • Automatically apply the default export from styles.js to the root element of the component