Skip to content

[pull] next from storybookjs:next#830

Merged
pull[bot] merged 43 commits into
GesuBackups:nextfrom
storybookjs:next
May 22, 2026
Merged

[pull] next from storybookjs:next#830
pull[bot] merged 43 commits into
GesuBackups:nextfrom
storybookjs:next

Conversation

@pull

@pull pull Bot commented May 22, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

justismailmemon and others added 30 commits April 19, 2026 17:06
When a bundler splits a CSF4 story module (no `export default meta`)
into a separate chunk, the namespace object passed to `<Meta of={...} />`
differs by object identity from the one Storybook registered. The
existing default-export fallback in `DocsContext.resolveModuleExport`
cannot handle this case because CSF4 modules have no `default` key.

Fall back to identifying the CSF file via any of its story exports.
Reject the lookup when story exports span multiple CSF files. Guard
against individual CSF4 Story objects so `<Canvas of={Stories.Primary} />`
keeps resolving to a story.

Fixes #34159
Fixes #34373
Distilled from recurring failure modes in agent-authored PRs: comments as
investigation transcript, bending production to the test harness, unproven
environment assumptions, over-engineered defensive tests, convention drift in
generated files, and speculative generality.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Use ">= 4.9.x" (matching @storybook/react-webpack5 and the react
renderer) instead of ">=4.9.x", and refresh yarn.lock.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Collapse the Map build / Array.from / filter / map / Object.fromEntries
pipeline into one loop that builds the result object directly, preserving
last-wins rule deduplication. Drops the type cast as well.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
the looser `unknown[]` type doesn't work well with Generic + conditional type logic
@pull pull Bot locked and limited conversation to collaborators May 22, 2026
@pull pull Bot added the ⤵️ pull label May 22, 2026
@pull pull Bot merged commit b00fa59 into GesuBackups:next May 22, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants