npm / msw-storybook-addon
msw-storybook-addon
What changed in msw-storybook-addon 2 to 3, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
2 breaking2 deprecations3 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initmsw-storybook-addon 33 changes
Breaking changes 1
The addon has a new architecture; see MIGRATION.md for migration instructions and codemods.
Fixes and other changes 2
Adds support for Storybook 10 and 11.
The story context is augmented from every entrypoint, fixing type availability across entrypoints.
msw-storybook-addon 24 changes
Breaking changes 1
The addon now requires MSW 2.0.0 or higher, so developers must update their MSW version and handler format.
Deprecations 2
Use mswLoader instead; loaders run before a story renders, avoiding the chance that requests reach real data before the service worker registers.
The Array notation is deprecated in favor of the Object notation using handlers; the previous format will be removed in the next major release.
Fixes and other changes 1
The addon stops relying on worker.context, avoiding issues caused by that dependency.