Skip to content

Commit

Permalink
Merge pull request #110 from soxhub/changeset-release/main
Browse files Browse the repository at this point in the history
Release Preview
  • Loading branch information
NullVoxPopuli authored Oct 2, 2023
2 parents 9007d4c + 2785e98 commit 74d8a77
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 25 deletions.
22 changes: 0 additions & 22 deletions .changeset/flat-ants-walk.md

This file was deleted.

2 changes: 1 addition & 1 deletion ember-scoped-css-compat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
25 changes: 24 additions & 1 deletion ember-scoped-css/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
<template>
<div class="global-probably {{if @condition "a-local-class"}}">
Hello there!
</div>
</template>
```

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
Expand Down Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion ember-scoped-css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-scoped-css",
"version": "0.12.0",
"version": "0.12.1",
"description": "",
"keywords": [
"ember-addon"
Expand Down

0 comments on commit 74d8a77

Please sign in to comment.