Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release: Prerelease alpha 8.5.0-alpha.19 #29835

Merged
merged 165 commits into from
Dec 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
165 commits
Select commit Hold shift + click to select a range
1f93e44
[addon-a11y] Simplify global highlight styles to avoid issues when fe…
JohannesFischer Nov 5, 2024
a913610
Implement afterEach
kasperpeulen Nov 11, 2024
af4c3d2
Merge branch 'next' into 24450-addon-a11y-highlight-visual-bug
JohannesFischer Nov 12, 2024
3065626
Test afterEach
kasperpeulen Nov 12, 2024
83af2a6
Add afterEach normalizers
kasperpeulen Nov 12, 2024
8029b37
Fix test
kasperpeulen Nov 12, 2024
b918869
Bump @storybook/csf
kasperpeulen Nov 12, 2024
312b25d
Make dedicated order-of-hooks test
kasperpeulen Nov 12, 2024
88a1ad2
Merge branch 'next' into 24450-addon-a11y-highlight-visual-bug
JohannesFischer Nov 14, 2024
e038e8b
Fix tests
kasperpeulen Nov 14, 2024
dd242dc
Merge remote-tracking branch 'origin/kasper/after-each' into valentin…
valentinpalkovic Nov 14, 2024
57a8cea
Core: Implement Story Completed
valentinpalkovic Nov 14, 2024
6d30bb9
Remove unhandledException from STORY_COMPLETED event
valentinpalkovic Nov 14, 2024
e49bc0f
Rename storyCompleted to storyFinished
valentinpalkovic Nov 14, 2024
b7c1d02
Update @storybook/csf
valentinpalkovic Nov 14, 2024
aa95d2a
Rename storyCompleted to storyFinished
valentinpalkovic Nov 14, 2024
08477ec
Refactor status of the story finished payload
valentinpalkovic Nov 14, 2024
c9c7249
Move afterEach after storyCompleted
valentinpalkovic Nov 15, 2024
d907091
Add StoryFinished payload test
valentinpalkovic Nov 15, 2024
96dad8c
Enhance Report interface to support generic result type
valentinpalkovic Nov 15, 2024
7668055
Remove redundant comments in Preview component for clarity
valentinpalkovic Nov 15, 2024
b80ee26
Refactor a11y addon to use afterEach and reporting API
valentinpalkovic Nov 15, 2024
c8647d4
Add tests
valentinpalkovic Nov 18, 2024
bc3da7a
Fix tests
valentinpalkovic Nov 18, 2024
a93ea7d
Fix E2E tests
valentinpalkovic Nov 19, 2024
d3923d2
Add stories for A11yPanel
valentinpalkovic Nov 19, 2024
2eebee1
Add discrepancy handling to A11yPanel
valentinpalkovic Nov 19, 2024
79ad98c
Fix tests
valentinpalkovic Nov 20, 2024
6dfea64
Merge pull request #29661 from storybookjs/valentin/add-a11y-discrepa…
valentinpalkovic Nov 20, 2024
667d403
Merge remote-tracking branch 'origin/next' into valentin/unified-a11y…
valentinpalkovic Nov 20, 2024
003e808
Fix potential undefined issue
valentinpalkovic Nov 20, 2024
141de06
Fix tests
valentinpalkovic Nov 20, 2024
66931ce
Fix tests
valentinpalkovic Nov 20, 2024
9622763
Support new parameters and globals for a11y
valentinpalkovic Nov 21, 2024
cfae158
Use vitest-axe for formatting purposes instead
valentinpalkovic Nov 22, 2024
3f1ae4e
Fix environment usage in preview file
valentinpalkovic Nov 22, 2024
9ed6077
Fix environment usage in preview file
valentinpalkovic Nov 22, 2024
4f485f3
Fix tests
valentinpalkovic Nov 22, 2024
c4039e1
Merge pull request #29682 from storybookjs/valentin/support-new-param…
valentinpalkovic Nov 22, 2024
e4604d8
Merge remote-tracking branch 'origin/next' into valentin/unified-a11y…
valentinpalkovic Nov 22, 2024
5d084d4
Merge branch 'next' into valentin/unified-a11y-testing
valentinpalkovic Nov 23, 2024
aae1bac
Merge pull request #29552 from JohannesFischer/24450-addon-a11y-highl…
valentinpalkovic Nov 25, 2024
02d020b
Merge branch 'next' into valentin/unified-a11y-testing
valentinpalkovic Nov 25, 2024
0791b02
Add docs and migration guide for addon-a11y
valentinpalkovic Nov 25, 2024
9fbe2cc
Update code/addons/a11y/README.md
valentinpalkovic Nov 25, 2024
3d18bd4
Update docs/writing-tests/accessibility-testing.mdx
valentinpalkovic Nov 25, 2024
80119bd
Update docs/writing-tests/accessibility-testing.mdx
valentinpalkovic Nov 25, 2024
1379771
Update docs/writing-tests/accessibility-testing.mdx
valentinpalkovic Nov 25, 2024
e19095d
Update code/addons/a11y/README.md
valentinpalkovic Nov 25, 2024
bd2ec3b
Update code/addons/a11y/README.md
valentinpalkovic Nov 25, 2024
1abb89d
Add automigration for addon-a11y in combination with addon-test
valentinpalkovic Nov 25, 2024
e8db191
Fix import
valentinpalkovic Nov 25, 2024
a083021
Implement backend for addon-a11y addon-test integration
valentinpalkovic Nov 25, 2024
4f96924
Fake frontend for addon-a11y in addon-test integration
valentinpalkovic Nov 25, 2024
32a95d9
Fix typing issues
valentinpalkovic Nov 25, 2024
95eb08b
Update @storybook/csf
valentinpalkovic Nov 25, 2024
9a3ec6d
Update type for reporting api
valentinpalkovic Nov 25, 2024
0661d68
Refactor condition for Vitest standalone run check in preview.tsx
valentinpalkovic Nov 25, 2024
91c07f1
Refactor Vitest standalone run check to use a function for improved e…
valentinpalkovic Nov 25, 2024
4a19887
Add error handling to transformSetupFile for missing setProjectAnnota…
valentinpalkovic Nov 25, 2024
033c26e
Update documentation link in addon-a11y-addon-test for addon test gui…
valentinpalkovic Nov 25, 2024
00e5104
Update MIGRATION.md
valentinpalkovic Nov 25, 2024
361932a
Update MIGRATION.md
valentinpalkovic Nov 25, 2024
337cda0
Move STORYBOOK environment variable to configOverride in VitestManager
valentinpalkovic Nov 26, 2024
ec7f512
Update afterEach tests to expect errors to be thrown
valentinpalkovic Nov 26, 2024
f7709a1
Refactor postInstall function to streamline addon detection and impro…
valentinpalkovic Nov 26, 2024
8289960
Merge remote-tracking branch 'origin/next' into valentin/unified-a11y…
valentinpalkovic Nov 26, 2024
1915e36
Fix postinstall script in addon-test
valentinpalkovic Nov 26, 2024
7f596df
Enhance a11y documentation and update a11yRunner to disable 'region' …
valentinpalkovic Nov 26, 2024
7950a5b
Fix esm only import from vitest
valentinpalkovic Nov 26, 2024
ffcf9e3
Merge remote-tracking branch 'origin/next' into valentin/unified-a11y…
valentinpalkovic Nov 27, 2024
7ec1e7e
Provide fix for Vitest 2.1.4 and above
valentinpalkovic Nov 27, 2024
3de56e9
Improve automigration message
valentinpalkovic Nov 27, 2024
8fb31f7
Add check for Vitest standalone run in global setup
valentinpalkovic Nov 27, 2024
2292b6e
Add a11y addon in automigration to the beginning of the project annot…
valentinpalkovic Nov 27, 2024
de6b1f2
Add tags support for addon-a11y
valentinpalkovic Nov 27, 2024
29bc6b0
Update documentation
valentinpalkovic Nov 27, 2024
5ab29c6
Refactor a11yRunner and utils for improved configuration handling and…
valentinpalkovic Nov 27, 2024
0437d77
Merge remote-tracking branch 'origin/next' into valentin/unified-a11y…
valentinpalkovic Nov 27, 2024
0b796a4
Reorder import statements for project annotations in postInstall func…
valentinpalkovic Nov 27, 2024
45c9a76
Update environment variable handling for Vitest integration in Storybook
valentinpalkovic Nov 27, 2024
d2d4b78
Fix story interaction
valentinpalkovic Nov 28, 2024
dda7f13
Fix types
valentinpalkovic Nov 28, 2024
9fd3cd4
Merge remote-tracking branch 'origin/next' into valentin/unified-a11y…
valentinpalkovic Nov 28, 2024
7798a49
Merge remote-tracking branch 'origin/next' into valentin/unified-a11y…
valentinpalkovic Nov 29, 2024
27424e6
Merge remote-tracking branch 'origin/jeppe/vitest-coverage-backend' i…
valentinpalkovic Nov 29, 2024
e52d1e6
refactor: update reporter API to use 'type' instead of 'id' and renam…
valentinpalkovic Nov 29, 2024
74a2bdc
feat: Add accessibility support in TestProviderRender and related com…
valentinpalkovic Nov 29, 2024
e6358ba
Merge remote-tracking branch 'origin/jeppe/vitest-coverage-backend' i…
valentinpalkovic Nov 29, 2024
ed794c8
Re-add ts-expect-error
valentinpalkovic Nov 29, 2024
39ac2bd
fix: Update message to clarify manual update instructions for vitest.…
valentinpalkovic Nov 29, 2024
9cd7e77
fix: Update accessibility configuration to use environment variable f…
valentinpalkovic Nov 29, 2024
c0d50cc
feat: Add initialGlobals for accessibility manual setting in preview.tsx
valentinpalkovic Nov 29, 2024
22987ff
Update docs/writing-tests/accessibility-testing.mdx
valentinpalkovic Dec 2, 2024
ceb454b
Update docs/writing-tests/accessibility-testing.mdx
valentinpalkovic Dec 2, 2024
6ebfab7
Update MIGRATION.md
valentinpalkovic Dec 2, 2024
490506d
Update docs/writing-tests/accessibility-testing.mdx
valentinpalkovic Dec 2, 2024
74b1af6
Update docs/writing-tests/accessibility-testing.mdx
valentinpalkovic Dec 2, 2024
e142500
Update docs/writing-tests/accessibility-testing.mdx
valentinpalkovic Dec 2, 2024
ccf53ef
Simplify @storybook/addon-a11y docs and reference Storybook docs
valentinpalkovic Dec 2, 2024
3d938ba
Fix documentation link
valentinpalkovic Dec 2, 2024
51915d7
Add accessibility addon test setup snippets and update documentation
valentinpalkovic Dec 2, 2024
941ba1b
Add Storybook snippets for disabling accessibility tests in stories
valentinpalkovic Dec 2, 2024
7a8ccfd
Add snippets for overriding accessibility test warning levels and upd…
valentinpalkovic Dec 2, 2024
d0cc243
Fix a11y addon in Vitest 2.1.4 and above
valentinpalkovic Dec 2, 2024
a0c12ae
Starting to address snippets and other minor items
jonniebigodes Dec 2, 2024
763f5ee
Removes extra spacing
jonniebigodes Dec 2, 2024
49a4bb9
Serve staticDirs with Vitest server
ghengeveld Dec 4, 2024
70c011d
Revert "Revert "Build: Migrate repo to Nx 20""
yannbf Dec 5, 2024
a40adcc
Merge branch 'next' into 29772-bug-staticdirs-api-not-compatible-with…
ghengeveld Dec 5, 2024
052f6ce
Update CHANGELOG.md for v8.4.7 [skip ci]
storybook-bot Dec 5, 2024
9048794
Queue up events while Vitest is booting, and resend them as soon as V…
ghengeveld Dec 6, 2024
d86f262
Move restartVitest to VitestManager and wait for restarts to finish b…
ghengeveld Dec 6, 2024
ef7a889
Handle potentially undefined value
ghengeveld Dec 6, 2024
63304de
Clear progress when starting new test run
ghengeveld Dec 6, 2024
8010968
Merge branch 'next' into revert-29820-revert-29807-nx-20
ndelangen Dec 6, 2024
3a70179
sync yarn config files
ndelangen Dec 6, 2024
f6b7181
force install dependencies to ignore peer dep warnings
JReinhold Dec 6, 2024
ad72f07
dedupe lockfiles
ndelangen Dec 6, 2024
2396901
Merge branch 'next' into jeppe/fix-bench-rnw
JReinhold Dec 6, 2024
a84dd4a
Bit of cleanup
ghengeveld Dec 6, 2024
3434fc6
Clear the event queue when Vitest fails to start
ghengeveld Dec 6, 2024
0c272b8
Clear vitestRestartPromise when finished
ghengeveld Dec 6, 2024
ff933dd
Clear ready state on kill
ghengeveld Dec 6, 2024
32c8e43
Temporarily disable CRA sandboxes
yannbf Dec 6, 2024
a16f085
Merge branch 'yann/disable-cra-sandboxes' into jeppe/fix-bench-rnw
yannbf Dec 6, 2024
fdc8078
Merge remote-tracking branch 'origin/next' into valentin/unified-a11y…
kasperpeulen Dec 6, 2024
ed4fb2d
Merge pull request #29832 from storybookjs/yann/disable-cra-sandboxes
yannbf Dec 6, 2024
10c4bfa
Merge pull request #29830 from storybookjs/jeppe/fix-bench-rnw
yannbf Dec 6, 2024
45f9037
Update status API
kasperpeulen Dec 6, 2024
5c403c7
Merge branch 'next' into 29772-bug-staticdirs-api-not-compatible-with…
ghengeveld Dec 6, 2024
d0f080b
Merge branch '29772-bug-staticdirs-api-not-compatible-with-vitest-plu…
ghengeveld Dec 6, 2024
7331c98
Merge branch 'next' into revert-29820-revert-29807-nx-20
ndelangen Dec 6, 2024
8ee5ed6
Merge branch 'next' into valentin/unified-a11y-testing
kasperpeulen Dec 6, 2024
96fbd29
move internal a11y stories to the right directory
yannbf Dec 2, 2024
320e605
add a11y addon to vitest sandboxes
yannbf Dec 2, 2024
f20dcb2
fix a11y annotations
yannbf Dec 2, 2024
fd475c5
CLI: Make colors on starter components more accessible
yannbf Dec 6, 2024
3aa54a5
Merge pull request #29811 from storybookjs/29772-bug-staticdirs-api-n…
ghengeveld Dec 6, 2024
4d550be
Merge pull request #29829 from storybookjs/fix-run-during-boot-or-res…
ghengeveld Dec 6, 2024
b04c5a1
Merge branch 'next' into revert-29820-revert-29807-nx-20
ndelangen Dec 6, 2024
739c40d
Hide sidebarContext menu
kasperpeulen Dec 6, 2024
aa40afa
Fix CSF issues
kasperpeulen Dec 6, 2024
b86c24b
Merge branch 'valentin/unified-a11y-testing' into yann/add-a11y-addon…
kasperpeulen Dec 6, 2024
c385838
Addon Test: Fix indexing behavior
yannbf Dec 6, 2024
9313346
Merge pull request #29821 from storybookjs/revert-29820-revert-29807-…
kasperpeulen Dec 6, 2024
f1842b0
Merge pull request #29836 from storybookjs/yann/fix-test-indexing
ndelangen Dec 6, 2024
dd3f1df
Filter errors
kasperpeulen Dec 6, 2024
1294596
Merge branch 'valentin/unified-a11y-testing' into yann/add-a11y-addon…
kasperpeulen Dec 6, 2024
19468e4
Merge pull request #29764 from storybookjs/yann/add-a11y-addon-to-san…
kasperpeulen Dec 6, 2024
c5504d5
fix controls e2e test
yannbf Dec 7, 2024
41e4fd3
RNW Vite: Fix flow plugin including too many things
dannyhw Dec 8, 2024
bbfabab
RNW-Vite: Add tsconfig path aliases support
shilman Dec 8, 2024
c9d3cbb
Merge pull request #29952 from storybookjs/danny/fix-rnw-flow-plugin-…
shilman Dec 9, 2024
f545849
Merge pull request #29953 from storybookjs/shilman/rnw-add-typescript…
shilman Dec 9, 2024
ff35403
Merge remote-tracking branch 'origin/next' into valentin/unified-a11y…
valentinpalkovic Dec 9, 2024
b66f925
Update pretty-format dependency to use caret versioning
valentinpalkovic Dec 9, 2024
b9af42f
Add accessibility addon to Kitchen Sink React and update component te…
valentinpalkovic Dec 9, 2024
8237f9e
Refactor test status updates to use async/await for improved readabil…
valentinpalkovic Dec 9, 2024
1f93edf
Update a11y configuration logic in vitest-plugin to depend on VITEST_…
valentinpalkovic Dec 9, 2024
aef5c10
Fix optional chaining for ancestors and path properties in Interactio…
valentinpalkovic Dec 9, 2024
f409f1d
Fix label casing for 'Start Component Tests' and update expand button…
valentinpalkovic Dec 9, 2024
b20b03b
Remove accessibility addon from Storybook configuration in react kitc…
valentinpalkovic Dec 9, 2024
d6a06fb
Merge pull request #29643 from storybookjs/valentin/unified-a11y-testing
valentinpalkovic Dec 9, 2024
7d376c3
Write changelog for 8.5.0-alpha.19 [skip ci]
storybook-bot Dec 9, 2024
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
36 changes: 18 additions & 18 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -836,27 +836,27 @@ workflows:
requires:
- unit-tests
- create-sandboxes:
parallelism: 14
parallelism: 13
requires:
- build
- build-sandboxes:
parallelism: 14
parallelism: 13
requires:
- create-sandboxes
- chromatic-sandboxes:
parallelism: 11
parallelism: 10
requires:
- build-sandboxes
- e2e-production:
parallelism: 9
parallelism: 8
requires:
- build-sandboxes
- e2e-dev:
parallelism: 2
parallelism: 1
requires:
- create-sandboxes
- test-runner-production:
parallelism: 9
parallelism: 8
requires:
- build-sandboxes
- vitest-integration:
Expand Down Expand Up @@ -912,27 +912,27 @@ workflows:
requires:
- unit-tests
- create-sandboxes:
parallelism: 20
parallelism: 19
requires:
- build
- build-sandboxes:
parallelism: 20
parallelism: 19
requires:
- create-sandboxes
- chromatic-sandboxes:
parallelism: 17
parallelism: 16
requires:
- build-sandboxes
- e2e-production:
parallelism: 15
parallelism: 14
requires:
- build-sandboxes
- e2e-dev:
parallelism: 2
parallelism: 1
requires:
- create-sandboxes
- test-runner-production:
parallelism: 15
parallelism: 14
requires:
- build-sandboxes
- vitest-integration:
Expand Down Expand Up @@ -986,30 +986,30 @@ workflows:
requires:
- build
- create-sandboxes:
parallelism: 38
parallelism: 36
requires:
- build
# - smoke-test-sandboxes: # disabled for now
# requires:
# - create-sandboxes
- build-sandboxes:
parallelism: 38
parallelism: 36
requires:
- create-sandboxes
- chromatic-sandboxes:
parallelism: 35
parallelism: 33
requires:
- build-sandboxes
- e2e-production:
parallelism: 33
parallelism: 31
requires:
- build-sandboxes
- e2e-dev:
parallelism: 2
parallelism: 1
requires:
- create-sandboxes
- test-runner-production:
parallelism: 33
parallelism: 31
requires:
- build-sandboxes
- vitest-integration:
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ code/bench-results/

/packs
code/.nx/cache
code/.nx/workspace-data
code/.vite-inspect
.nx/cache
.nx/workspace-data
!**/fixtures/**/yarn.lock
code/core/report

Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## 8.4.7

- Telemetry: Improve anonymous id calculation - [#29736](https://github.com/storybookjs/storybook/pull/29736), thanks @tmeasday!
- Vue: Properly resolve Vite plugin - [#29795](https://github.com/storybookjs/storybook/pull/29795), thanks @tobiasdiez!

## 8.4.6

- Addon Test: Use pathe for better windows support - [#29676](https://github.com/storybookjs/storybook/pull/29676), thanks @yannbf!
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.prerelease.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 8.5.0-alpha.19

- Addon A11y: Create a11y test provider and revamp a11y addon - [#29643](https://github.com/storybookjs/storybook/pull/29643), thanks @valentinpalkovic!
- Addon Test: Fix indexing behavior - [#29836](https://github.com/storybookjs/storybook/pull/29836), thanks @yannbf!
- Addon Test: Fix run request while booting or restarting Vitest - [#29829](https://github.com/storybookjs/storybook/pull/29829), thanks @ghengeveld!
- Addon Test: Serve `staticDirs` with Vitest - [#29811](https://github.com/storybookjs/storybook/pull/29811), thanks @ghengeveld!
- RNW-Vite: Add tsconfig path aliases support - [#29953](https://github.com/storybookjs/storybook/pull/29953), thanks @shilman!
- RNW-Vite: Fix flow plugin including too many things - [#29952](https://github.com/storybookjs/storybook/pull/29952), thanks @dannyhw!

## 8.5.0-alpha.18

- Addon Test: Clarify message when `vitest` detects missing deps - [#29763](https://github.com/storybookjs/storybook/pull/29763), thanks @ndelangen!
Expand Down
60 changes: 47 additions & 13 deletions MIGRATION.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<h1>Migration</h1>

- [From version 8.4.x to 8.5.x](#from-version-84x-to-85x)
- [Addon-a11y: Component test integration](#addon-a11y-component-test-integration)
- [Addon-a11y: Deprecated `parameters.a11y.manual`](#addon-a11y-deprecated-parametersa11ymanual)
- [Indexing behavior of @storybook/experimental-addon-test is changed](#indexing-behavior-of-storybookexperimental-addon-test-is-changed)
- [From version 8.2.x to 8.3.x](#from-version-82x-to-83x)
- [Removed `experimental_SIDEBAR_BOTTOM` and deprecated `experimental_SIDEBAR_TOP` addon types](#removed-experimental_sidebar_bottom-and-deprecated-experimental_sidebar_top-addon-types)
- [New parameters format for addon backgrounds](#new-parameters-format-for-addon-backgrounds)
Expand Down Expand Up @@ -105,17 +109,17 @@
- [Tab addons cannot manually route, Tool addons can filter their visibility via tabId](#tab-addons-cannot-manually-route-tool-addons-can-filter-their-visibility-via-tabid)
- [Removed `config` preset](#removed-config-preset-1)
- [From version 7.5.0 to 7.6.0](#from-version-750-to-760)
- [CommonJS with Vite is deprecated](#commonjs-with-vite-is-deprecated)
- [Using implicit actions during rendering is deprecated](#using-implicit-actions-during-rendering-is-deprecated)
- [typescript.skipBabel deprecated](#typescriptskipbabel-deprecated)
- [Primary doc block accepts of prop](#primary-doc-block-accepts-of-prop)
- [Addons no longer need a peer dependency on React](#addons-no-longer-need-a-peer-dependency-on-react)
- [CommonJS with Vite is deprecated](#commonjs-with-vite-is-deprecated)
- [Using implicit actions during rendering is deprecated](#using-implicit-actions-during-rendering-is-deprecated)
- [typescript.skipBabel deprecated](#typescriptskipbabel-deprecated)
- [Primary doc block accepts of prop](#primary-doc-block-accepts-of-prop)
- [Addons no longer need a peer dependency on React](#addons-no-longer-need-a-peer-dependency-on-react)
- [From version 7.4.0 to 7.5.0](#from-version-740-to-750)
- [`storyStoreV6` and `storiesOf` is deprecated](#storystorev6-and-storiesof-is-deprecated)
- [`storyIndexers` is replaced with `experimental_indexers`](#storyindexers-is-replaced-with-experimental_indexers)
- [`storyStoreV6` and `storiesOf` is deprecated](#storystorev6-and-storiesof-is-deprecated)
- [`storyIndexers` is replaced with `experimental_indexers`](#storyindexers-is-replaced-with-experimental_indexers)
- [From version 7.0.0 to 7.2.0](#from-version-700-to-720)
- [Addon API is more type-strict](#addon-api-is-more-type-strict)
- [Addon-controls hideNoControlsWarning parameter is deprecated](#addon-controls-hidenocontrolswarning-parameter-is-deprecated)
- [Addon API is more type-strict](#addon-api-is-more-type-strict)
- [Addon-controls hideNoControlsWarning parameter is deprecated](#addon-controls-hidenocontrolswarning-parameter-is-deprecated)
- [From version 6.5.x to 7.0.0](#from-version-65x-to-700)
- [7.0 breaking changes](#70-breaking-changes)
- [Dropped support for Node 15 and below](#dropped-support-for-node-15-and-below)
Expand All @@ -141,7 +145,7 @@
- [Deploying build artifacts](#deploying-build-artifacts)
- [Dropped support for file URLs](#dropped-support-for-file-urls)
- [Serving with nginx](#serving-with-nginx)
- [Ignore story files from node_modules](#ignore-story-files-from-node_modules)
- [Ignore story files from node\_modules](#ignore-story-files-from-node_modules)
- [7.0 Core changes](#70-core-changes)
- [7.0 feature flags removed](#70-feature-flags-removed)
- [Story context is prepared before for supporting fine grained updates](#story-context-is-prepared-before-for-supporting-fine-grained-updates)
Expand All @@ -155,7 +159,7 @@
- [Addon-interactions: Interactions debugger is now default](#addon-interactions-interactions-debugger-is-now-default)
- [7.0 Vite changes](#70-vite-changes)
- [Vite builder uses Vite config automatically](#vite-builder-uses-vite-config-automatically)
- [Vite cache moved to node_modules/.cache/.vite-storybook](#vite-cache-moved-to-node_modulescachevite-storybook)
- [Vite cache moved to node\_modules/.cache/.vite-storybook](#vite-cache-moved-to-node_modulescachevite-storybook)
- [7.0 Webpack changes](#70-webpack-changes)
- [Webpack4 support discontinued](#webpack4-support-discontinued)
- [Babel mode v7 exclusively](#babel-mode-v7-exclusively)
Expand All @@ -167,7 +171,7 @@
- [Angular: Drop support for calling Storybook directly](#angular-drop-support-for-calling-storybook-directly)
- [Angular: Application providers and ModuleWithProviders](#angular-application-providers-and-modulewithproviders)
- [Angular: Removed legacy renderer](#angular-removed-legacy-renderer)
- [Angular: initializer functions](#angular-initializer-functions)
- [Angular: Initializer functions](#angular-initializer-functions)
- [Next.js: use the `@storybook/nextjs` framework](#nextjs-use-the-storybooknextjs-framework)
- [SvelteKit: needs the `@storybook/sveltekit` framework](#sveltekit-needs-the-storybooksveltekit-framework)
- [Vue3: replaced app export with setup](#vue3-replaced-app-export-with-setup)
Expand Down Expand Up @@ -206,7 +210,7 @@
- [Dropped addon-docs manual babel configuration](#dropped-addon-docs-manual-babel-configuration)
- [Dropped addon-docs manual configuration](#dropped-addon-docs-manual-configuration)
- [Autoplay in docs](#autoplay-in-docs)
- [Removed STORYBOOK_REACT_CLASSES global](#removed-storybook_react_classes-global)
- [Removed STORYBOOK\_REACT\_CLASSES global](#removed-storybook_react_classes-global)
- [7.0 Deprecations and default changes](#70-deprecations-and-default-changes)
- [storyStoreV7 enabled by default](#storystorev7-enabled-by-default)
- [`Story` type deprecated](#story-type-deprecated)
Expand Down Expand Up @@ -419,6 +423,36 @@
- [Packages renaming](#packages-renaming)
- [Deprecated embedded addons](#deprecated-embedded-addons)

## From version 8.4.x to 8.5.x

### Addon-a11y: Component test integration

In Storybook 8.4, we introduced a new addon called [addon test](https://storybook.js.org/docs/writing-tests/test-addon). Powered by Vitest under the hood, this addon lets you watch, run, and debug your component tests directly in Storybook.

In Storybook 8.5, we revamped the Accessibility addon (`@storybook/addon-a11y`) to integrate it with the component tests feature. This means you can now extend your component tests to include accessibility tests. If you upgrade to Storybook 8.5 via `npx storybook@latest upgrade`, the Accessibility addon will be automatically configured to work with the component tests. However, if you're upgrading manually and you have the [addon test](https://storybook.js.org/docs/writing-tests/test-addon) installed, adjust your configuration as follows:

```diff
// .storybook/vitest.config.ts
...
+import * as a11yAddonAnnotations from '@storybook/addon-a11y/preview';

const annotations = setProjectAnnotations([
previewAnnotations,
+ a11yAddonAnnotations,
]);

// Run Storybook's beforeAll hook
beforeAll(annotations.beforeAll);
```

### Addon-a11y: Deprecated `parameters.a11y.manual`

We have deprecated `parameters.a11y.manual` in 8.5. Please use `globals.a11y.manual` instead.

### Indexing behavior of @storybook/experimental-addon-test is changed

The Storybook test addon used to index stories based on the `test.include` field in the Vitest config file. This caused indexing issues with Storybook, because stories could have been indexed by Storybook and not Vitest, and vice versa. Starting in Storybook 8.5.0-alpha.18, we changed the indexing behavior so that it always uses the globs defined in the `stories` field in `.storybook/main.js` for a more consistent experience. It is now discouraged to use `test.include`, please remove it.

## From version 8.2.x to 8.3.x

### Removed `experimental_SIDEBAR_BOTTOM` and deprecated `experimental_SIDEBAR_TOP` addon types
Expand Down
1 change: 1 addition & 0 deletions code/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
vite.config.*.timestamp*
2 changes: 2 additions & 0 deletions code/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@

/.nx/cache
core/report

/.nx/workspace-data
3 changes: 3 additions & 0 deletions code/.storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ export const parameters = {
opacity: 0.4,
},
},
a11y: {
warnings: ['minor', 'moderate', 'serious', 'critical'],
},
};

export const tags = ['test', 'vitest'];
5 changes: 3 additions & 2 deletions code/.storybook/storybook.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import { userEvent as storybookEvent, expect as storybookExpect } from '@storybo
// eslint-disable-next-line import/namespace
import * as testAnnotations from '@storybook/experimental-addon-test/preview';

import * as a11yAddonAnnotations from '@storybook/addon-a11y/preview';

import * as coreAnnotations from '../addons/toolbars/template/stories/preview';
import * as componentAnnotations from '../core/template/stories/preview';
// register global components used in many stories
Expand All @@ -15,9 +17,8 @@ import * as projectAnnotations from './preview';
vi.spyOn(console, 'warn').mockImplementation((...args) => console.log(...args));

const annotations = setProjectAnnotations([
// @ts-expect-error check type errors later
a11yAddonAnnotations,
projectAnnotations,
// @ts-expect-error check type errors later
componentAnnotations,
coreAnnotations,
testAnnotations,
Expand Down
Loading
Loading