Releases: salsify/ember-css-modules
Releases · salsify/ember-css-modules
Things That Go Splat in the Night
Fixed
- Elements with both
local-classand...attributesshould no longer lose their local class when an externalclassorlocal-classis passed in. #116
The Big Dig
Migrating from 0.7.x
The 1.0 release should largely be a drop-in replacement coming from 0.7.x, but there are a few changes to be aware of:
- Referencing a
local-classin a template that doesn't have a correspondingstylesmodule is now a hard error (before it would silently fail and add no class to the target element). - Using
localClassNamesorlocalClassNameBindingson a component with no template is no longer possible. You can either create an empty template for that component or import the styles module and setclassNamesorclassNameBindingsusing the imported mapping, e.g.classNames: styles['my-local-class'].
Fixed
- The type declaration for
localClassNamesnow uses the right identifier - The error message when referencing a
local-classin a template with no styles module is now more informative
If you're migrating from 0.7.x, see the release notes for the 1.0 betas for additional changes and fixes.
Decorations
Added
- The long awaited
@localClassNamesand@localClassNamedecorators, which work as parallels toember-decorators'@classNamesand@className, are now available. Thanks @buschtoens!
Fixed
- Turns out there was one breaking change from the 0.7 series: components must now have a template in order for their
localClassNamesandlocalClassNameBindings(as well as the decorator versions) to resolve. The error message for this scenario has been improved to provide more actionable details.
Ch-ch-changes
This release is the first beta for Ember CSS Modules 1.0. There are no known breaking changes since 0.7.10, but as described below, there were a few internal refactorings, so we'll run a beta series before christening the official 1.0 🎉
Added
addPostcssPluginnow accepts multiple arguments (#103)
Fixed
- The
template-only-glimmer-componentsfeature should no longer conflict with ember-css-modules (#98)
Changed
- The majority of the runtime monkeypatching that was present in this addon has been removed in favor of build-time processing. The only remaining runtime code is the
{{local-class}}helper and an extension to theComponentclass to supportlocalClassNamesandlocalClassNameBindings. (#99)
Super Scope
- Support importing styles via
@valueandcomposes:from addons with@scopeed names.
Party Like It's 1992
Fixed
- Ember 3.1 ships with a version of Glimmer that expects AST transforms to use a singular
visitorkey rather than pluralvisitors. So we do that. Big thanks to @luqman for tracking this down. - The internal computed property we set up to support
localClassNameBindingsnow uses Ember'sdefinePropertyfor compatibility with the ES5 getters overhaul.
Let's Pretend This Never Happened
This was a no-op republish of 0.7.7.
Prerelease Blues
Fixed
- Prerelease versions of Ember CLI are correctly detected now.
Lint Roller
Added
- The plugin system now supports a notion of lint plugins, which will activate for developing addons even when they're in
devDependencies.
Everything is Awesome
Fixed
- The
local-classtemplate transform should now play nicely with ember-font-awesome's own transforms (thanks @buschtoens!) - The plugin registry no longer explodes when addons with no package keywords are present (thanks @devotox!)