-
-
Notifications
You must be signed in to change notification settings - Fork 58
feat(create-rslib): bump Storybook to v10 #1309
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
Conversation
0d96a81 to
aa5ccf4
Compare
✅ Deploy Preview for rslib ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
06ad27d to
c91b577
Compare
402cd65 to
468d58c
Compare
6428abe to
5890e79
Compare
5890e79 to
5c8e409
Compare
5c8e409 to
53054c0
Compare
ea24686 to
21ea6e2
Compare
Edited/Blocked NotificationRenovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR. You can manually request rebase by checking the rebase/retry box above. |
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.
Pull request overview
This PR upgrades Storybook from v9 to v10 across all create-rslib templates and examples, aligning with Storybook's latest major version release. The upgrade includes updating all Storybook-related packages and refactoring configuration files to use ESM-native module resolution.
Key Changes:
- Storybook packages updated from
^9.1.16to^10.1.0across all templates - Storybook Rsbuild packages updated from
^2.1.6to^3.0.0in templates (aligned with Storybook v10 compatibility) - Refactored
getAbsolutePathfunction in.storybook/mainfiles to useimport.meta.resolve()instead of CommonJSrequire.resolve() - Added version compatibility table in documentation to guide users on migration from earlier Storybook versions
Reviewed changes
Copilot reviewed 36 out of 37 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| website/docs/en/guide/advanced/storybook.mdx | Added Storybook Rsbuild version mapping table and moved tip about create-rslib |
| website/docs/zh/guide/advanced/storybook.mdx | Chinese version of documentation changes with version mapping table |
| packages/create-rslib/template-*/package.json | Updated Storybook packages to v10 and Rsbuild addons to v3 across all templates |
| packages/create-rslib/template-/.storybook/main. | Refactored getAbsolutePath to use import.meta.resolve() for ESM compatibility |
| packages/create-rslib/fragments/tools/storybook-*/package.json | Updated Storybook packages in fragments for both React and Vue |
| packages/create-rslib/fragments/tools/storybook-/.storybook/main. | Refactored getAbsolutePath in fragment configurations |
| examples/vue-component-bundleless/package.json | Updated Storybook core packages to v10 (incomplete - addons not updated) |
| examples/module-federation/mf-react-component/package.json | Updated Storybook core package to v10 (incomplete - addons not updated) |
| pnpm-lock.yaml | Reflected updated dependency versions and resolution changes |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
21ea6e2 to
df41604
Compare
df41604 to
f880479
Compare
bump Storybook to v10, bump Storybook Rsbuild to v3.
This PR contains the following updates:
^9.1.16->^10.1.0^9.1.16->^10.1.0^9.1.16->^10.1.0^9.1.16->^10.1.0^9.1.16->^10.1.0Release Notes
storybookjs/storybook (@storybook/addon-docs)
v10.1.0Compare Source
Storybook 10.1 focuses on two key improvements: installation and accessibility:
The release also contains compatibility fixes for:
Finally, it contains two highly-requested experimental features:
List of all updates
getDocsUrlfor canary versions - #33128, thanks @ghengeveld!Listboxcomponent toActionListand use it inTagsFilterPanel- #33140, thanks @ghengeveld!getDocsUrlto add a defaultrefparam and setguideas ref for links in the Guide - #33111, thanks @ghengeveld!file://to middlewareimportfor Windows support - #32955, thanks @ndelangen!themes.normalaccording to user preference and exportgetPreferredColorScheme- #28721, thanks @elisezhg!v10.0.8Compare Source
custom-elements.jsonnot being loaded - #33045, thanks @ndelangen!v10.0.7Compare Source
v10.0.6Compare Source
v10.0.5Compare Source
v10.0.4Compare Source
modulenot defined in ESM - #32940, thanks @ndelangen!v10.0.3Compare Source
@storybook/experimental-nextjs-viteinno-renderer-packagesrule - #32909, thanks @ndelangen!v10.0.2Compare Source
optimizeViteDepsfor addon-docs and addon-vitest - #32881, thanks @ndelangen!v10.0.1Compare Source
v10.0.0Compare Source
Storybook 10 contains one breaking change: it’s ESM-only. This simplifies our distribution and reduces install size by 29% while simultaneously unminifying dist code for easier debugging.
It also includes features to level up your UI development, documentation, and testing workflows:
List of all updates
manager.jsentry-file - #32780, thanks @ndelangen!entry.polyfillsundefined error - #32230, thanks @sk-pub!require- #32558, thanks @ndelangen!devwhen it should fixed - #32457, thanks @ndelangen!globbywithtinyglobby- #31407, thanks @benmccann!screenusage in docs mode - #32851, thanks @yannbf!external-globals-pluginhandleundefinedcache dir - #32579, thanks @walkerburgin!index.htmlto sub directory - #32259, thanks @ndelangen!subtypean optional property on an index input - #32602, thanks @JReinhold!BAILstate from showing in interactions panel when switching stories - #32172, thanks @ghengeveld!mllytoexsolve- #32383, thanks @mrginglymus!exsolveresolveModulePathforsafeResolveModule- #32477, thanks @mrginglymus!Arc can't get every window- #32508, thanks @ndelangen!.tsxfiles emit.d.tstype files - #32461, thanks @mrginglymus!SyntaxHighlighter(createElement) - #32800, thanks @mrginglymus!fs-extrawith native APIs - #32296, thanks @y-hsgw!fileURLToPathfor module resolution in preset - #32386, thanks @ndelangen!nodeentry point - #32534, thanks @ndelangen!empathicoverfind-up- #31338, thanks @beeequeue!Component- #31394, thanks @xeho91!$app/state- #31369, thanks @xeho91!set_context_after_initerror when experimental async is enabled - #32513, thanks @Jakeii!open- #32484, thanks @ndelangen!boxencommandergiget- #32469, thanks @ndelangen!storybookjs/storybook (@storybook/addon-onboarding)
v10.1.0Compare Source
10.1.0
Storybook 10.1 focuses on two key improvements: installation and accessibility:
The release also contains compatibility fixes for:
Finally, it contains two highly-requested experimental features:
List of all updates
v10.0.8Compare Source
10.0.8
v10.0.7Compare Source
10.0.7
[
v10.0.6](https://redirect.gConfiguration
📅 Schedule: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.