Release: Prerelease 10.5.0-alpha.1#34822
Merged
valentinpalkovic merged 53 commits intoMay 21, 2026
Merged
Conversation
Adds the `useLinkStatus` hook (introduced in Next.js 15.3) to the `@storybook/nextjs/link.mock` module. Without this export, Storybook fails at build and runtime when a component imports `useLinkStatus` from `next/link`. Also exports the `LinkStatus` type to match the Next.js public API. https://claude.ai/code/session_01Hw1UdSNqtAb34tbqFFw14S
Formatter normalised single quotes to double quotes in code blocks. https://claude.ai/code/session_01Hw1UdSNqtAb34tbqFFw14S
Adds two template stories to Link.stories.tsx:
- DefaultLinkStatus: asserts the mock returns { pending: false } by default
- PendingLinkStatus: demonstrates overriding via beforeEach + mockReturnValue
Follows the same pattern used in Navigation.stories.tsx and ServerActions.stories.tsx.
https://claude.ai/code/session_01Hw1UdSNqtAb34tbqFFw14S
Undoes auto-formatter quote changes that were inadvertently committed. https://claude.ai/code/session_01Hw1UdSNqtAb34tbqFFw14S
No other mock manually exports types — they rely on re-exporting from the real Next.js dist modules. Keeping this consistent; the inline return type on useLinkStatus is sufficient for type inference. https://claude.ai/code/session_01Hw1UdSNqtAb34tbqFFw14S
Align native module versions with the installed Expo SDK after the user's package manager pins latest, avoiding runtime warnings like "AsyncStorageError: Native module is null, cannot access legacy storage". Adds a generic `postInstall` lifecycle hook to generator modules and uses it from the React Native generator (and the React Native + RNW combo) to run `npx expo install --fix` only when `expo` or `expo-router` is present. Co-authored-by: Cursor <cursoragent@cursor.com>
…ippets Docs: Fix `tanstack-react` snippets
b3529c3 to
08027c6
Compare
…atus-hook-ctuWL Next.js: Add useLinkStatus mock to next/link export mock
Test: Move @testing-library/dom to dependencies
08027c6 to
519d2bd
Compare
- Make `configLoader` an optional param in bootTestRunner/runTestRunner so
existing boot-test-runner tests typecheck (fixes typescript-validation CI)
- Move the configLoader test inside the `describe('commonConfig')` block and
document the intentional inline mock (CodeRabbit)
- Add trailing semicolon + JSDoc noting `configLoader` requires Vite 6.1.0+
- Reformat `loadConfigFromFile` call to satisfy oxfmt (fixes format-check CI)
The `private` -> `public readonly` fix for `TestManager.configLoader`
(CodeRabbit critical) landed with the `next` merge resolution.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
…tart-storybook Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Angular: Fix custom paths for stats.json on angular
519d2bd to
b052ba7
Compare
Builder-Vite: Support configLoader via builder options
b052ba7 to
061ed10
Compare
The original PR added `${globPattern}/**` as a globby ignore pattern to
prevent story-like directories from being indexed. However, micromatch's
`/**` suffix can match zero-length trailing paths, causing the pattern to
also match the story files themselves. This caused ALL stories to be
ignored, resulting in 44 test failures and all sandbox dev/e2e/chromatic
CI failures.
The correct fix is to rely on globby's `onlyFiles: true` option (which is
the fast-glob default but is now explicit) to prevent directories from
being returned. This correctly excludes the `Button.stories.tsx` directory
from being indexed while keeping all legitimate story files.
Note: A secondary attempt with `${globPattern}/**/*` also failed because
globby tries to stat() the ignore pattern path and throws ENOTDIR when
the pattern resolves through an actual file (e.g., errors/A.mdx/**/*).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ory-directories Core: Ignore story-like directories in indexer
Next.js Vite: Add Link mock with useLinkStatus to nextjs-vite framework
061ed10 to
8f9db32
Compare
Yarn 4.15.0 enables `npmMinimalAgeGate: 1d` by default, which quarantines
freshly-published packages from the local Verdaccio registry and breaks
sandbox creation:
YN0016: create-storybook@npm:10.5.0-alpha.0: All versions satisfying
"10.5.0-alpha.0" are quarantined
Set `npmMinimalAgeGate 0` in the sandbox yarn config to unblock the team
while a more targeted preapproval-based fix is being worked on.
…imal-age-gate-disable Build: Disable yarn npmMinimalAgeGate inside sandboxes
8f9db32 to
47284eb
Compare
Package BenchmarksCommit: The following packages have significant changes to their size or dependencies:
|
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 186 | 184 | 🎉 -2 🎉 |
| Self size | 79 KB | 79 KB | 0 B |
| Dependency size | 33.07 MB | 33.22 MB | 🚨 +150 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
storybook
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 60 | 72 | 🚨 +12 🚨 |
| Self size | 20.52 MB | 20.30 MB | 🎉 -222 KB 🎉 |
| Dependency size | 32.84 MB | 36.17 MB | 🚨 +3.34 MB 🚨 |
| Bundle Size Analyzer | Link | Link |
@storybook/ember
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 190 | 188 | 🎉 -2 🎉 |
| Self size | 15 KB | 15 KB | 0 B |
| Dependency size | 29.79 MB | 29.94 MB | 🚨 +150 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
@storybook/nextjs
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 536 | 534 | 🎉 -2 🎉 |
| Self size | 651 KB | 662 KB | 🚨 +12 KB 🚨 |
| Dependency size | 61.20 MB | 61.35 MB | 🚨 +150 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
@storybook/nextjs-vite
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 93 | 93 | 0 |
| Self size | 1.37 MB | 1.38 MB | 🚨 +13 KB 🚨 |
| Dependency size | 24.78 MB | 24.78 MB | 🚨 +394 B 🚨 |
| Bundle Size Analyzer | Link | Link |
@storybook/react-webpack5
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 273 | 271 | 🎉 -2 🎉 |
| Self size | 23 KB | 23 KB | 🚨 +12 B 🚨 |
| Dependency size | 45.73 MB | 45.88 MB | 🚨 +150 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
@storybook/server-webpack5
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 198 | 196 | 🎉 -2 🎉 |
| Self size | 16 KB | 16 KB | 🚨 +12 B 🚨 |
| Dependency size | 34.33 MB | 34.48 MB | 🚨 +150 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
@storybook/cli
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 194 | 203 | 🚨 +9 🚨 |
| Self size | 908 KB | 908 KB | 0 B |
| Dependency size | 84.57 MB | 87.59 MB | 🚨 +3.02 MB 🚨 |
| Bundle Size Analyzer | Link | Link |
@storybook/codemod
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 187 | 196 | 🚨 +9 🚨 |
| Self size | 32 KB | 32 KB | 0 B |
| Dependency size | 83.06 MB | 86.08 MB | 🚨 +3.02 MB 🚨 |
| Bundle Size Analyzer | Link | Link |
create-storybook
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 61 | 73 | 🚨 +12 🚨 |
| Self size | 1.08 MB | 1.08 MB | 🚨 +2 KB 🚨 |
| Dependency size | 53.36 MB | 56.48 MB | 🚨 +3.12 MB 🚨 |
| Bundle Size Analyzer | node | node |
@storybook/preset-react-webpack
| Before | After | Difference | |
|---|---|---|---|
| Dependency count | 166 | 164 | 🎉 -2 🎉 |
| Self size | 18 KB | 18 KB | 0 B |
| Dependency size | 32.08 MB | 32.23 MB | 🚨 +150 KB 🚨 |
| Bundle Size Analyzer | Link | Link |
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is an automated pull request that bumps the version from
10.5.0-alpha.0to10.5.0-alpha.1.Once this pull request is merged, it will trigger a new release of version
10.5.0-alpha.1.If you're not a core maintainer with permissions to release you can ignore this pull request.
To do
Before merging the PR, there are a few QA steps to go through:
And for each change below:
This is a list of all the PRs merged and commits pushed directly to
next, that will be part of this release:npx expo install --fixafter init for Expo projects #34803 (will also be patched)tanstack-reactsnippets #34814 (will also be patched)npm create#34828.typeFAQ #34813 (will also be patched)If you've made any changes doing the above QA (change PR titles, revert PRs), manually trigger a re-generation of this PR with this workflow and wait for it to finish. It will wipe your progress in this to do, which is expected.
Feel free to manually commit any changes necessary to this branch after you've done the last re-generation, following the Make Manual Changes section in the docs, especially if you're making changes to the changelog.
When everything above is done:
Generated changelog
10.5.0-alpha.1
npx expo install --fixafter init for Expo projects - #34803, thanks ndelangen!