Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/animation-shorthand-references.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/at-value-parser-with-value-parser.md

This file was deleted.

13 changes: 0 additions & 13 deletions .changeset/composes-external-references.md

This file was deleted.

17 changes: 0 additions & 17 deletions .changeset/composes-local-references.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/namespace-default-completion.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/sharp-bananas-share.md

This file was deleted.

7 changes: 7 additions & 0 deletions packages/codegen/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# @css-modules-kit/codegen

## 1.3.0

### Patch Changes

- Updated dependencies [[`e9315e4`](https://github.com/mizdra/css-modules-kit/commit/e9315e49ea9acbaa21196435ce463e6dd7efc94b), [`a247518`](https://github.com/mizdra/css-modules-kit/commit/a247518bd1ae67d02f3193fb052eaf50acde2ff8), [`4f59d0c`](https://github.com/mizdra/css-modules-kit/commit/4f59d0c6b5ab336d1e9a3eaa0d3763c8185032f2), [`947d06d`](https://github.com/mizdra/css-modules-kit/commit/947d06de88d762f14a09ffeb6c3afb1e69c04f64), [`f40f511`](https://github.com/mizdra/css-modules-kit/commit/f40f5118158ffa2126eb9e23bbe6b7bf09efba63)]:
- @css-modules-kit/core@1.3.0

## 1.2.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/codegen/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@css-modules-kit/codegen",
"version": "1.2.0",
"version": "1.3.0",
"private": false,
"description": "A tool for generating `*.d.ts` files for `*.module.css`.",
"keywords": [
Expand Down
36 changes: 36 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# @css-modules-kit/core

## 1.3.0

### Minor Changes

- [#415](https://github.com/mizdra/css-modules-kit/pull/415) [`e9315e4`](https://github.com/mizdra/css-modules-kit/commit/e9315e49ea9acbaa21196435ce463e6dd7efc94b) - feat(core): support `animation` shorthand

- [#412](https://github.com/mizdra/css-modules-kit/pull/412) [`a247518`](https://github.com/mizdra/css-modules-kit/commit/a247518bd1ae67d02f3193fb052eaf50acde2ff8) - refactor(core): parse `@value` with postcss-value-parser

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`.

- [#409](https://github.com/mizdra/css-modules-kit/pull/409) [`4f59d0c`](https://github.com/mizdra/css-modules-kit/commit/4f59d0c6b5ab336d1e9a3eaa0d3763c8185032f2) - feat(core, ts-plugin): support `composes: <name> from '<specifier>'`

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 '<specifier>'` when the specifier cannot be resolved.
- `Module '<specifier>' has no exported token '<name>'.` when the referenced file does not export the token.

- [#408](https://github.com/mizdra/css-modules-kit/pull/408) [`947d06d`](https://github.com/mizdra/css-modules-kit/commit/947d06de88d762f14a09ffeb6c3afb1e69c04f64) - feat(core, ts-plugin, eslint-plugin, stylelint-plugin): support composes property

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).

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 '<name>'.`.

The `no-unused-class-names` rule in eslint-plugin and stylelint-plugin now treats names referenced via `composes` from within the same CSS as used, so they are no longer reported as unused.

### Patch Changes

- [#403](https://github.com/mizdra/css-modules-kit/pull/403) [`f40f511`](https://github.com/mizdra/css-modules-kit/commit/f40f5118158ffa2126eb9e23bbe6b7bf09efba63) - refactor: add u flag for configDirTemplate

## 1.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@css-modules-kit/core",
"version": "1.2.0",
"version": "1.3.0",
"private": false,
"description": "The core of css-modules-kit",
"keywords": [
Expand Down
17 changes: 17 additions & 0 deletions packages/eslint-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# @css-modules-kit/eslint-plugin

## 1.3.0

### Patch Changes

- [#408](https://github.com/mizdra/css-modules-kit/pull/408) [`947d06d`](https://github.com/mizdra/css-modules-kit/commit/947d06de88d762f14a09ffeb6c3afb1e69c04f64) - feat(core, ts-plugin, eslint-plugin, stylelint-plugin): support composes property

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).

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 '<name>'.`.

The `no-unused-class-names` rule in eslint-plugin and stylelint-plugin now treats names referenced via `composes` from within the same CSS as used, so they are no longer reported as unused.

- Updated dependencies [[`e9315e4`](https://github.com/mizdra/css-modules-kit/commit/e9315e49ea9acbaa21196435ce463e6dd7efc94b), [`a247518`](https://github.com/mizdra/css-modules-kit/commit/a247518bd1ae67d02f3193fb052eaf50acde2ff8), [`4f59d0c`](https://github.com/mizdra/css-modules-kit/commit/4f59d0c6b5ab336d1e9a3eaa0d3763c8185032f2), [`947d06d`](https://github.com/mizdra/css-modules-kit/commit/947d06de88d762f14a09ffeb6c3afb1e69c04f64), [`f40f511`](https://github.com/mizdra/css-modules-kit/commit/f40f5118158ffa2126eb9e23bbe6b7bf09efba63)]:
- @css-modules-kit/core@1.3.0

## 1.2.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@css-modules-kit/eslint-plugin",
"version": "1.2.0",
"version": "1.3.0",
"private": false,
"description": "A eslint plugin for CSS Modules",
"keywords": [
Expand Down
17 changes: 17 additions & 0 deletions packages/stylelint-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# @css-modules-kit/stylelint-plugin

## 1.3.0

### Patch Changes

- [#408](https://github.com/mizdra/css-modules-kit/pull/408) [`947d06d`](https://github.com/mizdra/css-modules-kit/commit/947d06de88d762f14a09ffeb6c3afb1e69c04f64) - feat(core, ts-plugin, eslint-plugin, stylelint-plugin): support composes property

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).

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 '<name>'.`.

The `no-unused-class-names` rule in eslint-plugin and stylelint-plugin now treats names referenced via `composes` from within the same CSS as used, so they are no longer reported as unused.

- Updated dependencies [[`e9315e4`](https://github.com/mizdra/css-modules-kit/commit/e9315e49ea9acbaa21196435ce463e6dd7efc94b), [`a247518`](https://github.com/mizdra/css-modules-kit/commit/a247518bd1ae67d02f3193fb052eaf50acde2ff8), [`4f59d0c`](https://github.com/mizdra/css-modules-kit/commit/4f59d0c6b5ab336d1e9a3eaa0d3763c8185032f2), [`947d06d`](https://github.com/mizdra/css-modules-kit/commit/947d06de88d762f14a09ffeb6c3afb1e69c04f64), [`f40f511`](https://github.com/mizdra/css-modules-kit/commit/f40f5118158ffa2126eb9e23bbe6b7bf09efba63)]:
- @css-modules-kit/core@1.3.0

## 1.2.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/stylelint-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@css-modules-kit/stylelint-plugin",
"version": "1.2.0",
"version": "1.3.0",
"private": false,
"description": "A stylelint plugin for CSS Modules",
"keywords": [
Expand Down
31 changes: 31 additions & 0 deletions packages/ts-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# @css-modules-kit/ts-plugin

## 1.3.0

### Minor Changes

- [#409](https://github.com/mizdra/css-modules-kit/pull/409) [`4f59d0c`](https://github.com/mizdra/css-modules-kit/commit/4f59d0c6b5ab336d1e9a3eaa0d3763c8185032f2) - feat(core, ts-plugin): support `composes: <name> from '<specifier>'`

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 '<specifier>'` when the specifier cannot be resolved.
- `Module '<specifier>' has no exported token '<name>'.` when the referenced file does not export the token.

- [#408](https://github.com/mizdra/css-modules-kit/pull/408) [`947d06d`](https://github.com/mizdra/css-modules-kit/commit/947d06de88d762f14a09ffeb6c3afb1e69c04f64) - feat(core, ts-plugin, eslint-plugin, stylelint-plugin): support composes property

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).

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 '<name>'.`.

The `no-unused-class-names` rule in eslint-plugin and stylelint-plugin now treats names referenced via `composes` from within the same CSS as used, so they are no longer reported as unused.

### Patch Changes

- [#410](https://github.com/mizdra/css-modules-kit/pull/410) [`41ec0a2`](https://github.com/mizdra/css-modules-kit/commit/41ec0a2e6cf8bac3e03d286ef2eac6608e91fc3f) - fix(ts-plugin): omit the `default` member from namespace member completion

When `namedExports` is enabled and `prioritizeNamedImports` is disabled, completing members of a namespace import (`import * as styles from './a.module.css'; styles.`) no longer suggests a `default` member that the CSS module does not export.

- Updated dependencies [[`e9315e4`](https://github.com/mizdra/css-modules-kit/commit/e9315e49ea9acbaa21196435ce463e6dd7efc94b), [`a247518`](https://github.com/mizdra/css-modules-kit/commit/a247518bd1ae67d02f3193fb052eaf50acde2ff8), [`4f59d0c`](https://github.com/mizdra/css-modules-kit/commit/4f59d0c6b5ab336d1e9a3eaa0d3763c8185032f2), [`947d06d`](https://github.com/mizdra/css-modules-kit/commit/947d06de88d762f14a09ffeb6c3afb1e69c04f64), [`f40f511`](https://github.com/mizdra/css-modules-kit/commit/f40f5118158ffa2126eb9e23bbe6b7bf09efba63)]:
- @css-modules-kit/core@1.3.0

## 1.2.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ts-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@css-modules-kit/ts-plugin",
"version": "1.2.0",
"version": "1.3.0",
"private": false,
"description": "A TypeScript Language Service Plugin for CSS Modules",
"keywords": [
Expand Down
7 changes: 7 additions & 0 deletions packages/vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# css-modules-kit-vscode

## 1.3.0

### Patch Changes

- Updated dependencies [[`4f59d0c`](https://github.com/mizdra/css-modules-kit/commit/4f59d0c6b5ab336d1e9a3eaa0d3763c8185032f2), [`947d06d`](https://github.com/mizdra/css-modules-kit/commit/947d06de88d762f14a09ffeb6c3afb1e69c04f64), [`41ec0a2`](https://github.com/mizdra/css-modules-kit/commit/41ec0a2e6cf8bac3e03d286ef2eac6608e91fc3f)]:
- @css-modules-kit/ts-plugin@1.3.0

## 1.2.0

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vscode/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "css-modules-kit-vscode",
"displayName": "CSS Modules Kit",
"version": "1.2.0",
"version": "1.3.0",
"private": true,
"description": "The VS Code extension for CSS Modules",
"categories": [
Expand Down