Releases: salsify/ember-css-modules
Releases · salsify/ember-css-modules
Hush Now
Helping Hand
Added
- Mirroring the
local-classattribute, there is now alocal-classhelper 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
stylescomputed 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
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/stylesdirectory, 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
Virtually Indistinguishable
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
Added
- The
local-classattribute now accepts dynamic values (#40) - Components may specify
localClassNamesandlocalClassNameBindings, similar toclassNamesandclassNameBindingsrespectively, 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
Added
- The beginnings of support for
@valueandcomposes:from addons, with some caveats. Real documentation forthcoming once the feature has a little time to bake.
Fixed
- Provide caching information for
ember-cli-htmlbarsso it can correctly invalidate when the plugin changes.
Glimmer in the Eye
Added
- Preliminary support for Glimmer 2 with the Ember alpha series.
Think Locally
Added
- Local class names can be specified via the
local-classattribute (#31) - PostCSS options such as custom syntax are passed through via
postcssOptionsconfig (#34) - The default extension for modules can be specified via
extensionconfig (#34)
Fixed
- An
intermediateOutputPathmay 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
Fixed
_superis now properly called in the addoninit()to avoid a deprecation notice