Skip to content

Releases: salsify/ember-css-modules

Helping Hand

07 Nov 02:11
Compare
Choose a tag to compare

Added

  • Mirroring the local-class attribute, there is now a local-class helper that can be used in templates to reference local classnames e.g. when passing them to child components as properties.

Deprecated

  • In the past, attempting to import a nonexistent class or value would silently fail. This behavior is now deprecated and will be a hard error in the future.
  • Usage of the styles computed property on components and controllers is now deprecated.
    • In templates, you can replace {{styles.class-name}} with {{local-class 'class-name'}}.

    • In JavaScript code, you can import the styles object via a normal ES2015 import.

    • As a migration stepping stone, you can import the styles object and set it on your component/controller's prototype to mimic the old form factor:

      import styles from './styles';
      
      export default Ember.Component.extend({
        styles,
      
        // ...
      });

Removed

  • Support for Ember 1.13 has been removed; ember-css-modules now supports Ember 2.0+.

Cartography Edition

06 Nov 23:54
Compare
Choose a tag to compare

Added

  • Source maps can now be generated for applications, with caveats. See the README and ember-cli/broccoli-concat#58 for details.
  • A warning is now issued for addons that have no addon/styles directory, since Ember CLI won't invoke registered CSS preprocessors in that scenario.

Fixed

  • Fewer files are required when ember-css-modules loads, lessening the overall impact it should have on Ember CLI's startup time

Window of Opportunity

27 Sep 04:12
Compare
Choose a tag to compare

Added

  • Windows is now fully supported (#52).

Fixed

  • localClassNameBindings now works with classes that use composes (#48).

Virtually Indistinguishable

07 Sep 05:02
Compare
Choose a tag to compare

Added

  • Virtual modules that export constants can be configured at build time.

Fixed

  • The configured modules extension can now contain a . (see #41 for history)

Change is the Only Constant

28 Aug 23:24
Compare
Choose a tag to compare

Added

  • The local-class attribute now accepts dynamic values (#40)
  • Components may specify localClassNames and localClassNameBindings, similar to classNames and classNameBindings respectively, to bind local classes to their root elements (#26)

Fixed

  • Values with commmas and quotes can now be exposed in modules (#22)

A Certain Cachet

12 Aug 18:35
Compare
Choose a tag to compare

Added

  • The beginnings of support for @value and composes: from addons, with some caveats. Real documentation forthcoming once the feature has a little time to bake.

Fixed

  • Provide caching information for ember-cli-htmlbars so it can correctly invalidate when the plugin changes.

Glimmer in the Eye

03 Aug 03:44
Compare
Choose a tag to compare

Added

  • Preliminary support for Glimmer 2 with the Ember alpha series.

Think Locally

12 Jul 03:59
Compare
Choose a tag to compare

Added

  • Local class names can be specified via the local-class attribute (#31)
  • PostCSS options such as custom syntax are passed through via postcssOptions config (#34)
  • The default extension for modules can be specified via extension config (#34)

Fixed

  • An intermediateOutputPath may be specified in order to have ember-css-modules emit to a location other than <app-name>.css, leaving other files in the styles tree untouched for further processing (#28). See the README for further details on how this in combination with the changes in #34 allow for working alongside other CSS preprocessors.

If At First

12 Jul 03:58
Compare
Choose a tag to compare

Fixed

  • _super is now properly called in the addon init() to avoid a deprecation notice

Hidden Gems

02 May 00:23
Compare
Choose a tag to compare

Fixed

  • Hidden files (e.g. .DS_Store) no longer break the build process (#21)

Changed

  • Final linking of @values now occurs before other PostCSS plugins execute (#23)