Skip to content

Convert projects to Storybook v9#3039

Open
GuiAmPm wants to merge 11 commits intomodernweb-dev:masterfrom
GuiAmPm:gui-storybook-9-support
Open

Convert projects to Storybook v9#3039
GuiAmPm wants to merge 11 commits intomodernweb-dev:masterfrom
GuiAmPm:gui-storybook-9-support

Conversation

@GuiAmPm
Copy link

@GuiAmPm GuiAmPm commented Mar 9, 2026

What I did

  1. Updated packages to support Storybook v9
  2. Peer dependencies are migrated to version work exclusively with 9
  3. Updated docs

@changeset-bot
Copy link

changeset-bot bot commented Mar 9, 2026

🦋 Changeset detected

Latest commit: 1d184cf

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@web/storybook-framework-web-components Minor
@web/storybook-builder Minor
@web/storybook-utils Minor
@web/mocks Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

"lit": "^2.7.5 || ^3.0.0",
"msw": "2.4.1"
"msw": "2.4.1",
"storybook": "9.1.19"
Copy link
Member

@bashmish bashmish Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this would mean a major, since this package now doesn't support 7 & 8
but upgrading the mocks package to new major as a result of the storybook plugin seems like a wrong idea
I'd do the following:

  • keep the package as is
  • make a new package @web/storybook-addon-mocks and make it compatible with Storybook 9 only (ditch "storybook-prebuilt")
  • deprecate existing plugins in web/mocks
  • one challenge is versioning: I think mocks depends both on msw and on storybook, so we won't be able to sync a version with both of them, therefore best not to try to sync it and do our own versioning for it, starting with 1.x.x
  • documentation should be updated with all necessary deprecations, migrations and such

Copy link
Member

@bashmish bashmish Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

on a 2nd thought: Storybook packages are in deps
if we keep this package as is, then older Storybook versions will always be installed
so we'll have to make a new major of this package anyway to decouple it from Storybook for good

'@storybook/addon-interactions',
'@storybook/addon-a11y',
'@web/mocks/storybook-addon',
'@storybook/addon-docs',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: please move it to the top of the list where essentials was

"@web/rollup-plugin-import-meta-assets": "^2.2.1",
"@web/storybook-utils": "^1.1.0",
"storybook": "^8.6.15"
"storybook": "9.1.19"
Copy link
Member

@bashmish bashmish Mar 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is no caret in these deps

Guilherme da Silva Amorim added 2 commits March 11, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants