diff --git a/.changeset/flat-ants-walk.md b/.changeset/flat-ants-walk.md deleted file mode 100644 index e9d70ea4..00000000 --- a/.changeset/flat-ants-walk.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -'ember-scoped-css': patch ---- - -Fix an issue with strings in `class` attributes declared via sub-expressions (such as within if statements), were not properly getting scoped. - -For example: - -```js - -``` - -When the sibling CSS file only declares `a-local-class`, we would expect that - -- `global-probably` remains unchanged -- `a-local-class` gets hashed - -Note that this bug is not fixed for embroider consumers. diff --git a/ember-scoped-css-compat/package.json b/ember-scoped-css-compat/package.json index 8d7adb32..87763e6b 100644 --- a/ember-scoped-css-compat/package.json +++ b/ember-scoped-css-compat/package.json @@ -68,7 +68,7 @@ "webpack": "^5.78.0" }, "peerDependencies": { - "ember-scoped-css": ">=0.12.0", + "ember-scoped-css": ">=0.12.1", "ember-source": "^4.0.0" }, "engines": { diff --git a/ember-scoped-css/CHANGELOG.md b/ember-scoped-css/CHANGELOG.md index 23eab117..39f2345f 100644 --- a/ember-scoped-css/CHANGELOG.md +++ b/ember-scoped-css/CHANGELOG.md @@ -1,5 +1,28 @@ # ember-scoped-css +## 0.12.1 + +### Patch Changes + +- [#102](https://github.com/soxhub/ember-scoped-css/pull/102) [`3ca5674`](https://github.com/soxhub/ember-scoped-css/commit/3ca5674215487b43d9f62f18ae2310bbe0315467) Thanks [@NullVoxPopuli](https://github.com/NullVoxPopuli)! - Fix an issue with strings in `class` attributes declared via sub-expressions (such as within if statements), were not properly getting scoped. + + For example: + + ```js + + ``` + + When the sibling CSS file only declares `a-local-class`, we would expect that + + - `global-probably` remains unchanged + - `a-local-class` gets hashed + + Note that this bug is not fixed for embroider consumers. + ## 0.12.0 ### Minor Changes @@ -52,7 +75,7 @@ use: [ { loader: require.resolve( - 'ember-scoped-css/build/app-css-loader' + 'ember-scoped-css/build/app-css-loader', ), options: { layerName: 'embroider-app', diff --git a/ember-scoped-css/package.json b/ember-scoped-css/package.json index 9ab14491..735dd9a5 100644 --- a/ember-scoped-css/package.json +++ b/ember-scoped-css/package.json @@ -1,6 +1,6 @@ { "name": "ember-scoped-css", - "version": "0.12.0", + "version": "0.12.1", "description": "", "keywords": [ "ember-addon"