Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .changeset/bright-ravens-escape.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/calm-comments-stay.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/olive-crabs-smile.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/olive-moons-repeat.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/quiet-bags-remember.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/tame-lions-jump.md

This file was deleted.

11 changes: 0 additions & 11 deletions .changeset/tidy-pugs-repeat.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/atomic/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 8.1.2

### Patch Changes

- @linaria/core@8.1.2
- @linaria/react@8.1.2

## 8.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/atomic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@linaria/atomic",
"version": "8.1.1",
"version": "8.1.2",
"description": "Blazing fast zero-runtime CSS in JS library",
"keywords": [
"css",
Expand Down
2 changes: 2 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Change Log

## 8.1.2

## 8.1.1

## 8.1.0
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@linaria/core",
"version": "8.1.1",
"version": "8.1.2",
"description": "Blazing fast zero-runtime CSS in JS library",
"keywords": [
"css",
Expand Down
2 changes: 2 additions & 0 deletions packages/interop/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Change Log

## 8.1.2

## 8.1.1

## 8.1.0
Expand Down
2 changes: 1 addition & 1 deletion packages/interop/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@linaria/babel-plugin-interop",
"version": "8.1.1",
"version": "8.1.2",
"homepage": "https://github.com/callstack/linaria/tree/master/packages/interop#readme",
"repository": "git@github.com:callstack/linaria.git",
"license": "MIT",
Expand Down
8 changes: 8 additions & 0 deletions packages/linaria/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Change Log

## 8.1.2

### Patch Changes

- @linaria/core@8.1.2
- @linaria/react@8.1.2
- @linaria/server@8.1.2

## 8.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/linaria/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "linaria",
"version": "8.1.1",
"version": "8.1.2",
"description": "Blazing fast zero-runtime CSS in JS library",
"keywords": [
"babel",
Expand Down
44 changes: 44 additions & 0 deletions packages/postcss-linaria/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
# Change Log

## 8.1.2

### 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
Expand Down
2 changes: 1 addition & 1 deletion packages/postcss-linaria/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@linaria/postcss-linaria",
"version": "8.1.1",
"version": "8.1.2",
"description": "Blazing fast zero-runtime CSS in JS library",
"keywords": [
"css",
Expand Down
6 changes: 6 additions & 0 deletions packages/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## 8.1.2

### Patch Changes

- @linaria/core@8.1.2

## 8.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@linaria/react",
"version": "8.1.1",
"version": "8.1.2",
"description": "Blazing fast zero-runtime CSS in JS library",
"keywords": [
"css",
Expand Down
2 changes: 2 additions & 0 deletions packages/server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Change Log

## 8.1.2

## 8.1.1

## 8.1.0
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@linaria/server",
"version": "8.1.1",
"version": "8.1.2",
"description": "Blazing fast zero-runtime CSS in JS library",
"keywords": [
"css",
Expand Down
13 changes: 13 additions & 0 deletions packages/stylelint-config-standard-linaria/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Change Log

## 8.1.2

### 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.1.2

## 8.1.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint-config-standard-linaria/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@linaria/stylelint-config-standard-linaria",
"version": "8.1.1",
"version": "8.1.2",
"description": "Blazing fast zero-runtime CSS in JS library",
"keywords": [
"css",
Expand Down
2 changes: 2 additions & 0 deletions packages/stylelint/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Change Log

## 8.1.2

## 8.1.1

## 8.1.0
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@linaria/stylelint",
"version": "8.1.1",
"version": "8.1.2",
"description": "Blazing fast zero-runtime CSS in JS library",
"keywords": [
"css",
Expand Down