Skip to content

Releases: mizdra/css-modules-kit

Release 2025-12-21T09:41Z

21 Dec 09:41
Immutable release. Only release title and notes can be modified.
0bf647b

Choose a tag to compare

Notable Changes

Watch Mode coming to cmk command (#278)

Previously, the cmk command lacked a watch mode feature. As a result, during development, the contents of *.module.css.d.ts files could become outdated.

This typically isn't problematic because tsserver performs type checking based on *.module.css content rather than *.module.css.d.ts. However, tools like the ESLint Language Server perform type checking based on *.module.css.d.ts. Consequently, this leads to inconsistent type checking results between ESLint Language Server and tsserver, which can confuse users.

To address this issue, we have added a watch mode feature to the cmk command, available via cmk --watch. In watch mode, the tool watches changes to *.module.css files and automatically generates corresponding *.module.css.d.ts files whenever changes are detected.

2025-12-21.19.26.32.mov

Enable cmkOptions completion in tsconfig.json for VS Code (#277)

cmkOptions is now supported for completion. Thanks to @Gehbt for implementing this feature!

image

@css-modules-kit/[email protected]

Minor Changes

  • #269 60b7515 - feat: generate .d.ts files even if syntax or semantic errors are found

  • #278 f33b0a6 - feat: add --watch option

  • #272 c36be81 - feat!: report an error diagnostic when no files found by include/exclude pattern

Patch Changes

@css-modules-kit/[email protected]

Minor Changes

  • #273 d1c2051 - refactor: rename from createDts to generateDts

  • #269 60b7515 - feat: generate .d.ts files even if syntax or semantic errors are found

  • #262 4d661a1 - feat: add wildcardDirectories in CMKConfig

  • #274 87e1aef - refactor: include diagnostics within CSSModule object

  • #272 c36be81 - feat!: report an error diagnostic when no files found by include/exclude pattern

@css-modules-kit/[email protected]

Patch Changes

@css-modules-kit/[email protected]

Patch Changes

@css-modules-kit/[email protected]

Minor Changes

  • #269 60b7515 - feat: generate .d.ts files even if syntax or semantic errors are found

  • #272 c36be81 - feat!: report an error diagnostic when no files found by include/exclude pattern

Patch Changes

[email protected]

Patch Changes

[email protected]

Minor Changes

Patch Changes

Release 2025-09-03T01:27Z

03 Sep 01:27
Immutable release. Only release title and notes can be modified.
a5c42d4

Choose a tag to compare

[email protected]

Minor Changes

  • e669052: deps: update bundled ts-plugin version

Release 2025-09-02T12:38Z

02 Sep 12:39
Immutable release. Only release title and notes can be modified.
381c67f

Choose a tag to compare

@css-modules-kit/[email protected]

Minor Changes

  • f559992: chore!: make codegen internal API private
  • 1f44d73: feat: add cmkOptions.keyframes option

Patch Changes

@css-modules-kit/[email protected]

Minor Changes

  • 1f44d73: feat: add cmkOptions.keyframes option

Patch Changes

  • b167f2c: fix: fix an issue where prioritizeNamedImports is ignored when used with extends of tsconfig.json

@css-modules-kit/[email protected]

Minor Changes

  • 2df5729: chore!: make eslint-plugin internal API private

Patch Changes

@css-modules-kit/[email protected]

Minor Changes

  • 66ea122: feat: allow require('@css-modules-kit/stylelint-plugin')

Patch Changes

@css-modules-kit/[email protected]

Minor Changes

  • 1f44d73: feat: add cmkOptions.keyframes option

Patch Changes

[email protected]

Patch Changes

Release 2025-08-11T06:54Z

11 Aug 06:54
bd15fb9

Choose a tag to compare

Notable Changes

Fix missing quick fix actions in *.ts (#228)

Missing items of Quick Fix Action for *.ts have been fixed.

Add logo (#241)

We added the css-modules-kit logo :)

Logo

@css-modules-kit/[email protected]

Patch Changes

  • d6566f3: deps: update dependencies

@css-modules-kit/[email protected]

Patch Changes

[email protected]

Patch Changes

[email protected]

11 Aug 02:55
[email protected]
13a3fa7

Choose a tag to compare

Minor Changes

  • e22cae6: feat: supports CMK_LOAD_LOCAL_TS_PLUGIN for loading local ts-plugin

Patch Changes

  • e22cae6: fix: fix Zed Extension breaking when package.json is not present in workspace root

Release 2025-08-08T14:44Z

08 Aug 14:44
7f61546

Choose a tag to compare

Notable Changes

Support @keyframes (#218)

Names defined with @keyframes are now included in styles. Go to Definition and rename are now available for keyframe names.

2025-08-04.17.28.44.mov

@css-modules-kit/[email protected]

Minor Changes

  • 9c20f15: fix: default is not allowed as names when namedExports is true
  • 9c20f15: fix: __proto__ is not allowed as names

Patch Changes

@css-modules-kit/[email protected]

Minor Changes

  • 9c20f15: fix: default is not allowed as names when namedExports is true
  • 9c20f15: fix: __proto__ is not allowed as names
  • 15dcba8, 61e053d: feat: improve non-JS identifier error message
  • b38f9d3, 69095b7: feat: support @keyframes

Patch Changes

  • d0a6685: fix: disallow non-JavaScript identifier @value

@css-modules-kit/[email protected]

Patch Changes

@css-modules-kit/[email protected]

Patch Changes

@css-modules-kit/[email protected]

Minor Changes

  • 9c20f15: fix: default is not allowed as names when namedExports is true
  • 9c20f15: fix: __proto__ is not allowed as names

Patch Changes

[email protected]

Patch Changes

Release 2025-06-23T14:28Z

23 Jun 14:28
7261d41

Choose a tag to compare

Notable Changes

Fix language feature bugs in VS Code (#207)

For a long time, there have been issues with language features not working as expected in VS Code. For example, renaming classes from .css failed.

This release resolves the bugs! 🎉🎉🎉

The fix uses a technique called "Request Forwarding to tsserver". For more details, please see the Pull Request.

Remove alternative CSS Language Server hack (#209)

The CSS Modules Kit had an "alternative CSS Language Server hack". It was a hack to work around above bugs in VS Code. It was an experimental feature with some issues.

We removed the hack because "Request Forwarding to tsserver" is a better alternative. The hack was undocumented and disabled by default, so most users should not be affected by this change.

Changelog

@css-modules-kit/[email protected]

Patch Changes

  • 1489b9c: fix: fix the error that occurs when the output directory does not exist

@css-modules-kit/[email protected]

Minor Changes

  • 20858d7: feat: allow to add missing rules from non-component files

Patch Changes

  • 93cf8d1: fix: fix the issue that renaming classes from .css does not work in VS Code
  • 20858d7: fix: fix failure to add missing rule for named exports
  • 20858d7: fix: include similar class names in the missing rule addition target
  • 93cf8d1: fix: fix the issue that Go to Definition for specifiers fails using import alias in VS Code

[email protected]

Minor Changes

  • b59e64d: feat: downgrade the required vscode version to 1.84.0
  • c41f4b0: feat!: remove alternative CSS language server hack

Patch Changes

  • 93cf8d1: fix: fix the issue that renaming classes from .css does not work in VS Code
  • 93cf8d1: fix: fix the issue that Go to Definition for specifiers fails using import alias in VS Code
  • Updated dependencies [93cf8d1]
  • Updated dependencies [20858d7]
  • Updated dependencies [20858d7]
  • Updated dependencies [20858d7]
  • Updated dependencies [93cf8d1]

Release 2025-06-17T13:05Z

17 Jun 13:06
5453f5e

Choose a tag to compare

Notable features

Hover Info

Hover Info is now supported (#197). This feature is implemented with the contribution of @ssssota. Thank you!

2025-06-15.23.33.23.mov

@css-modules-kit/[email protected]

Minor Changes

  • 7e0ea4b: feat: support --clean option

Patch Changes

@css-modules-kit/[email protected]

Minor Changes

  • 15209ea: feat: support "Definition Preview for Hover"

Patch Changes

  • 5a8adb7: fix: calculate the correct range of CSS syntax errors
  • 90ddb64: chore!: change createDts interface

@css-modules-kit/[email protected]

Patch Changes

@css-modules-kit/[email protected]

Patch Changes

@css-modules-kit/[email protected]

Minor Changes

  • 15209ea: feat: support "Definition Preview for Hover"

Patch Changes

  • bf01bee: fix: make ts-plugin report the import of files where .d.ts exists but .module.css does not exist
  • 90ddb64: chore!: change createDts interface
  • Updated dependencies [15209ea]
  • Updated dependencies [5a8adb7]
  • Updated dependencies [90ddb64]

[email protected]

Patch Changes

[email protected]

09 Jun 13:10
300fd2c

Choose a tag to compare

Minor Changes

  • a1d3b1b: feat!: require VS Code ^1.100.0

Patch Changes

@css-modules-kit/[email protected]

09 Jun 13:10
300fd2c

Choose a tag to compare

Minor Changes

  • 91c21eb: feat: support Node.js >=20.19.0
  • fb0563d: feat: support prioritizeNamedImports option
  • 9b40191: feat: support namedExports option

Patch Changes