Skip to content

Commit c78ff49

Browse files
authored
Update to Storybook 9 (#3053)
1 parent a859cdf commit c78ff49

52 files changed

Lines changed: 1378 additions & 2347 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/shiny-sloths-drum.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@web/mocks': major
3+
'@web/storybook-addon-mocks': major
4+
'@web/storybook-builder': minor
5+
'@web/storybook-framework-web-components': minor
6+
'@web/storybook-utils': major
7+
---
8+
9+
Migrate projects to Storybook 9

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Storybook Builder >> Migration to Storybook 7 ||5
1+
# Storybook Builder >> Migration to Storybook 7 ||6
22

33
This guide explains how to migrate from [`@web/dev-server-storybook` plugin](../dev-server/plugins/storybook.md) (that used opinionated Storybook 6 bundle `@web/storybook-prebuilt`) to Storybook 7 and new `@web/storybook-builder`.
44

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Storybook Builder >> Migration from Storybook 7 to 8 ||4
1+
# Storybook Builder >> Migration from Storybook 7 to 8 ||5
22

33
## Update dependencies
44

@@ -11,7 +11,7 @@ You need to:
1111

1212
## General migration guide
1313

14-
Make sure to follow the [Storybook's own migration guide](https://storybook.js.org/docs/migration-guide).
14+
Make sure to follow the [Storybook's own migration guide](https://storybook.js.org/docs/8/migration-guide).
1515
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.
1616

1717
## Specific migration notes
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Storybook Builder >> Migration from Storybook 8 to 9 ||4
2+
3+
## Update dependencies
4+
5+
`@web/storybook-builder` for Storybook 9 is released as version `0.3.x` and expects all Storybook packages to be at least `9.1.20`.
6+
7+
You need to:
8+
9+
- 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`
13+
- update dependencies under the namespace `@storybook/*` and the `storybook` itself to `^9.1.20`
14+
15+
## General migration guide
16+
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).
18+
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.
21+
22+
## Specific migration notes
23+
24+
A few dependencies might need to be updated, only if you use them:
25+
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`

docs/docs/storybook-builder/overview.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ Then proceed to the [Configuration](./configuration.md).
3131

3232
## Storybook versions
3333

34+
Storybook 9 is supported by:
35+
36+
- `@web/storybook-builder@0.3.x`
37+
- `@web/storybook-framework-web-components@0.3.x`
38+
3439
Storybook 8 is supported by:
3540

3641
- `@web/storybook-builder@0.2.x`

0 commit comments

Comments
 (0)