Skip to content

Commit a8fc6e8

Browse files
committed
fix remaining issues, clean up deps and update docs
1 parent 61ae871 commit a8fc6e8

22 files changed

Lines changed: 307 additions & 442 deletions

File tree

.changeset/shiny-sloths-drum.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
'@web/mocks': major
23
'@web/storybook-addon-mocks': major
34
'@web/storybook-builder': minor
45
'@web/storybook-framework-web-components': minor

docs/docs/mocks/migration-to-storybook-9.md

Lines changed: 0 additions & 6 deletions
This file was deleted.

docs/docs/storybook-builder/migration-to-storybook-9.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,21 @@
77
You need to:
88

99
- update `@web/storybook-builder` and `@web/storybook-framework-web-components` to `^0.3.0`
10+
- remove outdated `@storybook/*` packages (see links below for more info)
11+
- most common ones to remove are `@storybook/addon-essentials`, `@storybook/addon-interactions`, `@storybook/blocks`, `@storybook/test`
12+
- most common one to add is `@storybook/addon-docs`
1013
- update dependencies under the namespace `@storybook/*` and the `storybook` itself to `^9.1.20`
1114

1215
## General migration guide
1316

14-
Make sure to follow the [Storybook's own migration guide](https://storybook.js.org/docs/releases/migration-guide-from-older-version).
15-
We recommend to read it carefully, even though big part of it is not directly related to `@web/storybook-builder` or `@web/storybook-framework-web-components`, many small details are too easy to miss, so go through it step by step.
17+
Make sure to follow the [Storybook's own migration guide](https://storybook.js.org/docs/releases/migration-guide-from-older-version) and look into more [detailed migration notes on GitHub](https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#from-version-8x-to-900).
1618

17-
## Specific migration notes
19+
We recommend to read all of it carefully, many small details are too easy to miss, so go through it step by step.
20+
Some changes will be Vite/Webpack specific and unrelated to `@web/storybook-builder` or `@web/storybook-framework-web-components`, skip them.
1821

19-
Apart from Storybook's own migration steps, from the Builder API perspective the `@web/storybook-builder` is considered backwards compatible.
20-
If you use standard Storybook addons and do not use custom WDS/rollup plugins, you shouldn't require any extra changes.
22+
## Specific migration notes
2123

22-
However, if you do use something custom, here is a list of some changes that might cause highly unlikely difficulties:
24+
A few dependencies might need to be updated, only if you use them:
2325

24-
- Storybook 9 consolidated most packages it uses into the main storybook packages. These migrated packages and instructions are found in the [migration guide](https://storybook.js.org/docs/releases/migration-guide-from-older-version#package-structure-changes).
25-
- CSF 3 is now the default format for stories, but CSF 2 is still supported, so if you have CSF 2 stories, they should work without any changes, but we recommend to migrate them to CSF 3 to get all the benefits of it, e.g. better support for TypeScript and better DX in general.
26+
- update `@web/mocks` to `^2.0.0` and follow [it's migration guide](https://github.com/modernweb-dev/web/blob/master/packages/mocks/MIGRATION.md)
27+
- update `@web/storybook-utils` to `^2.0.0`

0 commit comments

Comments
 (0)