Skip to content

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.

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

Breaking23
Removes the export of blocks from AddonDocs.
Removes addon-docs from Addon-Essentials.
addon-docs
Addons: Removes @storybook/addon-storysource.
@storybook/addon-storysource
Removes @storybook/addon-essentials via automigration.
@storybook/addon-essentials
Removes the docs.autodocs field via automigration.
docs.autodocs
Removes 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-gfm
Removes the Source Loader package.
Removes support for Webpack 5 in Vue3.
Vue3Webpack 5
Removes Webpack 5 support for Web Components.
Web ComponentsWebpack 5
Renames @storybook/experimental-addon-test to @storybook/addon-vitest.
@storybook/experimental-addon-test@storybook/addon-vitest
Replaces the element parameter with context in Addon-a11y.
elementcontext
Migrates to the new test provider API and drops Vitest 2 support.
Moves @storybook/addon-actions into storybook.
@storybook/addon-actions
Moves @storybook/instrumenter into core.
@storybook/instrumenter
Removes deprecated parts of the test provider API.
Merges @storybook/core into the storybook package.
@storybook/corestorybook
Only exports definePreview from the framework in CSF.
definePreview
Moves @storybook/test into storybook/test.
@storybook/teststorybook/test
Security3
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