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.1Release Notes
salsify/ember-css-modules (ember-css-modules)
v2.1.1Fixed
v2.1.0Added
{{local-class}}#301 (thanks, @SergeAstapov!)v2.0.1Compare Source
Fixed
AttrNodes.v2.0.0Compare 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.Componentclasses, all special handling for such components' implicit root element has been removed, in line with the broader ecosystem shift to template-only and@glimmer/componentcomponents. This includes the following removals:@localClassNamesand@localClassNamedecoratorslocalClassNamesandlocalClassNameBindingspropertiespatchClassicComponentconfiguration flagSpecial support for
Ember.Componentwas 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.2Compare Source
No changes noted.
v1.6.1Compare Source
v1.6.0Compare Source
Added
patchClassicComponent: falsein your ECM config to opt out of the deprecated monkeypatching ofEmber.Componentthat will be removed entirely in 2.0 (thanks @SergeAstapov!)Fixed
@valueandcomposes:directives (thanks @eshirley and @maxfierke!)v1.5.0Compare Source
Deprecated
Ember.Compnent(thelocalClassNamesandlocalClassNameBindingsproperties and the@localClassNameand@localClassNamesdecorators) 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/componentsubclasses,ember-css-moduleshas 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 deprecatedclassNamesandclassNameBindingsAPIs 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/componentbase 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-classas you would for any other element.classNamesandclassNameBindingsAPIs:v1.4.0Compare 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
resolutionsentries, 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.