chore(deps): bump storybook from v7.6.20 to v8.6.14#935
Conversation
Migrate Storybook from v7.6.20 to v8.6.14 using the automated upgrade tool. This brings performance improvements and the latest features. Changes: - Updated all @storybook/* packages to v8.6.14 - Added react and react-dom as devDependencies (required for MDX rendering) - Created vite.config.js (required for Storybook 8 with Vite) - All existing stories continue to work without modification - Build time and dev server startup remain fast Tested: - Build completes successfully - Dev mode starts correctly (1.84s manager, 384ms preview) - MDX documentation pages render correctly - All 368 core package tests pass - Linting passes The argTypesRegex in preview.ts is retained as it's still valid in v8 and doesn't impact functionality (no play functions use it).
WalkthroughUpdated Storybook-related devDependencies to 8.6.14, upgraded Vite to 6.4.1, added React and ReactDOM v19 as devDependencies in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Suggested labels
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (1)
packages/html/package.json (1)
14-23: Consider aligning version pinning strategy across dependencies.The devDependencies use inconsistent pinning strategies:
- Storybook packages (lines 14–19, 22): exact versions (e.g., "8.6.14")
- Vite (line 23): tilde constraint (~6.4.1, allows patch updates)
- React & React-DOM (lines 20–21): caret constraint (^19.1.0, allows minor/patch updates)
This inconsistency could lead to unexpected version combinations if transitive dependencies pull in incompatible patch/minor versions. For stability during a major version migration, consider pinning all devDependencies to exact versions, or document the rationale for looser constraints on React and Vite.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
package-lock.jsonis excluded by!**/package-lock.json
📒 Files selected for processing (1)
packages/html/package.json(1 hunks)
🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: tbouffard
Repo: maxGraph/maxGraph PR: 617
File: packages/ts-example/package.json:12-12
Timestamp: 2025-01-05T15:35:57.645Z
Learning: We keep Vite 5 specifically in the package that uses Storybook (the "html" package), while the other packages can safely use a newer version of Vite without compatibility issues.
Learnt from: tbouffard
Repo: maxGraph/maxGraph PR: 849
File: packages/html/stories/DragSource.stories.js:98-101
Timestamp: 2025-06-13T07:48:10.300Z
Learning: User tbouffard prefers answers in English; avoid switching to other languages in future replies.
📚 Learning: 2025-01-05T15:35:57.645Z
Learnt from: tbouffard
Repo: maxGraph/maxGraph PR: 617
File: packages/ts-example/package.json:12-12
Timestamp: 2025-01-05T15:35:57.645Z
Learning: We keep Vite 5 specifically in the package that uses Storybook (the "html" package), while the other packages can safely use a newer version of Vite without compatibility issues.
Applied to files:
packages/html/package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: build
- GitHub Check: build (windows-2022)
- GitHub Check: build (ubuntu-24.04)
- GitHub Check: build (macos-14)
🔇 Additional comments (2)
packages/html/package.json (2)
23-23: Verify Vite 6 compatibility with Storybook 8 in this package.Line 23 upgrades Vite from 5.4.19 to ~6.4.1. A previous learning notes that Vite 5 should be kept specifically in the html package (which uses Storybook). Confirm that the upgrade to Vite 6 is intentional and required for Storybook 8 compatibility, especially since the PR mentioned adding a vite.config.js for integration.
Please verify:
- Whether Storybook 8.6.14 with html-vite requires Vite 6.x or if Vite 5 is still compatible.
- That there are no known incompatibilities between Vite 6.4.1 and Storybook 8.6.14 for this use case.
20-21: Verify React 19 compatibility with Storybook 8.6.14.Lines 20-21 add React and React-DOM 19.1.0 as devDependencies. The PR states this is required for MDX rendering in Storybook 8. Confirm that React 19 is fully compatible with Storybook 8.6.14, as React 19 includes breaking changes and behavioral shifts (e.g., ref handling, deprecated APIs).
tbouffard
left a comment
There was a problem hiding this comment.
✔️ Tested locally with the artifact built by GH Actions
✔️ Tested with the local dev server



Migrate Storybook from v7.6.20 to v8.6.14 using the automated upgrade
tool. This brings performance improvements and the latest features.
Changes:
Tested:
The argTypesRegex in preview.ts is retained as it's still valid in v8
and doesn't impact functionality (no play functions use it).
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.