From 691348b11de7e7185832ab172a489444925ca958 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 5 Jul 2026 15:31:11 +0000 Subject: [PATCH] Version Packages --- .changeset/case-insensitive-at-rule-names.md | 5 ---- .changeset/case-insensitive-keywords.md | 5 ---- .changeset/container-option.md | 8 ------- .changeset/dashed-idents.md | 8 ------- .changeset/deprecate-keyframes-option.md | 8 ------- .changeset/restrict-typescript-peer-deps.md | 7 ------ .changeset/style-query-var-from-clause.md | 5 ---- packages/codegen/CHANGELOG.md | 17 +++++++++++++ packages/codegen/package.json | 2 +- packages/core/CHANGELOG.md | 25 ++++++++++++++++++++ packages/core/package.json | 2 +- packages/eslint-plugin/CHANGELOG.md | 9 +++++++ packages/eslint-plugin/package.json | 2 +- packages/stylelint-plugin/CHANGELOG.md | 9 +++++++ packages/stylelint-plugin/package.json | 2 +- packages/ts-plugin/CHANGELOG.md | 20 ++++++++++++++++ packages/ts-plugin/package.json | 2 +- packages/vscode/CHANGELOG.md | 15 ++++++++++++ packages/vscode/package.json | 2 +- 19 files changed, 101 insertions(+), 52 deletions(-) delete mode 100644 .changeset/case-insensitive-at-rule-names.md delete mode 100644 .changeset/case-insensitive-keywords.md delete mode 100644 .changeset/container-option.md delete mode 100644 .changeset/dashed-idents.md delete mode 100644 .changeset/deprecate-keyframes-option.md delete mode 100644 .changeset/restrict-typescript-peer-deps.md delete mode 100644 .changeset/style-query-var-from-clause.md diff --git a/.changeset/case-insensitive-at-rule-names.md b/.changeset/case-insensitive-at-rule-names.md deleted file mode 100644 index 73324623..00000000 --- a/.changeset/case-insensitive-at-rule-names.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@css-modules-kit/core': patch ---- - -fix(core): match `@import` / `@value` / `@keyframes` at-rule names case-insensitively diff --git a/.changeset/case-insensitive-keywords.md b/.changeset/case-insensitive-keywords.md deleted file mode 100644 index a04106bc..00000000 --- a/.changeset/case-insensitive-keywords.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@css-modules-kit/core': patch ---- - -fix(core): match `from` / `global` / `as` keywords case-insensitively in `composes` and `@value` diff --git a/.changeset/container-option.md b/.changeset/container-option.md deleted file mode 100644 index 45c84268..00000000 --- a/.changeset/container-option.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@css-modules-kit/core': minor -'@css-modules-kit/ts-plugin': minor -'@css-modules-kit/codegen': minor -'css-modules-kit-vscode': minor ---- - -feat(core, ts-plugin, codegen, vscode): support scoping container names via `cmkOptions.container` diff --git a/.changeset/dashed-idents.md b/.changeset/dashed-idents.md deleted file mode 100644 index 21a425d1..00000000 --- a/.changeset/dashed-idents.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@css-modules-kit/core': minor -'@css-modules-kit/ts-plugin': minor -'@css-modules-kit/codegen': minor -'css-modules-kit-vscode': minor ---- - -feat(core, ts-plugin, codegen, vscode): support `` tokens via the `dashedIdents` option diff --git a/.changeset/deprecate-keyframes-option.md b/.changeset/deprecate-keyframes-option.md deleted file mode 100644 index 5ad6e636..00000000 --- a/.changeset/deprecate-keyframes-option.md +++ /dev/null @@ -1,8 +0,0 @@ ---- -'@css-modules-kit/core': minor -'@css-modules-kit/ts-plugin': minor -'@css-modules-kit/codegen': minor -'css-modules-kit-vscode': minor ---- - -feat(core, ts-plugin, codegen, vscode): deprecate `cmkOptions.keyframes` in favor of `cmkOptions.animation` diff --git a/.changeset/restrict-typescript-peer-deps.md b/.changeset/restrict-typescript-peer-deps.md deleted file mode 100644 index 9ab7734a..00000000 --- a/.changeset/restrict-typescript-peer-deps.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@css-modules-kit/codegen': patch -'@css-modules-kit/core': patch -'@css-modules-kit/ts-plugin': patch ---- - -fix(core, ts-plugin, codegen): exclude TypeScript 7 from supported peerDependencies range diff --git a/.changeset/style-query-var-from-clause.md b/.changeset/style-query-var-from-clause.md deleted file mode 100644 index 5160e733..00000000 --- a/.changeset/style-query-var-from-clause.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@css-modules-kit/core': patch ---- - -fix(core): honor the `from` clause of `var()` inside `@container style()` query values diff --git a/packages/codegen/CHANGELOG.md b/packages/codegen/CHANGELOG.md index dbbe4732..59827a18 100644 --- a/packages/codegen/CHANGELOG.md +++ b/packages/codegen/CHANGELOG.md @@ -1,5 +1,22 @@ # @css-modules-kit/codegen +## 1.4.0 + +### Minor Changes + +- [#437](https://github.com/mizdra/css-modules-kit/pull/437) [`c2ce4f3`](https://github.com/mizdra/css-modules-kit/commit/c2ce4f3f1d79d40abb939dc196b6165b2cd577e2) - feat(core, ts-plugin, codegen, vscode): support scoping container names via `cmkOptions.container` + +- [#420](https://github.com/mizdra/css-modules-kit/pull/420) [`eaafd2c`](https://github.com/mizdra/css-modules-kit/commit/eaafd2c9b1f57b4778f18b99e2a171a6ae809acd) - feat(core, ts-plugin, codegen, vscode): support `` tokens via the `dashedIdents` option + +- [#430](https://github.com/mizdra/css-modules-kit/pull/430) [`5f24d86`](https://github.com/mizdra/css-modules-kit/commit/5f24d863845c2d88a2a2e27987893b8fdad764c6) - feat(core, ts-plugin, codegen, vscode): deprecate `cmkOptions.keyframes` in favor of `cmkOptions.animation` + +### Patch Changes + +- [#429](https://github.com/mizdra/css-modules-kit/pull/429) [`eb850ed`](https://github.com/mizdra/css-modules-kit/commit/eb850ed498b5ba5f4af6681d375727684abdc1c4) - fix(core, ts-plugin, codegen): exclude TypeScript 7 from supported peerDependencies range + +- Updated dependencies [[`fb19123`](https://github.com/mizdra/css-modules-kit/commit/fb19123a8887f91f8fdd2d693726b74ab14ca418), [`85196f9`](https://github.com/mizdra/css-modules-kit/commit/85196f9c8c5ee50768db91b4a8f02cc85813aaaa), [`c2ce4f3`](https://github.com/mizdra/css-modules-kit/commit/c2ce4f3f1d79d40abb939dc196b6165b2cd577e2), [`eaafd2c`](https://github.com/mizdra/css-modules-kit/commit/eaafd2c9b1f57b4778f18b99e2a171a6ae809acd), [`5f24d86`](https://github.com/mizdra/css-modules-kit/commit/5f24d863845c2d88a2a2e27987893b8fdad764c6), [`eb850ed`](https://github.com/mizdra/css-modules-kit/commit/eb850ed498b5ba5f4af6681d375727684abdc1c4), [`4a8630f`](https://github.com/mizdra/css-modules-kit/commit/4a8630ffbe8ea46693c09363be9b0924ea58dac6)]: + - @css-modules-kit/core@1.4.0 + ## 1.3.0 ### Patch Changes diff --git a/packages/codegen/package.json b/packages/codegen/package.json index 2e547a1d..1dc850fc 100644 --- a/packages/codegen/package.json +++ b/packages/codegen/package.json @@ -1,6 +1,6 @@ { "name": "@css-modules-kit/codegen", - "version": "1.3.0", + "version": "1.4.0", "private": false, "description": "A tool for generating `*.d.ts` files for `*.module.css`.", "keywords": [ diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 9e73e340..a91441fa 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -1,5 +1,25 @@ # @css-modules-kit/core +## 1.4.0 + +### Minor Changes + +- [#437](https://github.com/mizdra/css-modules-kit/pull/437) [`c2ce4f3`](https://github.com/mizdra/css-modules-kit/commit/c2ce4f3f1d79d40abb939dc196b6165b2cd577e2) - feat(core, ts-plugin, codegen, vscode): support scoping container names via `cmkOptions.container` + +- [#420](https://github.com/mizdra/css-modules-kit/pull/420) [`eaafd2c`](https://github.com/mizdra/css-modules-kit/commit/eaafd2c9b1f57b4778f18b99e2a171a6ae809acd) - feat(core, ts-plugin, codegen, vscode): support `` tokens via the `dashedIdents` option + +- [#430](https://github.com/mizdra/css-modules-kit/pull/430) [`5f24d86`](https://github.com/mizdra/css-modules-kit/commit/5f24d863845c2d88a2a2e27987893b8fdad764c6) - feat(core, ts-plugin, codegen, vscode): deprecate `cmkOptions.keyframes` in favor of `cmkOptions.animation` + +### Patch Changes + +- [#427](https://github.com/mizdra/css-modules-kit/pull/427) [`fb19123`](https://github.com/mizdra/css-modules-kit/commit/fb19123a8887f91f8fdd2d693726b74ab14ca418) - fix(core): match `@import` / `@value` / `@keyframes` at-rule names case-insensitively + +- [#426](https://github.com/mizdra/css-modules-kit/pull/426) [`85196f9`](https://github.com/mizdra/css-modules-kit/commit/85196f9c8c5ee50768db91b4a8f02cc85813aaaa) - fix(core): match `from` / `global` / `as` keywords case-insensitively in `composes` and `@value` + +- [#429](https://github.com/mizdra/css-modules-kit/pull/429) [`eb850ed`](https://github.com/mizdra/css-modules-kit/commit/eb850ed498b5ba5f4af6681d375727684abdc1c4) - fix(core, ts-plugin, codegen): exclude TypeScript 7 from supported peerDependencies range + +- [#428](https://github.com/mizdra/css-modules-kit/pull/428) [`4a8630f`](https://github.com/mizdra/css-modules-kit/commit/4a8630ffbe8ea46693c09363be9b0924ea58dac6) - fix(core): honor the `from` clause of `var()` inside `@container style()` query values + ## 1.3.0 ### Minor Changes @@ -11,6 +31,7 @@ The `@value` parser is reimplemented on top of postcss-value-parser. Behavior for syntax supported by css-loader is unchanged. For syntax that css-loader does not support (where css-modules-kit does not guarantee a specific behavior), the result changed: + - `@value \\c: #000;` and `@value \'d: #000;` are now parsed as a token declaration instead of reporting an error. - `@value \31 e: #000;` is now read as the token name `\31` instead of `e`. @@ -19,6 +40,7 @@ Class names referenced via `composes: foo from './other.module.css';` are now linked to the `.foo {...}` declaration in the referenced file. Go to Definition jumps from the reference to the declaration, Find All References lists reference sites across files, and Rename updates the declaration and every reference together. Two diagnostics are also emitted in the check phase: + - `Cannot import module ''` when the specifier cannot be resolved. - `Module '' has no exported token ''.` when the referenced file does not export the token. @@ -27,6 +49,7 @@ Class names referenced via `composes: foo;` are now linked back to the `.foo {...}` declaration. Go to Definition jumps from a reference to the declaration, Find All References lists every reference site, and Rename updates the declaration and every reference together. Space-separated names (`composes: foo bar;`), comma-separated names (`composes: foo, bar;`), and mixes of both are supported. `composes: global(foo);`, `composes: foo from global;`, and `composes: foo from '';` do not produce references (support for `from ''` is planned). Two diagnostics are also emitted for invalid usage: + - Parse phase: a `from` clause not followed by a quoted specifier or the `global` keyword is reported. - Check phase: references that resolve to neither a locally defined token nor an imported token are reported as `Cannot find token ''.`. @@ -45,6 +68,7 @@ `animation-name: foo;` is now linked back to the `@keyframes foo {...}` declaration. Go to Definition jumps from a reference to the declaration, Find All References lists every reference site, and Rename updates the declaration and every reference together. Comma-separated names (`animation-name: foo, bar;`), `local()` / `global()` notation, and vendor prefixes (`-webkit-animation-name`) are all supported. References to `@keyframes` defined in another file via `@import` are resolved as well. Two diagnostics are also emitted for invalid usage: + - Parse phase: malformed `local(...)` calls (empty, multiple identifiers, or non-identifier nodes such as a nested function) are reported. - Check phase: token references that resolve to neither a locally defined token nor an imported token are reported as `Cannot find token ''.`. @@ -73,6 +97,7 @@ Rename the public types so they describe the abstract shape of the import (matching ESTree's `ExportAllDeclaration` / `ExportNamedDeclaration`) rather than the CSS syntax that produced them: + - `AtImportTokenImporter` → `AllTokenImporter` (`type: 'all'`) - `AtValueTokenImporter` → `NamedTokenImporter` (`type: 'named'`) - `AtValueTokenImporterValue` → `NamedTokenImporterEntry` diff --git a/packages/core/package.json b/packages/core/package.json index 82a6f6d5..b71cfb9c 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@css-modules-kit/core", - "version": "1.3.0", + "version": "1.4.0", "private": false, "description": "The core of css-modules-kit", "keywords": [ diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md index 805f03d9..29b0c771 100644 --- a/packages/eslint-plugin/CHANGELOG.md +++ b/packages/eslint-plugin/CHANGELOG.md @@ -1,5 +1,12 @@ # @css-modules-kit/eslint-plugin +## 1.4.0 + +### Patch Changes + +- Updated dependencies [[`fb19123`](https://github.com/mizdra/css-modules-kit/commit/fb19123a8887f91f8fdd2d693726b74ab14ca418), [`85196f9`](https://github.com/mizdra/css-modules-kit/commit/85196f9c8c5ee50768db91b4a8f02cc85813aaaa), [`c2ce4f3`](https://github.com/mizdra/css-modules-kit/commit/c2ce4f3f1d79d40abb939dc196b6165b2cd577e2), [`eaafd2c`](https://github.com/mizdra/css-modules-kit/commit/eaafd2c9b1f57b4778f18b99e2a171a6ae809acd), [`5f24d86`](https://github.com/mizdra/css-modules-kit/commit/5f24d863845c2d88a2a2e27987893b8fdad764c6), [`eb850ed`](https://github.com/mizdra/css-modules-kit/commit/eb850ed498b5ba5f4af6681d375727684abdc1c4), [`4a8630f`](https://github.com/mizdra/css-modules-kit/commit/4a8630ffbe8ea46693c09363be9b0924ea58dac6)]: + - @css-modules-kit/core@1.4.0 + ## 1.3.0 ### Patch Changes @@ -9,6 +16,7 @@ Class names referenced via `composes: foo;` are now linked back to the `.foo {...}` declaration. Go to Definition jumps from a reference to the declaration, Find All References lists every reference site, and Rename updates the declaration and every reference together. Space-separated names (`composes: foo bar;`), comma-separated names (`composes: foo, bar;`), and mixes of both are supported. `composes: global(foo);`, `composes: foo from global;`, and `composes: foo from '';` do not produce references (support for `from ''` is planned). Two diagnostics are also emitted for invalid usage: + - Parse phase: a `from` clause not followed by a quoted specifier or the `global` keyword is reported. - Check phase: references that resolve to neither a locally defined token nor an imported token are reported as `Cannot find token ''.`. @@ -26,6 +34,7 @@ `animation-name: foo;` is now linked back to the `@keyframes foo {...}` declaration. Go to Definition jumps from a reference to the declaration, Find All References lists every reference site, and Rename updates the declaration and every reference together. Comma-separated names (`animation-name: foo, bar;`), `local()` / `global()` notation, and vendor prefixes (`-webkit-animation-name`) are all supported. References to `@keyframes` defined in another file via `@import` are resolved as well. Two diagnostics are also emitted for invalid usage: + - Parse phase: malformed `local(...)` calls (empty, multiple identifiers, or non-identifier nodes such as a nested function) are reported. - Check phase: token references that resolve to neither a locally defined token nor an imported token are reported as `Cannot find token ''.`. diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index d9e1f765..e832d1c5 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@css-modules-kit/eslint-plugin", - "version": "1.3.0", + "version": "1.4.0", "private": false, "description": "A eslint plugin for CSS Modules", "keywords": [ diff --git a/packages/stylelint-plugin/CHANGELOG.md b/packages/stylelint-plugin/CHANGELOG.md index abb79be9..3fbd621e 100644 --- a/packages/stylelint-plugin/CHANGELOG.md +++ b/packages/stylelint-plugin/CHANGELOG.md @@ -1,5 +1,12 @@ # @css-modules-kit/stylelint-plugin +## 1.4.0 + +### Patch Changes + +- Updated dependencies [[`fb19123`](https://github.com/mizdra/css-modules-kit/commit/fb19123a8887f91f8fdd2d693726b74ab14ca418), [`85196f9`](https://github.com/mizdra/css-modules-kit/commit/85196f9c8c5ee50768db91b4a8f02cc85813aaaa), [`c2ce4f3`](https://github.com/mizdra/css-modules-kit/commit/c2ce4f3f1d79d40abb939dc196b6165b2cd577e2), [`eaafd2c`](https://github.com/mizdra/css-modules-kit/commit/eaafd2c9b1f57b4778f18b99e2a171a6ae809acd), [`5f24d86`](https://github.com/mizdra/css-modules-kit/commit/5f24d863845c2d88a2a2e27987893b8fdad764c6), [`eb850ed`](https://github.com/mizdra/css-modules-kit/commit/eb850ed498b5ba5f4af6681d375727684abdc1c4), [`4a8630f`](https://github.com/mizdra/css-modules-kit/commit/4a8630ffbe8ea46693c09363be9b0924ea58dac6)]: + - @css-modules-kit/core@1.4.0 + ## 1.3.0 ### Patch Changes @@ -9,6 +16,7 @@ Class names referenced via `composes: foo;` are now linked back to the `.foo {...}` declaration. Go to Definition jumps from a reference to the declaration, Find All References lists every reference site, and Rename updates the declaration and every reference together. Space-separated names (`composes: foo bar;`), comma-separated names (`composes: foo, bar;`), and mixes of both are supported. `composes: global(foo);`, `composes: foo from global;`, and `composes: foo from '';` do not produce references (support for `from ''` is planned). Two diagnostics are also emitted for invalid usage: + - Parse phase: a `from` clause not followed by a quoted specifier or the `global` keyword is reported. - Check phase: references that resolve to neither a locally defined token nor an imported token are reported as `Cannot find token ''.`. @@ -26,6 +34,7 @@ `animation-name: foo;` is now linked back to the `@keyframes foo {...}` declaration. Go to Definition jumps from a reference to the declaration, Find All References lists every reference site, and Rename updates the declaration and every reference together. Comma-separated names (`animation-name: foo, bar;`), `local()` / `global()` notation, and vendor prefixes (`-webkit-animation-name`) are all supported. References to `@keyframes` defined in another file via `@import` are resolved as well. Two diagnostics are also emitted for invalid usage: + - Parse phase: malformed `local(...)` calls (empty, multiple identifiers, or non-identifier nodes such as a nested function) are reported. - Check phase: token references that resolve to neither a locally defined token nor an imported token are reported as `Cannot find token ''.`. diff --git a/packages/stylelint-plugin/package.json b/packages/stylelint-plugin/package.json index d6f95bd3..7cf179b0 100644 --- a/packages/stylelint-plugin/package.json +++ b/packages/stylelint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@css-modules-kit/stylelint-plugin", - "version": "1.3.0", + "version": "1.4.0", "private": false, "description": "A stylelint plugin for CSS Modules", "keywords": [ diff --git a/packages/ts-plugin/CHANGELOG.md b/packages/ts-plugin/CHANGELOG.md index 80ae6170..e74e5636 100644 --- a/packages/ts-plugin/CHANGELOG.md +++ b/packages/ts-plugin/CHANGELOG.md @@ -1,5 +1,22 @@ # @css-modules-kit/ts-plugin +## 1.4.0 + +### Minor Changes + +- [#437](https://github.com/mizdra/css-modules-kit/pull/437) [`c2ce4f3`](https://github.com/mizdra/css-modules-kit/commit/c2ce4f3f1d79d40abb939dc196b6165b2cd577e2) - feat(core, ts-plugin, codegen, vscode): support scoping container names via `cmkOptions.container` + +- [#420](https://github.com/mizdra/css-modules-kit/pull/420) [`eaafd2c`](https://github.com/mizdra/css-modules-kit/commit/eaafd2c9b1f57b4778f18b99e2a171a6ae809acd) - feat(core, ts-plugin, codegen, vscode): support `` tokens via the `dashedIdents` option + +- [#430](https://github.com/mizdra/css-modules-kit/pull/430) [`5f24d86`](https://github.com/mizdra/css-modules-kit/commit/5f24d863845c2d88a2a2e27987893b8fdad764c6) - feat(core, ts-plugin, codegen, vscode): deprecate `cmkOptions.keyframes` in favor of `cmkOptions.animation` + +### Patch Changes + +- [#429](https://github.com/mizdra/css-modules-kit/pull/429) [`eb850ed`](https://github.com/mizdra/css-modules-kit/commit/eb850ed498b5ba5f4af6681d375727684abdc1c4) - fix(core, ts-plugin, codegen): exclude TypeScript 7 from supported peerDependencies range + +- Updated dependencies [[`fb19123`](https://github.com/mizdra/css-modules-kit/commit/fb19123a8887f91f8fdd2d693726b74ab14ca418), [`85196f9`](https://github.com/mizdra/css-modules-kit/commit/85196f9c8c5ee50768db91b4a8f02cc85813aaaa), [`c2ce4f3`](https://github.com/mizdra/css-modules-kit/commit/c2ce4f3f1d79d40abb939dc196b6165b2cd577e2), [`eaafd2c`](https://github.com/mizdra/css-modules-kit/commit/eaafd2c9b1f57b4778f18b99e2a171a6ae809acd), [`5f24d86`](https://github.com/mizdra/css-modules-kit/commit/5f24d863845c2d88a2a2e27987893b8fdad764c6), [`eb850ed`](https://github.com/mizdra/css-modules-kit/commit/eb850ed498b5ba5f4af6681d375727684abdc1c4), [`4a8630f`](https://github.com/mizdra/css-modules-kit/commit/4a8630ffbe8ea46693c09363be9b0924ea58dac6)]: + - @css-modules-kit/core@1.4.0 + ## 1.3.0 ### Minor Changes @@ -9,6 +26,7 @@ Class names referenced via `composes: foo from './other.module.css';` are now linked to the `.foo {...}` declaration in the referenced file. Go to Definition jumps from the reference to the declaration, Find All References lists reference sites across files, and Rename updates the declaration and every reference together. Two diagnostics are also emitted in the check phase: + - `Cannot import module ''` when the specifier cannot be resolved. - `Module '' has no exported token ''.` when the referenced file does not export the token. @@ -17,6 +35,7 @@ Class names referenced via `composes: foo;` are now linked back to the `.foo {...}` declaration. Go to Definition jumps from a reference to the declaration, Find All References lists every reference site, and Rename updates the declaration and every reference together. Space-separated names (`composes: foo bar;`), comma-separated names (`composes: foo, bar;`), and mixes of both are supported. `composes: global(foo);`, `composes: foo from global;`, and `composes: foo from '';` do not produce references (support for `from ''` is planned). Two diagnostics are also emitted for invalid usage: + - Parse phase: a `from` clause not followed by a quoted specifier or the `global` keyword is reported. - Check phase: references that resolve to neither a locally defined token nor an imported token are reported as `Cannot find token ''.`. @@ -40,6 +59,7 @@ `animation-name: foo;` is now linked back to the `@keyframes foo {...}` declaration. Go to Definition jumps from a reference to the declaration, Find All References lists every reference site, and Rename updates the declaration and every reference together. Comma-separated names (`animation-name: foo, bar;`), `local()` / `global()` notation, and vendor prefixes (`-webkit-animation-name`) are all supported. References to `@keyframes` defined in another file via `@import` are resolved as well. Two diagnostics are also emitted for invalid usage: + - Parse phase: malformed `local(...)` calls (empty, multiple identifiers, or non-identifier nodes such as a nested function) are reported. - Check phase: token references that resolve to neither a locally defined token nor an imported token are reported as `Cannot find token ''.`. diff --git a/packages/ts-plugin/package.json b/packages/ts-plugin/package.json index 425e9366..22f195b8 100644 --- a/packages/ts-plugin/package.json +++ b/packages/ts-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@css-modules-kit/ts-plugin", - "version": "1.3.0", + "version": "1.4.0", "private": false, "description": "A TypeScript Language Service Plugin for CSS Modules", "keywords": [ diff --git a/packages/vscode/CHANGELOG.md b/packages/vscode/CHANGELOG.md index 82527685..81b1b0d8 100644 --- a/packages/vscode/CHANGELOG.md +++ b/packages/vscode/CHANGELOG.md @@ -1,5 +1,20 @@ # css-modules-kit-vscode +## 1.4.0 + +### Minor Changes + +- [#437](https://github.com/mizdra/css-modules-kit/pull/437) [`c2ce4f3`](https://github.com/mizdra/css-modules-kit/commit/c2ce4f3f1d79d40abb939dc196b6165b2cd577e2) - feat(core, ts-plugin, codegen, vscode): support scoping container names via `cmkOptions.container` + +- [#420](https://github.com/mizdra/css-modules-kit/pull/420) [`eaafd2c`](https://github.com/mizdra/css-modules-kit/commit/eaafd2c9b1f57b4778f18b99e2a171a6ae809acd) - feat(core, ts-plugin, codegen, vscode): support `` tokens via the `dashedIdents` option + +- [#430](https://github.com/mizdra/css-modules-kit/pull/430) [`5f24d86`](https://github.com/mizdra/css-modules-kit/commit/5f24d863845c2d88a2a2e27987893b8fdad764c6) - feat(core, ts-plugin, codegen, vscode): deprecate `cmkOptions.keyframes` in favor of `cmkOptions.animation` + +### Patch Changes + +- Updated dependencies [[`c2ce4f3`](https://github.com/mizdra/css-modules-kit/commit/c2ce4f3f1d79d40abb939dc196b6165b2cd577e2), [`eaafd2c`](https://github.com/mizdra/css-modules-kit/commit/eaafd2c9b1f57b4778f18b99e2a171a6ae809acd), [`5f24d86`](https://github.com/mizdra/css-modules-kit/commit/5f24d863845c2d88a2a2e27987893b8fdad764c6), [`eb850ed`](https://github.com/mizdra/css-modules-kit/commit/eb850ed498b5ba5f4af6681d375727684abdc1c4)]: + - @css-modules-kit/ts-plugin@1.4.0 + ## 1.3.0 ### Patch Changes diff --git a/packages/vscode/package.json b/packages/vscode/package.json index ca65629d..8e17ec98 100644 --- a/packages/vscode/package.json +++ b/packages/vscode/package.json @@ -1,7 +1,7 @@ { "name": "css-modules-kit-vscode", "displayName": "CSS Modules Kit", - "version": "1.3.0", + "version": "1.4.0", "private": true, "description": "The VS Code extension for CSS Modules", "categories": [