From a6e68fb6173ddaf28fd931ba4541473cabf1439e Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Mon, 10 Aug 2026 18:24:28 +0000 Subject: [PATCH] Version Packages --- .changeset/bright-ravens-escape.md | 7 --- .changeset/calm-comments-stay.md | 7 --- .changeset/declare-processor-semantics.md | 7 --- .changeset/olive-crabs-smile.md | 11 ----- .changeset/olive-moons-repeat.md | 11 ----- .changeset/quiet-bags-remember.md | 7 --- .changeset/tame-lions-jump.md | 7 --- .changeset/tidy-pugs-repeat.md | 11 ----- .changeset/update-wyw-2-4.md | 8 ---- packages/atomic/CHANGELOG.md | 14 ++++++ packages/atomic/package.json | 2 +- packages/core/CHANGELOG.md | 10 +++++ packages/core/package.json | 2 +- packages/interop/CHANGELOG.md | 2 + packages/interop/package.json | 2 +- packages/linaria/CHANGELOG.md | 10 +++++ packages/linaria/package.json | 2 +- packages/postcss-linaria/CHANGELOG.md | 44 +++++++++++++++++++ packages/postcss-linaria/package.json | 2 +- packages/react/CHANGELOG.md | 13 ++++++ packages/react/package.json | 2 +- packages/server/CHANGELOG.md | 2 + packages/server/package.json | 2 +- .../CHANGELOG.md | 13 ++++++ .../package.json | 2 +- packages/stylelint/CHANGELOG.md | 6 +++ packages/stylelint/package.json | 2 +- 27 files changed, 123 insertions(+), 85 deletions(-) delete mode 100644 .changeset/bright-ravens-escape.md delete mode 100644 .changeset/calm-comments-stay.md delete mode 100644 .changeset/declare-processor-semantics.md delete mode 100644 .changeset/olive-crabs-smile.md delete mode 100644 .changeset/olive-moons-repeat.md delete mode 100644 .changeset/quiet-bags-remember.md delete mode 100644 .changeset/tame-lions-jump.md delete mode 100644 .changeset/tidy-pugs-repeat.md delete mode 100644 .changeset/update-wyw-2-4.md diff --git a/.changeset/bright-ravens-escape.md b/.changeset/bright-ravens-escape.md deleted file mode 100644 index 3561282b5..000000000 --- a/.changeset/bright-ravens-escape.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@linaria/postcss-linaria': patch ---- - -Preserve source escapes within fields changed by fixers - -When a fixer changes part of a selector or declaration value, the stringifier now compares the original and changed CSS escape tokens. Retained source backslashes remain unchanged, while backslashes added by the fixer are still escaped for the surrounding JavaScript template (#1508). diff --git a/.changeset/calm-comments-stay.md b/.changeset/calm-comments-stay.md deleted file mode 100644 index 76c372132..000000000 --- a/.changeset/calm-comments-stay.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@linaria/postcss-linaria': patch ---- - -Keep comment indentation stable through `stylelint --fix` - -Indented templates no longer add their base indentation before trailing comments or remove it from continuation lines inside multi-line comments. Repeated parse/stringify passes now preserve both forms byte-for-byte (#1502). diff --git a/.changeset/declare-processor-semantics.md b/.changeset/declare-processor-semantics.md deleted file mode 100644 index 0aa8ebe67..000000000 --- a/.changeset/declare-processor-semantics.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@linaria/atomic': patch -'@linaria/core': patch -'@linaria/react': patch ---- - -Declare built-in WyW semantics for the `css` and `styled` processors so static processor values can be resolved without evaluating their modules. Atomic `styled` uses the same target semantics, while atomic `css` keeps its post-extraction JS contract. diff --git a/.changeset/olive-crabs-smile.md b/.changeset/olive-crabs-smile.md deleted file mode 100644 index 383f9fb3d..000000000 --- a/.changeset/olive-crabs-smile.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@linaria/postcss-linaria': patch ---- - -Fix interpolations and comments being dropped from multi-line selectors and at-rule params - -An interpolation that continues a selector onto the next line looks like a ruleset, so it gets a comment placeholder. PostCSS keeps that comment only in `raws.selector.raw`, and the re-indented selector was read from `selector`, so `~ .${styles.parent}` came out as `~ .` on any `stylelint --fix`. Multi-line at-rule params had the same problem via `raws.params.raw`. - -The same defect was fixed for `decl.value` in the previous release (#1494); the selector and params paths were missed. All three now read the raw form through `computeCorrectedRawValue`. - -Hand-written comments were dropped by the same code path, so a comment inside a multi-line selector or multi-line at-rule params now survives too, interpolations or not. diff --git a/.changeset/olive-moons-repeat.md b/.changeset/olive-moons-repeat.md deleted file mode 100644 index 96f51d509..000000000 --- a/.changeset/olive-moons-repeat.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@linaria/postcss-linaria': patch ---- - -Stop `stylelint --fix` from rewriting templates it should leave alone - -Backslashes inside a template were doubled on the way out and doubled again on every later run (#1497). Restored `${...}` expressions were passed through the same CSS escaping, so a backtick inside an expression was escaped and could leave the JavaScript unparseable. - -The parser now records each source-derived field before Stylelint rules run. The stringifier leaves backslashes in unchanged fields alone, retains the existing escaping for fields written by fixers, and restores interpolation placeholders only after escaping. The complete JavaScript expression source therefore stays unchanged, and repeated parse/stringify passes are idempotent. - -Fixers can continue to write CSS values with their normal escaping; the stringifier still translates those values into safe JavaScript template source. diff --git a/.changeset/quiet-bags-remember.md b/.changeset/quiet-bags-remember.md deleted file mode 100644 index 8dc884cac..000000000 --- a/.changeset/quiet-bags-remember.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@linaria/postcss-linaria': patch ---- - -Preserve source prefixes before interpolations - -The parser now records whether it added a synthetic `.` or `--` to keep an interpolation parseable. The stringifier removes only that recorded marker, so `stylelint --fix` no longer drops a real leading dot from selectors such as `.\${className}` (#1501). diff --git a/.changeset/tame-lions-jump.md b/.changeset/tame-lions-jump.md deleted file mode 100644 index b5066e37f..000000000 --- a/.changeset/tame-lions-jump.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@linaria/postcss-linaria': patch ---- - -Fix adjacent interpolations being mangled by `stylelint --fix` - -`substitutePlaceholders` split each whitespace-separated token on the placeholder marker and only read the first two parts, so a token holding more than one interpolation — an attribute selector like `&[${a}][${b}]`, or a value like `margin: ${a}${b}` — silently lost everything from the second interpolation onward, corrupting the output into invalid CSS (#1498). diff --git a/.changeset/tidy-pugs-repeat.md b/.changeset/tidy-pugs-repeat.md deleted file mode 100644 index bcafb39af..000000000 --- a/.changeset/tidy-pugs-repeat.md +++ /dev/null @@ -1,11 +0,0 @@ ---- -'@linaria/postcss-linaria': patch ---- - -Fix interpolations and indentation being mangled by `stylelint --fix` - -An interpolation alone on its own line gets a comment placeholder. Inside a parenthesised value PostCSS keeps that comment only in `raws.value.raw`, and the re-indented value was read from `value`, so the placeholder was gone by the time the stringifier ran, and the interpolation with it (#1494). - -Multi-line at-rule params were corrupted rather than dropped: `super.atrule` re-reads params through `rawValue`, so substituting into `node.params` was discarded and `@media screen and ${query}` came out as `@media screen and .pcss-lin0`. An interpolation on the line after the at-rule name lands in the `afterName` raw and was emitted verbatim for the same reason. - -A newline inside `afterName` also never had its base indentation restored, so a wrapped at-rule prelude lost its leading whitespace on any fix, templates with no interpolations at all included. diff --git a/.changeset/update-wyw-2-4.md b/.changeset/update-wyw-2-4.md deleted file mode 100644 index 171cbcb2b..000000000 --- a/.changeset/update-wyw-2-4.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@linaria/atomic': minor -'@linaria/core': minor -'@linaria/react': minor -'@linaria/stylelint': minor ---- - -Update WyW dependencies to 2.4.0. diff --git a/packages/atomic/CHANGELOG.md b/packages/atomic/CHANGELOG.md index e0af94bdf..41bb284bc 100644 --- a/packages/atomic/CHANGELOG.md +++ b/packages/atomic/CHANGELOG.md @@ -1,5 +1,19 @@ # Change Log +## 8.2.0 + +### Minor Changes + +- dcc996a4: Update WyW dependencies to 2.4.0. + +### Patch Changes + +- 0ddc4d6b: Declare built-in WyW semantics for the `css` and `styled` processors so static processor values can be resolved without evaluating their modules. Atomic `styled` uses the same target semantics, while atomic `css` keeps its post-extraction JS contract. +- Updated dependencies [0ddc4d6b] +- Updated dependencies [dcc996a4] + - @linaria/core@8.2.0 + - @linaria/react@8.2.0 + ## 8.1.1 ### Patch Changes diff --git a/packages/atomic/package.json b/packages/atomic/package.json index c4ff627ae..cee3c0c25 100644 --- a/packages/atomic/package.json +++ b/packages/atomic/package.json @@ -1,6 +1,6 @@ { "name": "@linaria/atomic", - "version": "8.1.1", + "version": "8.2.0", "description": "Blazing fast zero-runtime CSS in JS library", "keywords": [ "css", diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 9272b7613..c52d3b297 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 8.2.0 + +### Minor Changes + +- dcc996a4: Update WyW dependencies to 2.4.0. + +### Patch Changes + +- 0ddc4d6b: Declare built-in WyW semantics for the `css` and `styled` processors so static processor values can be resolved without evaluating their modules. Atomic `styled` uses the same target semantics, while atomic `css` keeps its post-extraction JS contract. + ## 8.1.1 ## 8.1.0 diff --git a/packages/core/package.json b/packages/core/package.json index 5d072ecfe..9e9c96519 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@linaria/core", - "version": "8.1.1", + "version": "8.2.0", "description": "Blazing fast zero-runtime CSS in JS library", "keywords": [ "css", diff --git a/packages/interop/CHANGELOG.md b/packages/interop/CHANGELOG.md index 97b4e2538..794c5f68f 100644 --- a/packages/interop/CHANGELOG.md +++ b/packages/interop/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 8.2.0 + ## 8.1.1 ## 8.1.0 diff --git a/packages/interop/package.json b/packages/interop/package.json index 534d6d055..e32074992 100644 --- a/packages/interop/package.json +++ b/packages/interop/package.json @@ -1,6 +1,6 @@ { "name": "@linaria/babel-plugin-interop", - "version": "8.1.1", + "version": "8.2.0", "homepage": "https://github.com/callstack/linaria/tree/master/packages/interop#readme", "repository": "git@github.com:callstack/linaria.git", "license": "MIT", diff --git a/packages/linaria/CHANGELOG.md b/packages/linaria/CHANGELOG.md index dc50bdc66..238f55b27 100644 --- a/packages/linaria/CHANGELOG.md +++ b/packages/linaria/CHANGELOG.md @@ -1,5 +1,15 @@ # Change Log +## 8.2.0 + +### Patch Changes + +- Updated dependencies [0ddc4d6b] +- Updated dependencies [dcc996a4] + - @linaria/core@8.2.0 + - @linaria/react@8.2.0 + - @linaria/server@8.2.0 + ## 8.1.1 ### Patch Changes diff --git a/packages/linaria/package.json b/packages/linaria/package.json index 900b21ed4..f7a21c877 100644 --- a/packages/linaria/package.json +++ b/packages/linaria/package.json @@ -1,6 +1,6 @@ { "name": "linaria", - "version": "8.1.1", + "version": "8.2.0", "description": "Blazing fast zero-runtime CSS in JS library", "keywords": [ "babel", diff --git a/packages/postcss-linaria/CHANGELOG.md b/packages/postcss-linaria/CHANGELOG.md index 2da31a1b8..2768dbd92 100644 --- a/packages/postcss-linaria/CHANGELOG.md +++ b/packages/postcss-linaria/CHANGELOG.md @@ -1,5 +1,49 @@ # Change Log +## 8.2.0 + +### Patch Changes + +- d3b131dc: Preserve source escapes within fields changed by fixers + + When a fixer changes part of a selector or declaration value, the stringifier now compares the original and changed CSS escape tokens. Retained source backslashes remain unchanged, while backslashes added by the fixer are still escaped for the surrounding JavaScript template (#1508). + +- c7b0360e: Keep comment indentation stable through `stylelint --fix` + + Indented templates no longer add their base indentation before trailing comments or remove it from continuation lines inside multi-line comments. Repeated parse/stringify passes now preserve both forms byte-for-byte (#1502). + +- cc438354: Fix interpolations and comments being dropped from multi-line selectors and at-rule params + + An interpolation that continues a selector onto the next line looks like a ruleset, so it gets a comment placeholder. PostCSS keeps that comment only in `raws.selector.raw`, and the re-indented selector was read from `selector`, so `~ .${styles.parent}` came out as `~ .` on any `stylelint --fix`. Multi-line at-rule params had the same problem via `raws.params.raw`. + + The same defect was fixed for `decl.value` in the previous release (#1494); the selector and params paths were missed. All three now read the raw form through `computeCorrectedRawValue`. + + Hand-written comments were dropped by the same code path, so a comment inside a multi-line selector or multi-line at-rule params now survives too, interpolations or not. + +- ee377a44: Stop `stylelint --fix` from rewriting templates it should leave alone + + Backslashes inside a template were doubled on the way out and doubled again on every later run (#1497). Restored `${...}` expressions were passed through the same CSS escaping, so a backtick inside an expression was escaped and could leave the JavaScript unparseable. + + The parser now records each source-derived field before Stylelint rules run. The stringifier leaves backslashes in unchanged fields alone, retains the existing escaping for fields written by fixers, and restores interpolation placeholders only after escaping. The complete JavaScript expression source therefore stays unchanged, and repeated parse/stringify passes are idempotent. + + Fixers can continue to write CSS values with their normal escaping; the stringifier still translates those values into safe JavaScript template source. + +- 832c1f88: Preserve source prefixes before interpolations + + The parser now records whether it added a synthetic `.` or `--` to keep an interpolation parseable. The stringifier removes only that recorded marker, so `stylelint --fix` no longer drops a real leading dot from selectors such as `.\${className}` (#1501). + +- f3871e64: Fix adjacent interpolations being mangled by `stylelint --fix` + + `substitutePlaceholders` split each whitespace-separated token on the placeholder marker and only read the first two parts, so a token holding more than one interpolation — an attribute selector like `&[${a}][${b}]`, or a value like `margin: ${a}${b}` — silently lost everything from the second interpolation onward, corrupting the output into invalid CSS (#1498). + +- d28a5a88: Fix interpolations and indentation being mangled by `stylelint --fix` + + An interpolation alone on its own line gets a comment placeholder. Inside a parenthesised value PostCSS keeps that comment only in `raws.value.raw`, and the re-indented value was read from `value`, so the placeholder was gone by the time the stringifier ran, and the interpolation with it (#1494). + + Multi-line at-rule params were corrupted rather than dropped: `super.atrule` re-reads params through `rawValue`, so substituting into `node.params` was discarded and `@media screen and ${query}` came out as `@media screen and .pcss-lin0`. An interpolation on the line after the at-rule name lands in the `afterName` raw and was emitted verbatim for the same reason. + + A newline inside `afterName` also never had its base indentation restored, so a wrapped at-rule prelude lost its leading whitespace on any fix, templates with no interpolations at all included. + ## 8.1.1 ## 8.1.0 diff --git a/packages/postcss-linaria/package.json b/packages/postcss-linaria/package.json index 4a858fb09..b548ff901 100644 --- a/packages/postcss-linaria/package.json +++ b/packages/postcss-linaria/package.json @@ -1,6 +1,6 @@ { "name": "@linaria/postcss-linaria", - "version": "8.1.1", + "version": "8.2.0", "description": "Blazing fast zero-runtime CSS in JS library", "keywords": [ "css", diff --git a/packages/react/CHANGELOG.md b/packages/react/CHANGELOG.md index dac0a1cc4..a988b5218 100644 --- a/packages/react/CHANGELOG.md +++ b/packages/react/CHANGELOG.md @@ -1,5 +1,18 @@ # Change Log +## 8.2.0 + +### Minor Changes + +- dcc996a4: Update WyW dependencies to 2.4.0. + +### Patch Changes + +- 0ddc4d6b: Declare built-in WyW semantics for the `css` and `styled` processors so static processor values can be resolved without evaluating their modules. Atomic `styled` uses the same target semantics, while atomic `css` keeps its post-extraction JS contract. +- Updated dependencies [0ddc4d6b] +- Updated dependencies [dcc996a4] + - @linaria/core@8.2.0 + ## 8.1.1 ### Patch Changes diff --git a/packages/react/package.json b/packages/react/package.json index 098f0524d..695d81236 100644 --- a/packages/react/package.json +++ b/packages/react/package.json @@ -1,6 +1,6 @@ { "name": "@linaria/react", - "version": "8.1.1", + "version": "8.2.0", "description": "Blazing fast zero-runtime CSS in JS library", "keywords": [ "css", diff --git a/packages/server/CHANGELOG.md b/packages/server/CHANGELOG.md index 9d0f00120..084691756 100644 --- a/packages/server/CHANGELOG.md +++ b/packages/server/CHANGELOG.md @@ -1,5 +1,7 @@ # Change Log +## 8.2.0 + ## 8.1.1 ## 8.1.0 diff --git a/packages/server/package.json b/packages/server/package.json index d4c936576..7958f1fcd 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@linaria/server", - "version": "8.1.1", + "version": "8.2.0", "description": "Blazing fast zero-runtime CSS in JS library", "keywords": [ "css", diff --git a/packages/stylelint-config-standard-linaria/CHANGELOG.md b/packages/stylelint-config-standard-linaria/CHANGELOG.md index 0f813207d..aa46f33af 100644 --- a/packages/stylelint-config-standard-linaria/CHANGELOG.md +++ b/packages/stylelint-config-standard-linaria/CHANGELOG.md @@ -1,5 +1,18 @@ # Change Log +## 8.2.0 + +### Patch Changes + +- Updated dependencies [d3b131dc] +- Updated dependencies [c7b0360e] +- Updated dependencies [cc438354] +- Updated dependencies [ee377a44] +- Updated dependencies [832c1f88] +- Updated dependencies [f3871e64] +- Updated dependencies [d28a5a88] + - @linaria/postcss-linaria@8.2.0 + ## 8.1.1 ### Patch Changes diff --git a/packages/stylelint-config-standard-linaria/package.json b/packages/stylelint-config-standard-linaria/package.json index ea8a88234..cbde8052a 100644 --- a/packages/stylelint-config-standard-linaria/package.json +++ b/packages/stylelint-config-standard-linaria/package.json @@ -1,6 +1,6 @@ { "name": "@linaria/stylelint-config-standard-linaria", - "version": "8.1.1", + "version": "8.2.0", "description": "Blazing fast zero-runtime CSS in JS library", "keywords": [ "css", diff --git a/packages/stylelint/CHANGELOG.md b/packages/stylelint/CHANGELOG.md index a017a1e13..83bbaffab 100644 --- a/packages/stylelint/CHANGELOG.md +++ b/packages/stylelint/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 8.2.0 + +### Minor Changes + +- dcc996a4: Update WyW dependencies to 2.4.0. + ## 8.1.1 ## 8.1.0 diff --git a/packages/stylelint/package.json b/packages/stylelint/package.json index f018921c8..1d009f992 100644 --- a/packages/stylelint/package.json +++ b/packages/stylelint/package.json @@ -1,6 +1,6 @@ { "name": "@linaria/stylelint", - "version": "8.1.1", + "version": "8.2.0", "description": "Blazing fast zero-runtime CSS in JS library", "keywords": [ "css",