Version Packages - #1496
Open
github-actions[bot] wants to merge 1 commit into
Open
Conversation
github-actions
Bot
force-pushed
the
changeset-release/master
branch
5 times, most recently
from
August 5, 2026 10:18
d0b88c3 to
94694ea
Compare
github-actions
Bot
force-pushed
the
changeset-release/master
branch
from
August 5, 2026 12:22
94694ea to
4597e9c
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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 was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to master, this PR will be updated.
Releases
@linaria/atomic@8.1.2
Patch Changes
linaria@8.1.2
Patch Changes
@linaria/postcss-linaria@8.1.2
Patch Changes
d3b131d: 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 (@linaria/postcss-linaria: fixers double source backslashes in the field they rewrite #1508).
c7b0360: Keep comment indentation stable through
stylelint --fixIndented 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 (@linaria/postcss-linaria: stylelint --fix keeps adding whitespace before a trailing comment #1502).
cc43835: 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 fromselector, so~ .${styles.parent}came out as~ .on anystylelint --fix. Multi-line at-rule params had the same problem viaraws.params.raw.The same defect was fixed for
decl.valuein the previous release (stylelint --fixdrops a trailing interpolation on its own line in a multi-line CSS value #1494); the selector and params paths were missed. All three now read the raw form throughcomputeCorrectedRawValue.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.
ee377a4: Stop
stylelint --fixfrom rewriting templates it should leave aloneBackslashes inside a template were doubled on the way out and doubled again on every later run (@linaria/postcss-linaria: stylelint --fix repeatedly doubles existing backslashes #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.
832c1f8: 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, sostylelint --fixno longer drops a real leading dot from selectors such as.\${className}(@linaria/postcss-linaria: stylelint --fix drops the leading dot from an interpolated class selector #1501).f3871e6: Fix adjacent interpolations being mangled by
stylelint --fixsubstitutePlaceholderssplit 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 likemargin: ${a}${b}— silently lost everything from the second interpolation onward, corrupting the output into invalid CSS (@linaria/postcss-linaria: stylelint --fix drops the second interpolati on when several sit in one selector token #1498).d28a5a8: Fix interpolations and indentation being mangled by
stylelint --fixAn 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 fromvalue, so the placeholder was gone by the time the stringifier ran, and the interpolation with it (stylelint --fixdrops a trailing interpolation on its own line in a multi-line CSS value #1494).Multi-line at-rule params were corrupted rather than dropped:
super.atrulere-reads params throughrawValue, so substituting intonode.paramswas 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 theafterNameraw and was emitted verbatim for the same reason.A newline inside
afterNamealso 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.@linaria/react@8.1.2
Patch Changes
@linaria/stylelint-config-standard-linaria@8.1.2
Patch Changes
@linaria/core@8.1.2
@linaria/babel-plugin-interop@8.1.2
@linaria/server@8.1.2
@linaria/stylelint@8.1.2