Releases: salsify/ember-css-modules
Releases · salsify/ember-css-modules
String Theory
Added
- The ability to use
{{local-class}}to inject classes from other modules is now public and documented (thanks @kellyselden!)
Fixed
localClassNameBindingsnow works with string values instead of just booleans (thanks @luxferresum!)headerFilesandfooterFileswill now accept file paths with and without extensions- Setup for
localClassNamesandlocalClassNameBindingsnow short circuits to avoid extra work for tagless components (thanks @garno!)
After All
Added
- PostCSS plugins can now be specified to run against the final concatenated output of all modules using the
postprocessarray (thanks @alexlafroscia!)
Fixed
- During testing,
import 'ember-css-modules/extensions'is no longer required to have styles function correctly in integration tests. - When no styles for a component can be found,
localClassNameBindingsnow silently binds no classes instead of throwing an error.
Everything In Its Place
Added
- Modules to be included at the top or bottom of the concatenated output can now be set via the
headerModulesandfooterModulesconfiguration options. See the module ordering guide for details.
Changed
@after-modulehas been deprecated in favor of the newheaderModules/footerModulesconfiguration
AST But Not Least
Added
- Support for Ember 2.15's new form factor for template AST transforms has been added.
Fixed
- Styles resolution for components and controllers no longer assumes only a single
:in container keys.
Plug It In
Added
- An initial cut of a plugin system has been implemented, allowing common PostCSS plugin sets, shared configuration, and other bits of reusable code to be packaged up and redistributed. See the README for a few implemented examples.
Changed
- The CSS Modules pipeline has been upgraded and now uses PostCSS 6
- Some of the more advanced topics in the README have been broken out into dedicated mini-guides in an effort to keep the main document from being so overwhelming
Fixed
- Attempting to pull styles from an addon that doesn't exist now provides a useful error message (#65).
The Little Engine That Could
Changed
- There have been some internal changes to how styles are read from the app/addon trees. This should be a non-breaking change (and fixes a number of oddities, including previous incompatibility with lazy engines), but is enough of a shift to warrant a version bump and a note.
- Attempting to import a nonexistent
@valueorcomposea nonexistent class is now a hard error at build time.
Removed
- Support for the deprecated
stylesproperty has been removed.
Time Marches On
Fixed
- The (deprecated) computed
stylesproperty is no longer read-only, to allow for other component APIs that expect something with that name to be passed in. - Avoid repurposing
this.optionsin the addon to support Ember CLI 2.12 (#64)
RTFM
Fix It In Post
Added
- This addon will now run before ember-cli-postcss, enabling cooperative preprocessing as with ember-cli-sass and friends (#58).
Fixed
- Upgraded ember-getowner-polyfill and eliminated a deprecation warning from its changed usage.
Nothing Comes from Nothing
Fixed
- Null local class values, e.g.
local-class={{if false 'foo'}}no longer result in an exception (#57).