Skip to content

Commit

Permalink
Improve changset for v3
Browse files Browse the repository at this point in the history
  • Loading branch information
YummYume committed Nov 11, 2024
1 parent 7efa22f commit 0858e35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .changeset/polite-books-serve.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@

## BREAKING CHANGES

Remove the `directorySeparator` option and replace all `_` by `-` to follow the Stimulus naming convention.
- Remove the `directorySeparator` option and replace all `_` by `-` to follow the Stimulus naming convention.

If you previously had a controller named `my_controller`, it will now be `my-controller`.

## Dev Changes

Update ESLint to flat config, update dependencies.
- Update ESLint to flat config, update dependencies.
- Remove test for `directorySeparator` option.
- Add tests with controllers named with `_` and `-`.
1 change: 1 addition & 0 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ describe('Controller definitions', () => {

test('Definitions for relative long name controllers are valid', () => {
const definitions = importDefinitions('relative-long-name-definitions');

expect(definitions).toBeArrayOfSize(relativeLongNameDefinitions.length);
expect(definitions).toEqual(relativeLongNameDefinitions);
});
Expand Down

0 comments on commit 0858e35

Please sign in to comment.