From 8664823ecc950cbf3cec43f39cbf46b22a449df4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 20 Nov 2026 05:20:02 +0000 Subject: [PATCH] chore: version packages --- .changeset/backtick-expand-only-in-styled.md | 5 ---- .changeset/color-picker-output.md | 5 ---- .changeset/enter-after-nested-template.md | 5 ---- .changeset/faster-highlighting.md | 5 ---- .changeset/fix-highlighting-spill.md | 5 ---- .changeset/keyframe-percent-selectors.md | 5 ---- .changeset/minimum-vscode-1-74.md | 5 ---- .../modern-css-function-highlighting.md | 5 ---- .changeset/more-styled-tag-shapes.md | 5 ---- .../space-separated-rgb-hsl-swatches.md | 5 ---- .changeset/wide-gamut-color-swatches.md | 5 ---- CHANGELOG.md | 28 +++++++++++++++++++ package.json | 2 +- 13 files changed, 29 insertions(+), 56 deletions(-) delete mode 100644 .changeset/backtick-expand-only-in-styled.md delete mode 100644 .changeset/color-picker-output.md delete mode 100644 .changeset/enter-after-nested-template.md delete mode 100644 .changeset/faster-highlighting.md delete mode 100644 .changeset/fix-highlighting-spill.md delete mode 100644 .changeset/keyframe-percent-selectors.md delete mode 100644 .changeset/minimum-vscode-1-74.md delete mode 100644 .changeset/modern-css-function-highlighting.md delete mode 100644 .changeset/more-styled-tag-shapes.md delete mode 100644 .changeset/space-separated-rgb-hsl-swatches.md delete mode 100644 .changeset/wide-gamut-color-swatches.md diff --git a/.changeset/backtick-expand-only-in-styled.md b/.changeset/backtick-expand-only-in-styled.md deleted file mode 100644 index 365e224..0000000 --- a/.changeset/backtick-expand-only-in-styled.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"vscode-styled-components": patch ---- - -Typing a backtick no longer offers to expand it into a multi-line template everywhere. The "expand template string" suggestion now appears only when the backtick opens a styled template (#386). diff --git a/.changeset/color-picker-output.md b/.changeset/color-picker-output.md deleted file mode 100644 index 94bd689..0000000 --- a/.changeset/color-picker-output.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"vscode-styled-components": patch ---- - -The color picker now writes the same values VS Code's picker writes in `.css` files. A semi-transparent hex color always gets a valid two-digit alpha (`#ff00000d` rather than `#ff0000c`), and `hsl()` values use whole numbers. diff --git a/.changeset/enter-after-nested-template.md b/.changeset/enter-after-nested-template.md deleted file mode 100644 index 166b8df..0000000 --- a/.changeset/enter-after-nested-template.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"vscode-styled-components": patch ---- - -Picking a CSS property from the suggestion list and pressing Enter fills in `: ;` again when the template holds a nested template string inside `${}` (#437). It also works when the styled tag is spread across several lines. diff --git a/.changeset/faster-highlighting.md b/.changeset/faster-highlighting.md deleted file mode 100644 index 018a088..0000000 --- a/.changeset/faster-highlighting.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"vscode-styled-components": patch ---- - -Syntax highlighting is about 8% faster on average, measured over about 5,800 lines of styled-components code in JavaScript and TSX, both the first time the editor highlights a file and after. Files with very long single lines gained the most, highlighting about 65% faster on average. diff --git a/.changeset/fix-highlighting-spill.md b/.changeset/fix-highlighting-spill.md deleted file mode 100644 index 816efb2..0000000 --- a/.changeset/fix-highlighting-spill.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"vscode-styled-components": patch ---- - -Syntax highlighting no longer breaks for the rest of the file after certain styled components. These now highlight correctly, along with the code below them: a template right after a call whose arrow function returns an object or JSX, like `foo(() => ({ ... }))` or MUI's `styled(({ className, ...props }) => (...))` pattern (#383); `.attrs()` that uses props, even across several lines (#292); a props type written over several lines, like `styled.div<{ color: string }>` broken onto new lines (#358); TypeScript type parameters after `styled.div` (#442); a styled component passed into a function such as `React.memo` (#196); and templates after `Comp.extend`, `keyframes`, and `.withComponent()`. diff --git a/.changeset/keyframe-percent-selectors.md b/.changeset/keyframe-percent-selectors.md deleted file mode 100644 index 6c46d9d..0000000 --- a/.changeset/keyframe-percent-selectors.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"vscode-styled-components": patch ---- - -Keyframe selectors with decimals, like `33.3%`, now highlight as one selector inside an `@keyframes` block, the same as they already did in a `keyframes` template. diff --git a/.changeset/minimum-vscode-1-74.md b/.changeset/minimum-vscode-1-74.md deleted file mode 100644 index 8d6141a..0000000 --- a/.changeset/minimum-vscode-1-74.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"vscode-styled-components": patch ---- - -The extension now needs VS Code 1.74 or later, so VS Code starts it for the Enter-key `: ;` command in any JavaScript or TypeScript file, not only after a JSX or TSX file opens. diff --git a/.changeset/modern-css-function-highlighting.md b/.changeset/modern-css-function-highlighting.md deleted file mode 100644 index 8cfe546..0000000 --- a/.changeset/modern-css-function-highlighting.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"vscode-styled-components": minor ---- - -Modern CSS functions such as `oklch()`, `color-mix()`, `clamp()`, and `light-dark()` now highlight as functions inside styled templates, and `light-dark()` no longer breaks apart at the hyphen. diff --git a/.changeset/more-styled-tag-shapes.md b/.changeset/more-styled-tag-shapes.md deleted file mode 100644 index 5601827..0000000 --- a/.changeset/more-styled-tag-shapes.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"vscode-styled-components": minor ---- - -CSS highlighting now works in more of the ways you write styled components: a tag chain, on one line or split across lines by Prettier (`styled.div` or `Button.extend`, then any number of `.attrs()` and `.withConfig()` calls), a comment between `styled.div` and its backtick, a tag reached through an object (`theme.styled.div`, `$styled.div`, `theme.css`) or through a call or index (`getTheme().styled.div`, `items[0].styled.div`), type arguments that span several lines, including on `theme.keyframes`, and an arrow function whose parameter starts with `$` or has no parentheses, like `styled.div(($props) => ...)` or `styled.div(p => ...)`. diff --git a/.changeset/space-separated-rgb-hsl-swatches.md b/.changeset/space-separated-rgb-hsl-swatches.md deleted file mode 100644 index 5f686af..0000000 --- a/.changeset/space-separated-rgb-hsl-swatches.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"vscode-styled-components": patch ---- - -Space-separated `rgb()` and `hsl()` colors now show a color swatch and open the color picker, with or without a `/ alpha` value, like `hsl(220 30% 95%)` and `rgb(255 0 153 / 50%)` (#455). diff --git a/.changeset/wide-gamut-color-swatches.md b/.changeset/wide-gamut-color-swatches.md deleted file mode 100644 index 2d1bd7e..0000000 --- a/.changeset/wide-gamut-color-swatches.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"vscode-styled-components": minor ---- - -`hwb()`, `lab()`, `lch()`, `oklab()`, and `oklch()` colors now show a color swatch, and the color picker can write any color in these five formats. diff --git a/CHANGELOG.md b/CHANGELOG.md index cc1cca2..43aba25 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,33 @@ # Release Notes +## 1.8.0 + +### Minor Changes + +- [#465](https://github.com/styled-components/vscode-styled-components/pull/465) [`004e515`](https://github.com/styled-components/vscode-styled-components/commit/004e515f6f64be253b293d54eaf2b06e32945127) Thanks [@quantizor](https://github.com/quantizor)! - Modern CSS functions such as `oklch()`, `color-mix()`, `clamp()`, and `light-dark()` now highlight as functions inside styled templates, and `light-dark()` no longer breaks apart at the hyphen. + +- [#465](https://github.com/styled-components/vscode-styled-components/pull/465) [`004e515`](https://github.com/styled-components/vscode-styled-components/commit/004e515f6f64be253b293d54eaf2b06e32945127) Thanks [@quantizor](https://github.com/quantizor)! - CSS highlighting now works in more of the ways you write styled components: a tag chain, on one line or split across lines by Prettier (`styled.div` or `Button.extend`, then any number of `.attrs()` and `.withConfig()` calls), a comment between `styled.div` and its backtick, a tag reached through an object (`theme.styled.div`, `$styled.div`, `theme.css`) or through a call or index (`getTheme().styled.div`, `items[0].styled.div`), type arguments that span several lines, including on `theme.keyframes`, and an arrow function whose parameter starts with `$` or has no parentheses, like `styled.div(($props) => ...)` or `styled.div(p => ...)`. + +- [#465](https://github.com/styled-components/vscode-styled-components/pull/465) [`004e515`](https://github.com/styled-components/vscode-styled-components/commit/004e515f6f64be253b293d54eaf2b06e32945127) Thanks [@quantizor](https://github.com/quantizor)! - `hwb()`, `lab()`, `lch()`, `oklab()`, and `oklch()` colors now show a color swatch, and the color picker can write any color in these five formats. + +### Patch Changes + +- [#465](https://github.com/styled-components/vscode-styled-components/pull/465) [`004e515`](https://github.com/styled-components/vscode-styled-components/commit/004e515f6f64be253b293d54eaf2b06e32945127) Thanks [@quantizor](https://github.com/quantizor)! - Typing a backtick no longer offers to expand it into a multi-line template everywhere. The "expand template string" suggestion now appears only when the backtick opens a styled template ([#386](https://github.com/styled-components/vscode-styled-components/issues/386)). + +- [#465](https://github.com/styled-components/vscode-styled-components/pull/465) [`004e515`](https://github.com/styled-components/vscode-styled-components/commit/004e515f6f64be253b293d54eaf2b06e32945127) Thanks [@quantizor](https://github.com/quantizor)! - The color picker now writes the same values VS Code's picker writes in `.css` files. A semi-transparent hex color always gets a valid two-digit alpha (`#ff00000d` rather than `#ff0000c`), and `hsl()` values use whole numbers. + +- [#465](https://github.com/styled-components/vscode-styled-components/pull/465) [`004e515`](https://github.com/styled-components/vscode-styled-components/commit/004e515f6f64be253b293d54eaf2b06e32945127) Thanks [@quantizor](https://github.com/quantizor)! - Picking a CSS property from the suggestion list and pressing Enter fills in `: ;` again when the template holds a nested template string inside `${}` ([#437](https://github.com/styled-components/vscode-styled-components/issues/437)). It also works when the styled tag is spread across several lines. + +- [#465](https://github.com/styled-components/vscode-styled-components/pull/465) [`004e515`](https://github.com/styled-components/vscode-styled-components/commit/004e515f6f64be253b293d54eaf2b06e32945127) Thanks [@quantizor](https://github.com/quantizor)! - Syntax highlighting is about 8% faster on average, measured over about 5,800 lines of styled-components code in JavaScript and TSX, both the first time the editor highlights a file and after. Files with very long single lines gained the most, highlighting about 65% faster on average. + +- [#465](https://github.com/styled-components/vscode-styled-components/pull/465) [`004e515`](https://github.com/styled-components/vscode-styled-components/commit/004e515f6f64be253b293d54eaf2b06e32945127) Thanks [@quantizor](https://github.com/quantizor)! - Syntax highlighting no longer breaks for the rest of the file after certain styled components. These now highlight correctly, along with the code below them: a template right after a call whose arrow function returns an object or JSX, like `foo(() => ({ ... }))` or MUI's `styled(({ className, ...props }) => (...))` pattern ([#383](https://github.com/styled-components/vscode-styled-components/issues/383)); `.attrs()` that uses props, even across several lines ([#292](https://github.com/styled-components/vscode-styled-components/issues/292)); a props type written over several lines, like `styled.div<{ color: string }>` broken onto new lines ([#358](https://github.com/styled-components/vscode-styled-components/issues/358)); TypeScript type parameters after `styled.div` ([#442](https://github.com/styled-components/vscode-styled-components/issues/442)); a styled component passed into a function such as `React.memo` ([#196](https://github.com/styled-components/vscode-styled-components/issues/196)); and templates after `Comp.extend`, `keyframes`, and `.withComponent()`. + +- [#465](https://github.com/styled-components/vscode-styled-components/pull/465) [`004e515`](https://github.com/styled-components/vscode-styled-components/commit/004e515f6f64be253b293d54eaf2b06e32945127) Thanks [@quantizor](https://github.com/quantizor)! - Keyframe selectors with decimals, like `33.3%`, now highlight as one selector inside an `@keyframes` block, the same as they already did in a `keyframes` template. + +- [#465](https://github.com/styled-components/vscode-styled-components/pull/465) [`004e515`](https://github.com/styled-components/vscode-styled-components/commit/004e515f6f64be253b293d54eaf2b06e32945127) Thanks [@quantizor](https://github.com/quantizor)! - The extension now needs VS Code 1.74 or later, so VS Code starts it for the Enter-key `: ;` command in any JavaScript or TypeScript file, not only after a JSX or TSX file opens. + +- [#465](https://github.com/styled-components/vscode-styled-components/pull/465) [`004e515`](https://github.com/styled-components/vscode-styled-components/commit/004e515f6f64be253b293d54eaf2b06e32945127) Thanks [@quantizor](https://github.com/quantizor)! - Space-separated `rgb()` and `hsl()` colors now show a color swatch and open the color picker, with or without a `/ alpha` value, like `hsl(220 30% 95%)` and `rgb(255 0 153 / 50%)` ([#455](https://github.com/styled-components/vscode-styled-components/issues/455)). + ## 1.7.10 ### Patch Changes diff --git a/package.json b/package.json index a758d25..c8f12e5 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "vscode-styled-components", "displayName": "vscode-styled-components", "description": "Syntax highlighting for styled-components", - "version": "1.7.10", + "version": "1.8.0", "private": true, "publisher": "styled-components", "icon": "logo.png",