Update dependency ember-css-modules to v2 #2569
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.3.4
->2.1.0
Release Notes
salsify/ember-css-modules (ember-css-modules)
v2.1.0
Added
{{local-class}}
#301 (thanks, @SergeAstapov!)v2.0.1
Compare Source
Fixed
AttrNode
s.v2.0.0
Compare Source
This major release of Ember CSS Modules primarily removes support for deprecated patterns and updates our minimum support for other elements of the ecosystem.
Compatibility
Ember CSS Modules is now tested against the following as minimum supported versions:
Older Ember and Node versions may incidentally work, but are no longer officially supported.
Removed
While ECM will still work for templates backed by
Ember.Component
classes, all special handling for such components' implicit root element has been removed, in line with the broader ecosystem shift to template-only and@glimmer/component
components. This includes the following removals:@localClassNames
and@localClassName
decoratorslocalClassNames
andlocalClassNameBindings
propertiespatchClassicComponent
configuration flagSpecial support for
Ember.Component
was deprecated in v1.5.0 ofember-css-modules
; see the changelog for that release for further advice on migrating to newer Octane-based component APIs.v1.6.2
Compare Source
No changes noted.
v1.6.1
Compare Source
v1.6.0
Compare Source
Added
patchClassicComponent: false
in your ECM config to opt out of the deprecated monkeypatching ofEmber.Component
that will be removed entirely in 2.0 (thanks @SergeAstapov!)Fixed
@value
andcomposes:
directives (thanks @eshirley and @maxfierke!)v1.5.0
Compare Source
Deprecated
Ember.Compnent
(thelocalClassNames
andlocalClassNameBindings
properties and the@localClassName
and@localClassNames
decorators) has been deprecated and will be removed in the next major release. These APIs rely on reopeningEmber.Component
(which is itself now deprecated) and can be replaced by several alternative patterns. See the Upgrade Notes section below for migration suggestions.Upgrade Notes
For classic
@ember/component
subclasses,ember-css-modules
has had support for binding static and dynamic local class names to the component's root element using either.extend()
or decorator syntax:Both versions of these APIs are now deprecated, as:
Ember.Component
, which is itself now deprecatedclassNames
andclassNameBindings
APIs that are no longer relevant in modern Ember applicationsDepending on your appetite for refactoring and modernizing, you might take one of three approaches to migrating off of these APIs:
@glimmer/component
base class instead of@ember/component
. Since Glimmer component templates have "outer HTML" semantics, there's no implicit root element for these APIs to apply to. See the Octane vs Classic cheat sheet for further details on the differences between classic and Glimmer components.tagName: ''
to remove the implicit root element from your classic component, then add a corresponding explicit root element to your template, where you can uselocal-class
as you would for any other element.classNames
andclassNameBindings
APIs:v1.4.0
Compare Source
Added
Upgrade Notes
If you're using older PostCSS plugins or an older Node version and wish to continue using PostCSS 7, the appropriate dependency versions are still in range for ECM, and we still run tests against them. The easiest way to lock to those versions locally is likely with
resolutions
entries, which you can see an example of intest-package/old-app
.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.