Releases: salsify/ember-css-modules
Releases · salsify/ember-css-modules
Helping Hand
Added
- Mirroring the
local-class
attribute, there is now alocal-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
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
require
d 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-class
attribute now accepts dynamic values (#40) - Components may specify
localClassNames
andlocalClassNameBindings
, similar toclassNames
andclassNameBindings
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
Added
- The beginnings of support for
@value
andcomposes:
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
Added
- Preliminary support for Glimmer 2 with the Ember alpha series.
Think Locally
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
Fixed
_super
is now properly called in the addoninit()
to avoid a deprecation notice