Repository navigation
Support Storybook 11 and CSF Next - #17
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 35 minutes. View limit detailsLimit details: You’ve used the included review currently available. Review configuration: ⚙️ Run configuration
⛔ Files ignored due to path filters (1)
📒 Files selected for processing (9)
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 |
commit: |
There was a problem hiding this comment.
🟢 Approval recommended
The factory follows Storybook’s established API and the supported versions, exports, documentation, registry, and tests are consistently updated.
0 open findings
What changed in this PR
Adds Storybook 11 and CSF Next support while retaining compatibility with Storybook 9 and 10.
Changes:
- Adds a typed
kahraman()preview-addon factory. - Updates Storybook, Node.js requirements, tests, CI, and documentation.
- Regenerates jsrepo metadata and adds release notes.
| File | Description |
|---|---|
src/index.ts |
Exports the CSF Next addon factory. |
test/addon.test.ts |
Tests composition, typing, diagnostics, and legacy exports. |
package.json |
Updates Storybook compatibility and Node.js requirements. |
pnpm-lock.yaml |
Locks Storybook 11 alpha dependencies. |
.github/workflows/ci.yml |
Tests Node 22/24 and Storybook 9/10 compatibility. |
README.md |
Documents support and CSF Next setup. |
vite.config.ts |
Updates test-scope commentary. |
jsrepo.config.ts |
Includes addon tests in vendored sources. |
registry.json |
Regenerates preview dependencies and test metadata. |
.changeset/storybook-11.md |
Records the minor release changes. |
Files not reviewed (1)
- pnpm-lock.yaml: Generated file
🧠 Review effort: Balanced
Give feedback about Copilot approvals in this survey to enter a drawing for a $150 gift card.
Summary
Closes #14.
11.0.0-alpha.4, the currentnextrelease, with the updated lockfile.kahraman()factory usingdefinePreviewAddon, following Addon Kit. CSF Next previews can registeraddons: [kahraman()]and get typedparameters.kahraman.kahraman/previewannotation. Diagnostics stay opt-in.Migration scope
This repository has no local
.storybookinstance, renderer dependency, stories, manager UI, or preset. There is no local Storybook build to migrate, and the removed manager APIs do not apply. The existing ESM build, TypeScript 7, Vite 8, and Vitest 4 already meet the relevant tool requirements. The release workflow already uses OIDC trusted publishing.Reviewed the addon migration guide, Storybook migration guide, and Addon Kit factory implementation.
Validation
pnpm install --frozen-lockfileandgit diff --checkpassed.The new tests use real Storybook composition and Testing Library configuration APIs, without mocks. They do not render stories or exercise browser DOM interactions; that remains the existing consumer-owned test boundary.