Releases: mizdra/css-modules-kit
Release 2025-12-21T09:41Z
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!
@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 byinclude/excludepattern
Patch Changes
-
#273
d1c2051- refactor: rename fromcreateDtstogenerateDts -
#274
87e1aef- refactor: include diagnostics withinCSSModuleobject -
Updated dependencies [
d1c2051,60b7515,4d661a1,87e1aef,c36be81]:- @css-modules-kit/[email protected]
@css-modules-kit/[email protected]
Minor Changes
-
#273
d1c2051- refactor: rename fromcreateDtstogenerateDts -
#269
60b7515- feat: generate .d.ts files even if syntax or semantic errors are found -
#274
87e1aef- refactor: include diagnostics withinCSSModuleobject -
#272
c36be81- feat!: report an error diagnostic when no files found byinclude/excludepattern
@css-modules-kit/[email protected]
Patch Changes
- Updated dependencies [
d1c2051,60b7515,4d661a1,87e1aef,c36be81]:- @css-modules-kit/[email protected]
@css-modules-kit/[email protected]
Patch Changes
- Updated dependencies [
d1c2051,60b7515,4d661a1,87e1aef,c36be81]:- @css-modules-kit/[email protected]
@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 byinclude/excludepattern
Patch Changes
-
#273
d1c2051- refactor: rename fromcreateDtstogenerateDts -
#274
87e1aef- refactor: include diagnostics withinCSSModuleobject -
Updated dependencies [
d1c2051,60b7515,4d661a1,87e1aef,c36be81]:- @css-modules-kit/[email protected]
[email protected]
Patch Changes
[email protected]
Minor Changes
Patch Changes
- Updated dependencies [
d1c2051,60b7515,87e1aef,c36be81]:- @css-modules-kit/[email protected]
Release 2025-09-03T01:27Z
Release 2025-09-02T12:38Z
@css-modules-kit/[email protected]
Minor Changes
Patch Changes
- Updated dependencies [b167f2c]
- Updated dependencies [1f44d73]
- @css-modules-kit/[email protected]
@css-modules-kit/[email protected]
Minor Changes
- 1f44d73: feat: add
cmkOptions.keyframesoption
Patch Changes
- b167f2c: fix: fix an issue where
prioritizeNamedImportsis ignored when used withextendsoftsconfig.json
@css-modules-kit/[email protected]
Minor Changes
- 2df5729: chore!: make eslint-plugin internal API private
Patch Changes
- f81c8a8: fix: fix eslint crashing due to
composesproperty - Updated dependencies [b167f2c]
- Updated dependencies [1f44d73]
- @css-modules-kit/[email protected]
@css-modules-kit/[email protected]
Minor Changes
- 66ea122: feat: allow
require('@css-modules-kit/stylelint-plugin')
Patch Changes
- f81c8a8: refactor: refactor the syntax definition of
composesproperty in stylelint-plugin - Updated dependencies [b167f2c]
- Updated dependencies [1f44d73]
- @css-modules-kit/[email protected]
@css-modules-kit/[email protected]
Minor Changes
- 1f44d73: feat: add
cmkOptions.keyframesoption
Patch Changes
- Updated dependencies [b167f2c]
- Updated dependencies [1f44d73]
- @css-modules-kit/[email protected]
[email protected]
Patch Changes
- Updated dependencies [1f44d73]
- @css-modules-kit/[email protected]
Release 2025-08-11T06:54Z
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 :)
@css-modules-kit/[email protected]
Patch Changes
- d6566f3: deps: update dependencies
@css-modules-kit/[email protected]
Patch Changes
- e0ebb5b: fix: fix missing quick fix actions
- d6566f3: deps: update dependencies
- Updated dependencies [d6566f3]
- @css-modules-kit/[email protected]
[email protected]
Patch Changes
[email protected]
Release 2025-08-08T14:44Z
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:
defaultis not allowed as names whennamedExportsistrue - 9c20f15: fix:
__proto__is not allowed as names
Patch Changes
- Updated dependencies [9c20f15]
- Updated dependencies [9c20f15]
- Updated dependencies [61e053d]
- Updated dependencies [15dcba8]
- Updated dependencies [b38f9d3]
- Updated dependencies [d0a6685]
- @css-modules-kit/[email protected]
@css-modules-kit/[email protected]
Minor Changes
- 9c20f15: fix:
defaultis not allowed as names whennamedExportsistrue - 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
- Updated dependencies [9c20f15]
- Updated dependencies [9c20f15]
- Updated dependencies [61e053d]
- Updated dependencies [15dcba8]
- Updated dependencies [b38f9d3]
- Updated dependencies [d0a6685]
- @css-modules-kit/[email protected]
@css-modules-kit/[email protected]
Patch Changes
- Updated dependencies [9c20f15]
- Updated dependencies [9c20f15]
- Updated dependencies [61e053d]
- Updated dependencies [15dcba8]
- Updated dependencies [b38f9d3]
- Updated dependencies [d0a6685]
- @css-modules-kit/[email protected]
@css-modules-kit/[email protected]
Minor Changes
- 9c20f15: fix:
defaultis not allowed as names whennamedExportsistrue - 9c20f15: fix:
__proto__is not allowed as names
Patch Changes
- Updated dependencies [9c20f15]
- Updated dependencies [9c20f15]
- Updated dependencies [61e053d]
- Updated dependencies [15dcba8]
- Updated dependencies [b38f9d3]
- Updated dependencies [d0a6685]
- @css-modules-kit/[email protected]
[email protected]
Patch Changes
- Updated dependencies [9c20f15]
- Updated dependencies [9c20f15]
- @css-modules-kit/[email protected]
Release 2025-06-23T14:28Z
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]
- @css-modules-kit/[email protected]
Release 2025-06-17T13:05Z
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
--cleanoption
Patch Changes
- 5a8adb7: fix: calculate the correct range of CSS syntax errors
- 90ddb64: chore!: change
createDtsinterface - Updated dependencies [15209ea]
- Updated dependencies [5a8adb7]
- Updated dependencies [90ddb64]
- @css-modules-kit/[email protected]
@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
createDtsinterface
@css-modules-kit/[email protected]
Patch Changes
- Updated dependencies [15209ea]
- Updated dependencies [5a8adb7]
- Updated dependencies [90ddb64]
- @css-modules-kit/[email protected]
@css-modules-kit/[email protected]
Patch Changes
- Updated dependencies [15209ea]
- Updated dependencies [5a8adb7]
- Updated dependencies [90ddb64]
- @css-modules-kit/[email protected]
@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
createDtsinterface - Updated dependencies [15209ea]
- Updated dependencies [5a8adb7]
- Updated dependencies [90ddb64]
- @css-modules-kit/[email protected]
[email protected]
Patch Changes
- 2cd6e3e: chore: revert "Avoid LSP request conflicts with Request Forwarding"
- Updated dependencies [15209ea]
- Updated dependencies [bf01bee]
- Updated dependencies [90ddb64]
- @css-modules-kit/[email protected]
[email protected]
Minor Changes
- a1d3b1b: feat!: require VS Code ^1.100.0
Patch Changes
- 21a1881: fix: avoid LSP request conflicts with Request Forwarding
- Updated dependencies [3ec5b22]
- Updated dependencies [91c21eb]
- Updated dependencies [fb0563d]
- Updated dependencies [9b40191]
- @css-modules-kit/[email protected]
- @css-modules-kit/[email protected]
@css-modules-kit/[email protected]
Minor Changes
- 91c21eb: feat: support Node.js >=20.19.0
- fb0563d: feat: support
prioritizeNamedImportsoption - 9b40191: feat: support
namedExportsoption
Patch Changes
- 3ec5b22: fix: exclude files in
generated/from completion candidates - Updated dependencies [91c21eb]
- Updated dependencies [fb0563d]
- Updated dependencies [9b40191]
- @css-modules-kit/[email protected]
