Skip to content

Commit

Permalink
feat!: adapting Rsbuild 1.0.1-beta.14 (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
fi3ework authored Aug 17, 2024
1 parent aa6a356 commit 219d0d5
Show file tree
Hide file tree
Showing 9 changed files with 256 additions and 256 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ The repository contains the Storybook Rsbuild builder and framework integrations
> [!IMPORTANT]
> Peer dependencies requirements:
>
> - **`@rsbuild/core >= 1.0.0-alpha.9`**: Rsbuild is about to release version 1.0.0, and the current alpha version is already very reliable. (check out Rsbuild's [1.0.0 breaking changes](https://github.com/web-infra-dev/rsbuild/discussions/2508))
> - **`@rsbuild/core >= 1.0.1-beta.14`**: Rsbuild is about to release version 1.0.0, and the current alpha version is already very reliable. (check out Rsbuild's [1.0.0 breaking changes](https://github.com/web-infra-dev/rsbuild/discussions/2508))
> - **`storybook >= 8.2.1`**: Storybook made some internal refactor in major version, 8.2.1 is tested out. (check out Storybook's [release note](https://storybook.js.org/blog/storybook-8/) for migrating from v7)
In Storybook v8, you don't need to manually install storybook-builder-rsbuild, it has been depended by the framework, such as `storybook-react-rsbuild` and `storybook-vue3-rsbuild`.
Expand Down
6 changes: 3 additions & 3 deletions packages/builder-rsbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"prepare": "pnpm run build"
},
"dependencies": {
"@rsbuild/plugin-type-check": "1.0.1-beta.10",
"@rsbuild/plugin-type-check": "1.0.1-beta.14",
"@storybook/addon-docs": "^8.2.1",
"@storybook/core-webpack": "^8.2.1",
"browser-assert": "^1.2.1",
Expand All @@ -80,7 +80,7 @@
"util-deprecate": "^1.0.2"
},
"devDependencies": {
"@rsbuild/core": "1.0.1-beta.10",
"@rsbuild/core": "1.0.1-beta.14",
"@types/express": "^4.17.21",
"@types/fs-extra": "^11.0.4",
"@types/node": "^18.0.0",
Expand All @@ -92,7 +92,7 @@
"typescript": "^5.3.2"
},
"peerDependencies": {
"@rsbuild/core": ">= 1.0.0-alpha.9 || >= 1.0.1-beta || 1.x",
"@rsbuild/core": ">= 1.0.1-beta.14 || 1.x",
"storybook": "^8.2.1"
},
"peerDependenciesMeta": {
Expand Down
2 changes: 1 addition & 1 deletion packages/builder-rsbuild/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ export const start: RsbuildBuilder['start'] = async ({
)

router.use(rsbuildServer.middlewares)
storybookServer.on('upgrade', rsbuildServer.onHTTPUpgrade)
rsbuildServer.connectWebSocket({ server: storybookServer })
const stats = await waitFirstCompileDone

return {
Expand Down
4 changes: 2 additions & 2 deletions packages/react-rsbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@
"tsconfig-paths": "^4.2.0"
},
"devDependencies": {
"@rsbuild/core": "1.0.1-beta.10",
"@rsbuild/core": "1.0.1-beta.14",
"@storybook/types": "8.2.8",
"@types/resolve": "^1.20.6",
"add": "^2.0.6",
"storybook": "8.2.8",
"typescript": "^5.3.2"
},
"peerDependencies": {
"@rsbuild/core": ">= 1.0.0-alpha.9 || >= 1.0.1-beta || 1.x",
"@rsbuild/core": ">= 1.0.1-beta.14 || 1.x",
"react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",
"react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta",
"storybook": "^8.2.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/vue3-rsbuild/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
"vue-docgen-loader": "^1.5.1"
},
"devDependencies": {
"@rsbuild/core": "1.0.1-beta.10",
"@rsbuild/core": "1.0.1-beta.14",
"@types/node": "^18.0.0",
"storybook": "8.2.8",
"typescript": "^5.3.2"
},
"peerDependencies": {
"@rsbuild/core": ">= 1.0.0-alpha.9 || >= 1.0.1-beta || 1.x",
"@rsbuild/core": ">= 1.0.1-beta.14 || 1.x",
"storybook": "^8.2.1"
},
"peerDependenciesMeta": {
Expand Down
482 changes: 241 additions & 241 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions sandboxes/react-16/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
},
"devDependencies": {
"@chromatic-com/storybook": "^1.4.0",
"@rsbuild/core": "1.0.1-beta.10",
"@rsbuild/plugin-react": "1.0.1-beta.10",
"@rsbuild/core": "1.0.1-beta.14",
"@rsbuild/plugin-react": "1.0.1-beta.14",
"@storybook/addon-essentials": "8.2.8",
"@storybook/addon-interactions": "8.2.8",
"@storybook/addon-links": "8.2.8",
Expand Down
4 changes: 2 additions & 2 deletions sandboxes/react-18/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
},
"devDependencies": {
"@chromatic-com/storybook": "^1.4.0",
"@rsbuild/core": "1.0.1-beta.10",
"@rsbuild/plugin-react": "1.0.1-beta.10",
"@rsbuild/core": "1.0.1-beta.14",
"@rsbuild/plugin-react": "1.0.1-beta.14",
"@storybook/addon-essentials": "8.2.8",
"@storybook/addon-interactions": "8.2.8",
"@storybook/addon-links": "8.2.8",
Expand Down
4 changes: 2 additions & 2 deletions sandboxes/vue3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
},
"devDependencies": {
"@chromatic-com/storybook": "^1.4.0",
"@rsbuild/core": "1.0.1-beta.10",
"@rsbuild/plugin-vue": "1.0.1-beta.10",
"@rsbuild/core": "1.0.1-beta.14",
"@rsbuild/plugin-vue": "1.0.1-beta.14",
"@storybook/addon-essentials": "8.2.8",
"@storybook/addon-interactions": "8.2.8",
"@storybook/addon-links": "8.2.8",
Expand Down

0 comments on commit 219d0d5

Please sign in to comment.