Skip to content

Upgrading @storybook/addon-essentials 6 to 7

Breaking6.5.16 → 7.6.24Breaking39Security11Platform10Deprecated5New188Changed288Fixed700Other588

BreakingUpgrade verdict

39 breaking changes and 10 platform requirement changes and 11 security fixes.

  • Removes defaultProps in the Stories doc block.
  • Renames `index` to `createIndex`.
  • Storybook no longer refers to the api package or the two old channel packages that were already deprecated.
  • Angular stories can no longer use the old component and propsMeta fields.
Top 5 of 65 that need code or config changes

@storybook/addon-essentials publishes an official migration guide for version 7. It covers more than the release notes do.

Migration guide ↗

Adds @storybook/addon-highlight 7.6.24, @storybook/manager-api 7.6.24, @storybook/preview-api 7.6.24.

Drops @storybook/addons, @storybook/api, core-js, regenerator-runtime.

Installs 435 packages in all (was 952).

Breaking39
Removes defaultProps in the Stories doc block.
StoriesdefaultProps
Renames index to createIndex.
indexcreateIndex
Removes references to api and the 2 deprecated channel packages.
Angular removes deprecated component and propsMeta from story.
componentpropsMeta
Removes deprecated flags and properties.
Renames the framework parameter to renderer in Core.
frameworkrenderer
Removes DocsOptions.disable.
DocsOptions.disable
Drops lit1 support for web components.
lit1
Removes svelte-options from Svelte/Vite.
svelte-options
Removes the deprecated --no-manager-cache CLI flag.
--no-manager-cache
Removes the deprecated ArgTypes.defaultValue from CSF.
ArgTypes.defaultValue
Renames storyByModuleExport to resolveModuleExport in Addon-docs.
storyByModuleExportresolveModuleExport
Renames docsPage to autodocs.
docsPageautodocs
Renames docsOptions.enabled to docsOptions.disable.
docsOptions.enableddocsOptions.disable
Renames the api package to manager-api.
apimanager-api
Renames Framework to Renderer in CSF.
FrameworkRenderer
Preact now uses inline stories (without iframe) by default in docs.
CLI removes the deprecated -s flag on sb init.
sb init-s
Renames storybook/ui to storybook/manager.
storybook/uistorybook/manager
Removes the final batch of deprecated APIs.
Removes deprecated addon APIs.
Removes the onBeforeRender API.
onBeforeRender
Removes the old showRoots config option.
showRoots
Removes the html entrypoint of lib/components.
lib/components
Removes the deprecated Preview component.
Preview
Removes deprecated channel APIs.
Removes Angular framework storymodule story-component handling.
Removes deprecated glob fixing.
Removes STORYBOOK_REACT_CLASSES and global/globals.ts from Addon-docs.
STORYBOOK_REACT_CLASSESglobal/globals.ts
Replaces config with previewAnnotations and removes previewEntries in Presets.
configpreviewAnnotationspreviewEntries
Renames Storybook DOM root IDs.
Removes the docs tab from the UI.
Removes standalone node APIs from Core.
Creates frameworks and renames renderers.
Removes start-storybook and build-storybook from all frameworks.
start-storybookbuild-storybook
Removes experimental components.
Upgrades Addon-docs to MDXv2.
Addon-docsMDXv2
Upgrades the build chain to TS4, Webpack5, modern ESM, and TSUP.
Factors out webpack dependencies from core-webpack.
Security11
Hardens websocket connection.
Replaces the ip function to address security concerns.
ip
Updates the ip dependency to fix CVE-2023-42282.
ip
Updates @babel/traverse and @babel/core to fix a vulnerability.
@babel/traverse@babel/core
Updates the browserify-sign transitive dependency.
browserify-sign
Filters addon options in telemetry to protect sensitive info.
Upgrades escodegen to fix a security issue.
escodegen
Fixes the security report around the download-tarball package.
download-tarball
Fixes a trim vulnerability.
trim
Upgrades express to fix a security warning.
express
Updates x-default-browser and fixes an issue with the package.
x-default-browser
Platform10
Removes the need for react as a peerDependency.
react
Moves typescript from devDependencies to peerDependencies in React.
typescript
Removes the babel/core peer dependency from Svelte.
@babel/core
Makes vite a peer dependency and updates plugins.
vite
Adds an optional TypeScript peer dependency.
TypeScript
Extends the Angular Zone.js peer dependency range.
Zone.js
Fixes peer dependencies for npm8, pnpm and yarn PnP.
Adds a Next.js 13 peer dependency.
next
Adds babel loader 9.0.0 to vue-webpack5 peer dependencies.
babel-loadervue-webpack5
Makes babel-loader an optional peer dependency for addon-docs.
babel-loader
Deprecated5
Adds a deprecation notice for Vite with CommonJS.
Vite
Deprecates storyStoreV6 (including storiesOf) and storyIndexers.
storyStoreV6storiesOfstoryIndexers
Deprecates the key in the addon render function as it is no longer available.
key
Removes deprecated addPanel use and makes miscellaneous improvements in addons.
addPanel
Fixes the d.ts file and deprecates LinkTo in addon-links.
LinkTo