Skip to content

chore(deps): bump storybook from v7.6.20 to v8.6.14#935

Merged
tbouffard merged 8 commits intomainfrom
chore/bump_storybook_to_v8
Nov 24, 2025
Merged

chore(deps): bump storybook from v7.6.20 to v8.6.14#935
tbouffard merged 8 commits intomainfrom
chore/bump_storybook_to_v8

Conversation

@tbouffard
Copy link
Member

@tbouffard tbouffard commented Oct 31, 2025

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).

Summary by CodeRabbit

  • Chores
    • Upgraded Storybook to 8.6.14 and Vite to 6.4.1 to improve build performance and stability.
    • Added a minimal Vite configuration to streamline the local development/preview setup.
    • Switched development tooling to use React 19 for the Storybook/dev environment.

✏️ Tip: You can customize this high-level summary in your review settings.

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).
@tbouffard tbouffard added dependencies skip-changelog Do not include in Changelog and Release Notes labels Oct 31, 2025
@coderabbitai
Copy link

coderabbitai bot commented Oct 31, 2025

Walkthrough

Updated Storybook-related devDependencies to 8.6.14, upgraded Vite to 6.4.1, added React and ReactDOM v19 as devDependencies in packages/html/package.json, and added a minimal Vite config at packages/html/vite.config.js.

Changes

Cohort / File(s) Change Summary
Dependency upgrades
packages/html/package.json
Bumped Storybook packages (core, addon-essentials, addon-links, addon-storysource, blocks, html, html-vite) to 8.6.14; upgraded vite from 5.4.19 to 6.4.1; added react and react-dom v19 as devDependencies; updated scripts remain unchanged.
Vite configuration
packages/html/vite.config.js
New file: imports defineConfig from vite and exports a minimal defineConfig({}) placeholder intended to be merged with Storybook's Vite config.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Review focus: packages/html/package.json dependency changes and compatibility implications (Storybook 8 + Vite 6 + React 19).
  • Verify packages/html/vite.config.js is minimal and non-conflicting with Storybook's merged Vite config.

Possibly related PRs

Suggested labels

dependencies, javascript

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely summarizes the main change: upgrading Storybook from v7.6.20 to v8.6.14, which is the primary focus of the entire PR.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Description check ✅ Passed PR description is well-structured and covers the key requirements, addressing what changed and why, but lacks explicit issue reference and some template sections.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/bump_storybook_to_v8

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@tbouffard tbouffard added chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) and removed dependencies labels Nov 19, 2025
@sonarqubecloud
Copy link

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

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

📥 Commits

Reviewing files that changed from the base of the PR and between cb18f80 and 7a4c381.

⛔ Files ignored due to path filters (1)
  • package-lock.json is 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:

  1. Whether Storybook 8.6.14 with html-vite requires Vite 6.x or if Vite 5 is still compatible.
  2. 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).

Copy link
Member Author

@tbouffard tbouffard left a comment

Choose a reason for hiding this comment

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

✔️ Tested locally with the artifact built by GH Actions
✔️ Tested with the local dev server

@tbouffard tbouffard merged commit 799f385 into main Nov 24, 2025
12 checks passed
@tbouffard tbouffard deleted the chore/bump_storybook_to_v8 branch November 24, 2025 14:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) skip-changelog Do not include in Changelog and Release Notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant