Skip to content

Commit dee9e35

Browse files
Version Packages
1 parent 7088b12 commit dee9e35

18 files changed

Lines changed: 93 additions & 44 deletions

.changeset/case-insensitive-at-rule-names.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/case-insensitive-keywords.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

.changeset/dashed-idents.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changeset/deprecate-keyframes-option.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

.changeset/restrict-typescript-peer-deps.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

.changeset/style-query-var-from-clause.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

packages/codegen/CHANGELOG.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# @css-modules-kit/codegen
22

3+
## 1.4.0
4+
5+
### Minor Changes
6+
7+
- [#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 `<dashed-ident>` tokens via the `dashedIdents` option
8+
9+
- [#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`
10+
11+
### Patch Changes
12+
13+
- [#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
14+
15+
- Updated dependencies [[`fb19123`](https://github.com/mizdra/css-modules-kit/commit/fb19123a8887f91f8fdd2d693726b74ab14ca418), [`85196f9`](https://github.com/mizdra/css-modules-kit/commit/85196f9c8c5ee50768db91b4a8f02cc85813aaaa), [`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)]:
16+
- @css-modules-kit/core@1.4.0
17+
318
## 1.3.0
419

520
### Patch Changes

packages/codegen/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@css-modules-kit/codegen",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"private": false,
55
"description": "A tool for generating `*.d.ts` files for `*.module.css`.",
66
"keywords": [

packages/core/CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# @css-modules-kit/core
22

3+
## 1.4.0
4+
5+
### Minor Changes
6+
7+
- [#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 `<dashed-ident>` tokens via the `dashedIdents` option
8+
9+
- [#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`
10+
11+
### Patch Changes
12+
13+
- [#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
14+
15+
- [#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`
16+
17+
- [#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
18+
19+
- [#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
20+
321
## 1.3.0
422

523
### Minor Changes
@@ -11,6 +29,7 @@
1129
The `@value` parser is reimplemented on top of postcss-value-parser. Behavior for syntax supported by css-loader is unchanged.
1230

1331
For syntax that css-loader does not support (where css-modules-kit does not guarantee a specific behavior), the result changed:
32+
1433
- `@value \\c: #000;` and `@value \'d: #000;` are now parsed as a token declaration instead of reporting an error.
1534
- `@value \31 e: #000;` is now read as the token name `\31` instead of `e`.
1635

@@ -19,6 +38,7 @@
1938
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.
2039

2140
Two diagnostics are also emitted in the check phase:
41+
2242
- `Cannot import module '<specifier>'` when the specifier cannot be resolved.
2343
- `Module '<specifier>' has no exported token '<name>'.` when the referenced file does not export the token.
2444

@@ -27,6 +47,7 @@
2747
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 '<specifier>';` do not produce references (support for `from '<specifier>'` is planned).
2848

2949
Two diagnostics are also emitted for invalid usage:
50+
3051
- Parse phase: a `from` clause not followed by a quoted specifier or the `global` keyword is reported.
3152
- Check phase: references that resolve to neither a locally defined token nor an imported token are reported as `Cannot find token '<name>'.`.
3253

@@ -45,6 +66,7 @@
4566
`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.
4667

4768
Two diagnostics are also emitted for invalid usage:
69+
4870
- Parse phase: malformed `local(...)` calls (empty, multiple identifiers, or non-identifier nodes such as a nested function) are reported.
4971
- Check phase: token references that resolve to neither a locally defined token nor an imported token are reported as `Cannot find token '<name>'.`.
5072

@@ -73,6 +95,7 @@
7395
Rename the public types so they describe the abstract shape of the import
7496
(matching ESTree's `ExportAllDeclaration` / `ExportNamedDeclaration`)
7597
rather than the CSS syntax that produced them:
98+
7699
- `AtImportTokenImporter``AllTokenImporter` (`type: 'all'`)
77100
- `AtValueTokenImporter``NamedTokenImporter` (`type: 'named'`)
78101
- `AtValueTokenImporterValue``NamedTokenImporterEntry`

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@css-modules-kit/core",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"private": false,
55
"description": "The core of css-modules-kit",
66
"keywords": [

0 commit comments

Comments
 (0)