Upgrading @storybook/addon-actions 8 to 9
Breaking8.6.19 → 9.0.8Breaking23Security3Platform2New29Changed99Fixed93Other17
BreakingUpgrade verdict
23 breaking changes and 2 platform requirement changes and 3 security fixes.
In plain terms
- Code that imported blocks from the docs addon will no longer find that export.
- The essentials addon no longer bundles the docs addon, so projects relying on it must add docs separately.
- The story source addon is no longer available.
- The upgrade tool now removes the addon-essentials package from your project.
Must act Top 5 of 28 that need code or config changes
@storybook/addon-actions publishes an official migration guide for version 9. It covers more than the release notes do.
Migration guide ↗Drops @storybook/global, @types/uuid, dequal, polished, uuid.
Installs 0 packages in all (was 6).
What you must change
Breaking23
Removes the export of blocks from AddonDocs.
Removes addon-docs from Addon-Essentials.
addon-docsAddons: Removes @storybook/addon-storysource.
@storybook/addon-storysourceRemoves @storybook/addon-essentials via automigration.
@storybook/addon-essentialsRemoves the docs.autodocs field via automigration.
docs.autodocsRemoves support for HTML Webpack 5.
Removes deprecated APIs.
Removes deprecated packages.
Removes deprecated Next.js compatibility files.
Removes support for Preact Webpack 5.
Removes the @storybook/addon-mdx-gfm addon.
@storybook/addon-mdx-gfmRemoves the Source Loader package.
Removes support for Webpack 5 in Vue3.
Vue3Webpack 5Removes Webpack 5 support for Web Components.
Web ComponentsWebpack 5Renames @storybook/experimental-addon-test to @storybook/addon-vitest.
@storybook/experimental-addon-test@storybook/addon-vitestReplaces the element parameter with context in Addon-a11y.
elementcontextMigrates to the new test provider API and drops Vitest 2 support.
Moves @storybook/addon-actions into storybook.
@storybook/addon-actionsMoves @storybook/instrumenter into core.
@storybook/instrumenterRemoves deprecated parts of the test provider API.
Merges @storybook/core into the storybook package.
@storybook/corestorybookOnly exports definePreview from the framework in CSF.
definePreviewMoves @storybook/test into storybook/test.
@storybook/teststorybook/testSecurity3
Applies dependency upgrades for security.
Applies dependency upgrades for security.
Applies dependency upgrades for security.
Platform2
Aligns Node.js version support.
Drops support for TypeScript versions below 4.9.
TypeScript