diff --git a/CHANGELOG.md b/CHANGELOG.md index 63c0875f28b1..20d3f59c3f95 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 10.0.1 + +- Presets: Fix incorrect imports - [#32875](https://github.com/storybookjs/storybook/pull/32875), thanks @ndelangen! +- Upgrade: Satellite compatible with 10.1 prerelease - [#32877](https://github.com/storybookjs/storybook/pull/32877), thanks @ndelangen! + ## 10.0.0 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. diff --git a/code/package.json b/code/package.json index 153ae6d1f5fa..1421ff873053 100644 --- a/code/package.json +++ b/code/package.json @@ -283,5 +283,6 @@ "Dependency Upgrades" ] ] - } + }, + "deferredNextVersion": "10.0.1" } diff --git a/code/presets/create-react-app/preset.js b/code/presets/create-react-app/preset.js index 4df73b330ffd..2b8395cdb631 100644 --- a/code/presets/create-react-app/preset.js +++ b/code/presets/create-react-app/preset.js @@ -1 +1 @@ -export * from './src/index.js'; +export * from './dist/index.js'; diff --git a/code/presets/react-webpack/preset.js b/code/presets/react-webpack/preset.js index 4df73b330ffd..2b8395cdb631 100644 --- a/code/presets/react-webpack/preset.js +++ b/code/presets/react-webpack/preset.js @@ -1 +1 @@ -export * from './src/index.js'; +export * from './dist/index.js'; diff --git a/code/presets/server-webpack/preset.js b/code/presets/server-webpack/preset.js index 4df73b330ffd..2b8395cdb631 100644 --- a/code/presets/server-webpack/preset.js +++ b/code/presets/server-webpack/preset.js @@ -1 +1 @@ -export * from './src/index.js'; +export * from './dist/index.js'; diff --git a/code/presets/server-webpack/src/index.ts b/code/presets/server-webpack/src/index.ts index d2ad2fea69cc..97eaff7a63ed 100644 --- a/code/presets/server-webpack/src/index.ts +++ b/code/presets/server-webpack/src/index.ts @@ -10,14 +10,14 @@ export const webpack: StorybookConfig['webpack'] = (config) => { { type: 'javascript/auto', test: /\.stories\.json$/, - use: fileURLToPath(import.meta.resolve('@storybook/preset-server-webpack/webpack-loader')), + use: fileURLToPath(import.meta.resolve('@storybook/preset-server-webpack/loader')), }, { type: 'javascript/auto', test: /\.stories\.ya?ml/, use: [ - fileURLToPath(import.meta.resolve('@storybook/preset-server-webpack/webpack-loader')), + fileURLToPath(import.meta.resolve('@storybook/preset-server-webpack/loader')), { loader: fileURLToPath(import.meta.resolve('yaml-loader')), options: { asJSON: true }, diff --git a/docs/addons/addon-migration-guide.mdx b/docs/addons/addon-migration-guide.mdx index 9984decc5e57..14a4fcb1f250 100644 --- a/docs/addons/addon-migration-guide.mdx +++ b/docs/addons/addon-migration-guide.mdx @@ -57,7 +57,7 @@ Here are the changes in version 10.0 that impact addon development. ### ESM-only builds -Storybook 10 requires all addons to be built as ESM-only. This change simplifies the build process and reduces maintenance overhead. You'll need to make many changes to `tsup.config.ts`, so it can be easier to copy the reference file in the [`addon-kit` repository](https://github.com/storybookjs/addon-kit/blob/esm-only/tsup.config.ts). +Storybook 10 requires all addons to be built as ESM-only. This change simplifies the build process and reduces maintenance overhead. You'll need to make many changes to `tsup.config.ts`, so it can be easier to copy the reference file in the [`addon-kit` repository](https://github.com/storybookjs/addon-kit/blob/main/tsup.config.ts). This update brings the following changes: * The Node target moves from Node 20.0 to Node 20.19 diff --git a/docs/releases/migration-guide.mdx b/docs/releases/migration-guide.mdx index 27f270342a98..3bb05ef49496 100644 --- a/docs/releases/migration-guide.mdx +++ b/docs/releases/migration-guide.mdx @@ -7,15 +7,15 @@ sidebar: [full-migration-notes]: https://github.com/storybookjs/storybook/blob/next/MIGRATION.md#from-version-9x-to-1000 -Storybook 10 is a breaking maintenance release focused on ESM-only package distribution. Its main features include: +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. -- 💎 ESM-only to reduce install size -- ↗️ CSF Next preview with better typesafety and autocompletion -- 🏷 Improved tags-based filtering +It also includes features to level up your UI development, documentation, and testing workflows: -Coming soon: - -- 🧪 Familiar and ergonomic CSF test functions (experimental) +- 🧩 Module automocking for easier testing +- 🏭 Typesafe CSF factories Preview for React +- 💫 UI editing and sharing optimizations +- 🏷️ Tag filtering exclusion and configuration for sidebar management +- 🔀 Svelte async component support and more This guide is meant to help you **upgrade from Storybook 9.x to 10** successfully! diff --git a/docs/versions/latest.json b/docs/versions/latest.json index 6b8e2ae7f8c6..2a443378c20a 100644 --- a/docs/versions/latest.json +++ b/docs/versions/latest.json @@ -1 +1 @@ -{"version":"10.0.0","info":{"plain":"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.\nIt also includes features to level up your UI development, documentation, and testing workflows:\n\n- 🧩 Module automocking for easier testing\n- 🏭 Typesafe CSF factories Preview for React\n- 💫 UI editing and sharing optimizations\n- 🏷️ Tag filtering exclusion and configuration for sidebar management\n- 🔀 Next 16, Vitest 4, Svelte async components, and more!"}} \ No newline at end of file +{"version":"10.0.1","info":{"plain":"- Presets: Fix incorrect imports - [#32875](https://github.com/storybookjs/storybook/pull/32875), thanks @ndelangen!\n- Upgrade: Satellite compatible with 10.1 prerelease - [#32877](https://github.com/storybookjs/storybook/pull/32877), thanks @ndelangen!"}} \ No newline at end of file diff --git a/docs/versions/next.json b/docs/versions/next.json index 7c07e965588a..bbd723827814 100644 --- a/docs/versions/next.json +++ b/docs/versions/next.json @@ -1 +1 @@ -{"version":"10.0.0-rc.4","info":{"plain":"- Core: Add `experimental_devServer` preset - [#32862](https://github.com/storybookjs/storybook/pull/32862), thanks @yannbf!\n- Core: Fix stepping back through story interactions panel - [#32793](https://github.com/storybookjs/storybook/pull/32793), thanks @ia319!\n- Core: Join framework preset path with slash - [#32838](https://github.com/storybookjs/storybook/pull/32838), thanks @brandonroberts!\n- Telemetry: Fix preview-first-load event - [#32859](https://github.com/storybookjs/storybook/pull/32859), thanks @shilman!"}} \ No newline at end of file +{"version":"10.1.0-alpha.0","info":{"plain":""}} \ No newline at end of file