-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
Manager: Upgrade to react
v19 for manager UI & Addons
#32406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: next
Are you sure you want to change the base?
Conversation
This reverts commit ba40239.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
10 files reviewed, no comments
|
Command | Status | Duration | Result |
---|---|---|---|
nx run-many -t build --parallel=3 |
❌ Failed | 41s | View ↗ |
☁️ Nx Cloud last updated this comment at 2025-09-10 10:05:56
UTC
Package BenchmarksCommit: The following packages have significant changes to their size or dependencies:
|
Before | After | Difference | |
---|---|---|---|
Dependency count | 2 | 2 | 0 |
Self size | 508 KB | 697 KB | 🚨 +189 KB 🚨 |
Dependency size | 2.80 MB | 2.80 MB | 0 B |
Bundle Size Analyzer | Link | Link |
@storybook/addon-docs
Before | After | Difference | |
---|---|---|---|
Dependency count | 18 | 18 | 0 |
Self size | 2.01 MB | 2.02 MB | 🚨 +11 KB 🚨 |
Dependency size | 9.40 MB | 9.40 MB | 0 B |
Bundle Size Analyzer | Link | Link |
storybook
Before | After | Difference | |
---|---|---|---|
Dependency count | 48 | 48 | 0 |
Self size | 30.74 MB | 30.76 MB | 🚨 +19 KB 🚨 |
Dependency size | 17.61 MB | 17.61 MB | 0 B |
Bundle Size Analyzer | Link | Link |
@storybook/nextjs
Before | After | Difference | |
---|---|---|---|
Dependency count | 529 | 529 | 0 |
Self size | 928 KB | 939 KB | 🚨 +12 KB 🚨 |
Dependency size | 58.34 MB | 58.36 MB | 🚨 +13 KB 🚨 |
Bundle Size Analyzer | Link | Link |
@storybook/nextjs-vite
Before | After | Difference | |
---|---|---|---|
Dependency count | 130 | 130 | 0 |
Self size | 4.00 MB | 4.01 MB | 🚨 +12 KB 🚨 |
Dependency size | 21.39 MB | 21.40 MB | 🚨 +12 KB 🚨 |
Bundle Size Analyzer | Link | Link |
@storybook/react-native-web-vite
Before | After | Difference | |
---|---|---|---|
Dependency count | 163 | 163 | 0 |
Self size | 31 KB | 31 KB | 🎉 -24 B 🎉 |
Dependency size | 22.78 MB | 22.79 MB | 🚨 +12 KB 🚨 |
Bundle Size Analyzer | Link | Link |
@storybook/react-vite
Before | After | Difference | |
---|---|---|---|
Dependency count | 120 | 120 | 0 |
Self size | 36 KB | 36 KB | 0 B |
Dependency size | 19.34 MB | 19.35 MB | 🚨 +12 KB 🚨 |
Bundle Size Analyzer | Link | Link |
@storybook/react-webpack5
Before | After | Difference | |
---|---|---|---|
Dependency count | 272 | 272 | 0 |
Self size | 25 KB | 25 KB | 0 B |
Dependency size | 43.03 MB | 43.04 MB | 🚨 +12 KB 🚨 |
Bundle Size Analyzer | Link | Link |
@storybook/cli
Before | After | Difference | |
---|---|---|---|
Dependency count | 204 | 204 | 0 |
Self size | 879 KB | 879 KB | 0 B |
Dependency size | 81.72 MB | 81.74 MB | 🚨 +19 KB 🚨 |
Bundle Size Analyzer | Link | Link |
@storybook/codemod
Before | After | Difference | |
---|---|---|---|
Dependency count | 173 | 173 | 0 |
Self size | 35 KB | 35 KB | 0 B |
Dependency size | 76.79 MB | 76.81 MB | 🚨 +19 KB 🚨 |
Bundle Size Analyzer | Link | Link |
create-storybook
Before | After | Difference | |
---|---|---|---|
Dependency count | 49 | 49 | 0 |
Self size | 1.52 MB | 1.52 MB | 🎉 -30 B 🎉 |
Dependency size | 48.35 MB | 48.37 MB | 🚨 +19 KB 🚨 |
Bundle Size Analyzer | node | node |
@storybook/react
Before | After | Difference | |
---|---|---|---|
Dependency count | 2 | 2 | 0 |
Self size | 872 KB | 883 KB | 🚨 +12 KB 🚨 |
Dependency size | 18 KB | 18 KB | 0 B |
Bundle Size Analyzer | Link | Link |
….9 respectively in package.json and yarn.lock
…imization and improve readability
- Changed TypeScript target and lib versions in tsconfig.json to support ES2024 features. - Updated useRef hooks in multiple components to explicitly allow null values for better type safety. - Enhanced type checks in getStoryId and copyToClipboard functions to ensure proper handling of props.
- Updated tsconfig.json to target ESNext and use the latest lib definitions. - Replaced deprecated ReactDOM.render with createRoot for improved rendering in onboarding manager. - Added explicit JSX type imports in various components for better type safety. - Converted ts-ignore comments to ts-expect-error for better TypeScript error handling in prop types.
- Updated prop types in Tabs and Tooltip components to allow for additional types. - Refined useRef hooks in FileSearchList and TestingModule to explicitly handle null values. - Removed unnecessary ts-expect-error comments and added type checks for better error handling. - Improved type definitions in useExpanded hook for clearer state management.
- Changed module from ESNext to Preserve for compatibility. - Updated target from esnext to es2020 to align with project requirements.
What I did
Checklist for Contributors
Testing
The changes in this PR are covered in the following automated tests:
Manual testing
This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!
Documentation
MIGRATION.MD
Checklist for Maintainers
When this PR is ready for testing, make sure to add
ci:normal
,ci:merged
orci:daily
GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found incode/lib/cli-storybook/src/sandbox-templates.ts
Make sure this PR contains one of the labels below:
Available labels
bug
: Internal changes that fixes incorrect behavior.maintenance
: User-facing maintenance tasks.dependencies
: Upgrading (sometimes downgrading) dependencies.build
: Internal-facing build tooling & test updates. Will not show up in release changelog.cleanup
: Minor cleanup style change. Will not show up in release changelog.documentation
: Documentation only changes. Will not show up in release changelog.feature request
: Introducing a new feature.BREAKING CHANGE
: Changes that break compatibility in some way with current major version.other
: Changes that don't fit in the above categories.🦋 Canary release
This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the
@storybookjs/core
team here.core team members can create a canary release here or locally with
gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=<PR_NUMBER>
Greptile Summary
Updated On: 2025-09-04 09:52:15 UTC
This PR upgrades React from v18.2.0 to v19.1.1 across Storybook's manager UI and addon ecosystem. The changes are applied systematically to multiple packages including the root package.json, core Storybook package, and various addons (a11y, docs, jest, onboarding, pseudo-states, themes, vitest, create-storybook). The upgrade affects both direct dependencies and devDependencies, with yarn resolutions ensuring consistent versions across the monorepo workspace.
The upgrade encompasses the entire React ecosystem within Storybook, including React DOM and related packages like
react-helmet-async
,react-inspector
,react-syntax-highlighter
, andreact-textarea-autosize
. The changes maintain backward compatibility for end users by keeping flexible peer dependency ranges in addon packages (e.g.,^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
) while using React v19 for development and build processes.This modernization effort positions Storybook to leverage React 19's improvements including enhanced concurrent features, automatic batching optimizations, and new APIs. The coordinated approach ensures consistency across the entire addon ecosystem and manager UI components.
Confidence score: 2/5
code/addons/onboarding/package.json
andcode/addons/jest/package.json
for breaking changes