Repository navigation
Notable Changes
TypeScript 7 support
Until now, @css-modules-kit/ts-plugin, @css-modules-kit/codegen, and the linter plugins (@css-modules-kit/eslint-plugin and @css-modules-kit/stylelint-plugin) all depended on TypeScript 6 or earlier. Because of this, projects using css-modules-kit could not upgrade to TypeScript 7. This release removes that blocker.
New package: @css-modules-kit/content-mapper (experimental) (#457)
TypeScript 7.1 introduced content mappers, which let an external program transform non-TypeScript files into TypeScript. @css-modules-kit/content-mapper uses this feature to let TypeScript load *.module.css files directly.
On TypeScript 7, this package replaces both @css-modules-kit/ts-plugin and @css-modules-kit/codegen. A single package provides both the language features in the editor (Go to Definition, Find All References, diagnostics, and more) and the types for tsc. No .d.ts files are generated.
This package is experimental. Only part of the features of @css-modules-kit/ts-plugin is available, and breaking changes may be introduced in any release. For example, renaming a token in a TypeScript file does not update *.module.css yet, and the namedExports option is not supported yet. We plan to add the missing features in future releases. For the full support status, as well as installation and setup, see the README.
If you stay on TypeScript 6 or earlier, keep using @css-modules-kit/ts-plugin and @css-modules-kit/codegen as before.
Linter plugins no longer depend on TypeScript (#466, #470)
@css-modules-kit/eslint-plugin and @css-modules-kit/stylelint-plugin no longer depend on TypeScript 6 or earlier, so you can now use them in projects on TypeScript 7.
@css-modules-kit/codegen@1.4.2
Patch Changes
-
#466
d43493e- deps: move the code shared by ts-plugin and codegen, the tools that run on the API of TypeScript 6 or earlier, from@css-modules-kit/coreto the new@css-modules-kit/core-strada -
Updated dependencies [
d43493e]:- @css-modules-kit/core@1.4.2
- @css-modules-kit/core-strada@1.4.2
@css-modules-kit/content-mapper@0.1.0
Minor Changes
- #457
ad16e37- feat: add@css-modules-kit/content-mapper, an experimental content mapper for TypeScript 7
Patch Changes
- Updated dependencies [
d43493e]:- @css-modules-kit/core@1.4.2
@css-modules-kit/core@1.4.2
Patch Changes
- #466
d43493e- deps: move the code shared by ts-plugin and codegen, the tools that run on the API of TypeScript 6 or earlier, from@css-modules-kit/coreto the new@css-modules-kit/core-strada
@css-modules-kit/core-strada@1.4.2
Patch Changes
-
#466
d43493e- deps: move the code shared by ts-plugin and codegen, the tools that run on the API of TypeScript 6 or earlier, from@css-modules-kit/coreto the new@css-modules-kit/core-strada -
Updated dependencies [
d43493e]:- @css-modules-kit/core@1.4.2
@css-modules-kit/eslint-plugin@1.4.2
Patch Changes
-
#470
8b7e191- deps: stop depending on@css-modules-kit/core-stradafrom@css-modules-kit/eslint-pluginand@css-modules-kit/stylelint-plugin -
#466
d43493e- deps: move the code shared by ts-plugin and codegen, the tools that run on the API of TypeScript 6 or earlier, from@css-modules-kit/coreto the new@css-modules-kit/core-strada -
Updated dependencies [
d43493e]:- @css-modules-kit/core@1.4.2
@css-modules-kit/stylelint-plugin@1.4.2
Patch Changes
-
#470
8b7e191- deps: stop depending on@css-modules-kit/core-stradafrom@css-modules-kit/eslint-pluginand@css-modules-kit/stylelint-plugin -
#466
d43493e- deps: move the code shared by ts-plugin and codegen, the tools that run on the API of TypeScript 6 or earlier, from@css-modules-kit/coreto the new@css-modules-kit/core-strada -
Updated dependencies [
d43493e]:- @css-modules-kit/core@1.4.2
@css-modules-kit/ts-plugin@1.4.2
Patch Changes
-
#466
d43493e- deps: move the code shared by ts-plugin and codegen, the tools that run on the API of TypeScript 6 or earlier, from@css-modules-kit/coreto the new@css-modules-kit/core-strada -
Updated dependencies [
d43493e]:- @css-modules-kit/core@1.4.2
- @css-modules-kit/core-strada@1.4.2
css-modules-kit-vscode@1.4.2
Patch Changes
- Updated dependencies [
d43493e]:- @css-modules-kit/ts-plugin@1.4.2