diff --git a/CHANGELOG.prerelease.md b/CHANGELOG.prerelease.md index c717e55fc208..3a7fa37b61e3 100644 --- a/CHANGELOG.prerelease.md +++ b/CHANGELOG.prerelease.md @@ -1,3 +1,10 @@ +## 8.3.0-alpha.11 + +- Addon Vitest: Fix tests potentially not existing in non-isolate mode - [#28993](https://github.com/storybookjs/storybook/pull/28993), thanks @yannbf! +- Builder-Vite: Fix 'condition node never be used' warning - [#28989](https://github.com/storybookjs/storybook/pull/28989), thanks @valentinpalkovic! +- CLI: Update spawn options in proxy.ts to support Windows - [#28990](https://github.com/storybookjs/storybook/pull/28990), thanks @valentinpalkovic! +- Next.js-Vite: Update next and vite-plugin-storybook-nextjs dependencies - [#28994](https://github.com/storybookjs/storybook/pull/28994), thanks @valentinpalkovic! + ## 8.3.0-alpha.10 - Addon Vitest: Fix postinstall file types - [#28978](https://github.com/storybookjs/storybook/pull/28978), thanks @shilman! diff --git a/code/addons/a11y/package.json b/code/addons/a11y/package.json index fdcba3a5cbe5..b1bbf52aba24 100644 --- a/code/addons/a11y/package.json +++ b/code/addons/a11y/package.json @@ -29,8 +29,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/addons/actions/package.json b/code/addons/actions/package.json index 33835a0fc680..944845391a09 100644 --- a/code/addons/actions/package.json +++ b/code/addons/actions/package.json @@ -25,8 +25,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./decorator": { "types": "./dist/decorator.d.ts", diff --git a/code/addons/backgrounds/package.json b/code/addons/backgrounds/package.json index 92ec5675f2d8..3600e3f091fb 100644 --- a/code/addons/backgrounds/package.json +++ b/code/addons/backgrounds/package.json @@ -29,8 +29,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/addons/controls/package.json b/code/addons/controls/package.json index 887ab8da91d4..cc942eb9b14b 100644 --- a/code/addons/controls/package.json +++ b/code/addons/controls/package.json @@ -29,8 +29,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./manager": "./dist/manager.js", "./register": "./dist/manager.js", diff --git a/code/addons/docs/package.json b/code/addons/docs/package.json index dbfd2d528cba..15d2d5f223c5 100644 --- a/code/addons/docs/package.json +++ b/code/addons/docs/package.json @@ -28,8 +28,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/addons/essentials/package.json b/code/addons/essentials/package.json index ff752301f80b..9afb4738b258 100644 --- a/code/addons/essentials/package.json +++ b/code/addons/essentials/package.json @@ -25,8 +25,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./actions/preview": { "types": "./dist/actions/preview.d.ts", diff --git a/code/addons/highlight/package.json b/code/addons/highlight/package.json index 8862a129f3a5..a7962a3fd89a 100644 --- a/code/addons/highlight/package.json +++ b/code/addons/highlight/package.json @@ -27,8 +27,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/addons/interactions/package.json b/code/addons/interactions/package.json index 3f86b4ae8d4d..40d050cc272d 100644 --- a/code/addons/interactions/package.json +++ b/code/addons/interactions/package.json @@ -25,8 +25,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/addons/jest/package.json b/code/addons/jest/package.json index 47b3d3ddabe1..a9534c8c650b 100644 --- a/code/addons/jest/package.json +++ b/code/addons/jest/package.json @@ -31,8 +31,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./manager": "./dist/manager.js", "./register": "./dist/manager.js", diff --git a/code/addons/links/package.json b/code/addons/links/package.json index 88b1a100c120..a57a032b4887 100644 --- a/code/addons/links/package.json +++ b/code/addons/links/package.json @@ -25,8 +25,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./react": { "types": "./dist/react/index.d.ts", diff --git a/code/addons/measure/package.json b/code/addons/measure/package.json index 8167e28e9745..ed07b394e48c 100644 --- a/code/addons/measure/package.json +++ b/code/addons/measure/package.json @@ -28,8 +28,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/addons/onboarding/package.json b/code/addons/onboarding/package.json index d069925c714d..9e76d995ff2b 100644 --- a/code/addons/onboarding/package.json +++ b/code/addons/onboarding/package.json @@ -24,8 +24,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./manager": "./dist/manager.js", "./preset": "./dist/preset.js", diff --git a/code/addons/outline/package.json b/code/addons/outline/package.json index e690cc566dcd..a0fb5e0d2aba 100644 --- a/code/addons/outline/package.json +++ b/code/addons/outline/package.json @@ -31,8 +31,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/addons/storysource/package.json b/code/addons/storysource/package.json index d8e929f37c72..49b4fcd08f04 100644 --- a/code/addons/storysource/package.json +++ b/code/addons/storysource/package.json @@ -25,8 +25,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": "./dist/preset.js", "./manager": "./dist/manager.js", diff --git a/code/addons/themes/package.json b/code/addons/themes/package.json index f4c04f04e023..0dfe8184699a 100644 --- a/code/addons/themes/package.json +++ b/code/addons/themes/package.json @@ -30,8 +30,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/addons/toolbars/package.json b/code/addons/toolbars/package.json index 985469c96bae..8a2f204fa3e0 100644 --- a/code/addons/toolbars/package.json +++ b/code/addons/toolbars/package.json @@ -29,8 +29,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./manager": "./dist/manager.js", "./register": "./dist/manager.js", diff --git a/code/addons/viewport/package.json b/code/addons/viewport/package.json index 627866df24d4..ec7bce56b567 100644 --- a/code/addons/viewport/package.json +++ b/code/addons/viewport/package.json @@ -26,8 +26,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preview": { "types": "./dist/preview.d.ts", diff --git a/code/addons/vitest/package.json b/code/addons/vitest/package.json index 5c9947ff5495..c2db012abaa3 100644 --- a/code/addons/vitest/package.json +++ b/code/addons/vitest/package.json @@ -27,8 +27,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.js", - "require": "./dist/index.cjs", - "node": "./dist/index.cjs" + "require": "./dist/index.cjs" }, "./plugin": { "types": "./dist/plugin/index.d.ts", diff --git a/code/core/src/csf-tools/vitest-plugin/transformer.test.ts b/code/core/src/csf-tools/vitest-plugin/transformer.test.ts index a92af8c4cc2f..a96833accaf4 100644 --- a/code/core/src/csf-tools/vitest-plugin/transformer.test.ts +++ b/code/core/src/csf-tools/vitest-plugin/transformer.test.ts @@ -80,7 +80,7 @@ describe('transformer', () => { }; export default _meta; export const Story = {}; - const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath); + const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath); if (_isRunningFromThisFile) { _test("Story", _testStory("Story", Story, _meta, [])); } @@ -109,7 +109,7 @@ describe('transformer', () => { }; export default _meta; export const Story = {}; - const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath); + const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath); if (_isRunningFromThisFile) { _test("Story", _testStory("Story", Story, _meta, [])); } @@ -139,7 +139,7 @@ describe('transformer', () => { }; export default meta; export const Story = {}; - const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath); + const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath); if (_isRunningFromThisFile) { _test("Story", _testStory("Story", Story, meta, [])); } @@ -170,7 +170,7 @@ describe('transformer', () => { }; export default meta; export const Story = {}; - const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath); + const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath); if (_isRunningFromThisFile) { _test("Story", _testStory("Story", Story, meta, [])); } @@ -206,7 +206,7 @@ describe('transformer', () => { label: 'Primary Button' } }; - const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath); + const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath); if (_isRunningFromThisFile) { _test("Primary", _testStory("Primary", Primary, _meta, [])); } @@ -240,7 +240,7 @@ describe('transformer', () => { } }; export { Primary }; - const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath); + const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath); if (_isRunningFromThisFile) { _test("Primary", _testStory("Primary", Primary, _meta, [])); } @@ -276,7 +276,7 @@ describe('transformer', () => { }; export const Secondary = {}; export { Primary }; - const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath); + const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath); if (_isRunningFromThisFile) { _test("Secondary", _testStory("Secondary", Secondary, _meta, [])); _test("Primary", _testStory("Primary", Primary, _meta, [])); @@ -308,7 +308,7 @@ describe('transformer', () => { export default _meta; export const Story = {}; export const nonStory = 123; - const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath); + const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath); if (_isRunningFromThisFile) { _test("Story", _testStory("Story", Story, _meta, [])); } @@ -365,7 +365,7 @@ describe('transformer', () => { tags: ['include-me'] }; export const NotIncluded = {}; - const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath); + const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath); if (_isRunningFromThisFile) { _test("Included", _testStory("Included", Included, _meta, [])); } @@ -396,7 +396,7 @@ describe('transformer', () => { export const NotIncluded = { tags: ['exclude-me'] }; - const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath); + const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath); if (_isRunningFromThisFile) { _test("Included", _testStory("Included", Included, _meta, [])); } @@ -424,7 +424,7 @@ describe('transformer', () => { export const Skipped = { tags: ['skip-me'] }; - const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath); + const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath); if (_isRunningFromThisFile) { _test("Skipped", _testStory("Skipped", Skipped, _meta, ["skip-me"])); } @@ -456,7 +456,7 @@ describe('transformer', () => { }; export default meta; export const Primary = {}; - const _isRunningFromThisFile = import.meta.url.includes(_expect.getState().testPath ?? globalThis.__vitest_worker__.filepath); + const _isRunningFromThisFile = import.meta.url.includes(globalThis.__vitest_worker__.filepath ?? _expect.getState().testPath); if (_isRunningFromThisFile) { _test("Primary", _testStory("Primary", Primary, meta, [])); } diff --git a/code/core/src/csf-tools/vitest-plugin/transformer.ts b/code/core/src/csf-tools/vitest-plugin/transformer.ts index b4020ee4efcb..b2c66693b228 100644 --- a/code/core/src/csf-tools/vitest-plugin/transformer.ts +++ b/code/core/src/csf-tools/vitest-plugin/transformer.ts @@ -172,8 +172,10 @@ export async function vitestTransform({ // Combine testPath and filepath using the ?? operator const nullishCoalescingExpression = t.logicalExpression( '??', - testPathProperty, - filePathProperty + // TODO: switch order of testPathProperty and filePathProperty when the bug is fixed + // https://github.com/vitest-dev/vitest/issues/6367 (or probably just use testPathProperty) + filePathProperty, + testPathProperty ); // Create the final expression: import.meta.url.includes(...) diff --git a/code/deprecated/csf-tools/package.json b/code/deprecated/csf-tools/package.json index 599d9bfd2c05..0fce3b32aca9 100644 --- a/code/deprecated/csf-tools/package.json +++ b/code/deprecated/csf-tools/package.json @@ -24,8 +24,7 @@ ".": { "types": "./shim.d.ts", "import": "./shim.mjs", - "require": "./shim.js", - "node": "./shim.js" + "require": "./shim.js" }, "./package.json": "./package.json" }, diff --git a/code/deprecated/router/package.json b/code/deprecated/router/package.json index 4047709e9c4f..fbca3c35f5de 100644 --- a/code/deprecated/router/package.json +++ b/code/deprecated/router/package.json @@ -24,8 +24,7 @@ ".": { "types": "./shim.d.ts", "import": "./shim.mjs", - "require": "./shim.js", - "node": "./shim.js" + "require": "./shim.js" }, "./utils": { "types": "./utils.d.ts", diff --git a/code/deprecated/theming/package.json b/code/deprecated/theming/package.json index 98b760b07a03..506816ea213d 100644 --- a/code/deprecated/theming/package.json +++ b/code/deprecated/theming/package.json @@ -24,8 +24,7 @@ ".": { "types": "./shim.d.ts", "import": "./shim.mjs", - "require": "./shim.js", - "node": "./shim.js" + "require": "./shim.js" }, "./create": { "types": "./create.d.ts", diff --git a/code/frameworks/experimental-nextjs-vite/package.json b/code/frameworks/experimental-nextjs-vite/package.json index 40c4c472e9b3..0b5dd35ab988 100644 --- a/code/frameworks/experimental-nextjs-vite/package.json +++ b/code/frameworks/experimental-nextjs-vite/package.json @@ -102,12 +102,12 @@ "vite-plugin-storybook-nextjs": "^1.0.0" }, "peerDependencies": { - "next": "^14.2.5", + "next": "^14.1.0", "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "react-dom": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta", "storybook": "workspace:^", "vite": "^5.0.0", - "vite-plugin-storybook-nextjs": "^1.0.0" + "vite-plugin-storybook-nextjs": "^1.0.8" }, "peerDependenciesMeta": { "typescript": { diff --git a/code/lib/blocks/package.json b/code/lib/blocks/package.json index 55045468aaf5..6dae795131b0 100644 --- a/code/lib/blocks/package.json +++ b/code/lib/blocks/package.json @@ -24,8 +24,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./package.json": "./package.json" }, diff --git a/code/lib/cli/src/proxy.ts b/code/lib/cli/src/proxy.ts index 33feae172bbe..12cac7558ae5 100644 --- a/code/lib/cli/src/proxy.ts +++ b/code/lib/cli/src/proxy.ts @@ -12,7 +12,7 @@ if (['dev', 'build'].includes(args[0])) { ? [`create-storybook@${versions.storybook}`, ...args.slice(1)] : [`@storybook/cli@${versions.storybook}`, ...args]; const command = ['npx', '--yes', ...proxiedArgs]; - const child = spawn(command[0], command.slice(1), { stdio: 'inherit' }); + const child = spawn(command[0], command.slice(1), { stdio: 'inherit', shell: true }); child.on('exit', (code) => { if (code != null) { process.exit(code); diff --git a/code/lib/instrumenter/package.json b/code/lib/instrumenter/package.json index c251afe615cc..eea798708468 100644 --- a/code/lib/instrumenter/package.json +++ b/code/lib/instrumenter/package.json @@ -24,8 +24,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./package.json": "./package.json" }, diff --git a/code/lib/source-loader/package.json b/code/lib/source-loader/package.json index 3cca8c89b7fc..450007376506 100644 --- a/code/lib/source-loader/package.json +++ b/code/lib/source-loader/package.json @@ -25,8 +25,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./package.json": "./package.json" }, diff --git a/code/package.json b/code/package.json index 973c0dea2b29..9d3d56dd0a3c 100644 --- a/code/package.json +++ b/code/package.json @@ -294,5 +294,6 @@ "Dependency Upgrades" ] ] - } + }, + "deferredNextVersion": "8.3.0-alpha.11" } diff --git a/code/renderers/html/package.json b/code/renderers/html/package.json index d62b531142b1..2ebe631a73cf 100644 --- a/code/renderers/html/package.json +++ b/code/renderers/html/package.json @@ -23,8 +23,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": "./preset.js", "./dist/entry-preview.mjs": "./dist/entry-preview.mjs", diff --git a/code/renderers/preact/package.json b/code/renderers/preact/package.json index 83c4b49d7836..48f6d9e28858 100644 --- a/code/renderers/preact/package.json +++ b/code/renderers/preact/package.json @@ -23,8 +23,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": "./preset.js", "./dist/entry-preview.mjs": "./dist/entry-preview.mjs", diff --git a/code/renderers/react/package.json b/code/renderers/react/package.json index 5f2d0b407586..d145900dbed1 100644 --- a/code/renderers/react/package.json +++ b/code/renderers/react/package.json @@ -23,14 +23,12 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./experimental-playwright": { "types": "./dist/playwright.d.ts", "import": "./dist/playwright.mjs", - "require": "./dist/playwright.js", - "node": "./dist/playwright.js" + "require": "./dist/playwright.js" }, "./preset": "./preset.js", "./dist/entry-preview.mjs": "./dist/entry-preview.mjs", diff --git a/code/renderers/server/package.json b/code/renderers/server/package.json index 679baa194fef..692ab399e006 100644 --- a/code/renderers/server/package.json +++ b/code/renderers/server/package.json @@ -23,8 +23,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": "./preset.js", "./dist/entry-preview.mjs": "./dist/entry-preview.mjs", diff --git a/code/renderers/svelte/package.json b/code/renderers/svelte/package.json index 02964a4e8cbe..819080444635 100644 --- a/code/renderers/svelte/package.json +++ b/code/renderers/svelte/package.json @@ -23,14 +23,12 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./experimental-playwright": { "types": "./dist/playwright.d.ts", "import": "./dist/playwright.mjs", - "require": "./dist/playwright.js", - "node": "./dist/playwright.js" + "require": "./dist/playwright.js" }, "./preset": "./preset.js", "./dist/entry-preview.mjs": "./dist/entry-preview.mjs", diff --git a/code/renderers/vue3/package.json b/code/renderers/vue3/package.json index 84af4717c832..76917ecd8c20 100644 --- a/code/renderers/vue3/package.json +++ b/code/renderers/vue3/package.json @@ -23,14 +23,12 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./experimental-playwright": { "types": "./dist/playwright.d.ts", "import": "./dist/playwright.mjs", - "require": "./dist/playwright.js", - "node": "./dist/playwright.js" + "require": "./dist/playwright.js" }, "./preset": "./preset.js", "./dist/entry-preview.mjs": "./dist/entry-preview.mjs", diff --git a/code/renderers/web-components/package.json b/code/renderers/web-components/package.json index 26cc579d4699..3b82c45ce688 100644 --- a/code/renderers/web-components/package.json +++ b/code/renderers/web-components/package.json @@ -26,8 +26,7 @@ ".": { "types": "./dist/index.d.ts", "import": "./dist/index.mjs", - "require": "./dist/index.js", - "node": "./dist/index.js" + "require": "./dist/index.js" }, "./preset": "./preset.js", "./dist/entry-preview.mjs": "./dist/entry-preview.mjs", diff --git a/code/yarn.lock b/code/yarn.lock index 3847e2873b94..c66db4d13c36 100644 --- a/code/yarn.lock +++ b/code/yarn.lock @@ -6157,12 +6157,12 @@ __metadata: typescript: "npm:^5.3.2" vite-plugin-storybook-nextjs: "npm:^1.0.0" peerDependencies: - next: ^14.2.5 + next: ^14.1.0 react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-beta storybook: "workspace:^" vite: ^5.0.0 - vite-plugin-storybook-nextjs: ^1.0.0 + vite-plugin-storybook-nextjs: ^1.0.8 dependenciesMeta: sharp: optional: true diff --git a/docs/get-started/frameworks/nextjs.mdx b/docs/get-started/frameworks/nextjs.mdx index 5a1efc07fc29..597522f03020 100644 --- a/docs/get-started/frameworks/nextjs.mdx +++ b/docs/get-started/frameworks/nextjs.mdx @@ -88,6 +88,10 @@ Storybook for Next.js is a [framework](../../contribute/framework.mdx) that make You can use our freshly baked, experimental `@storybook/experimental-nextjs-vite` framework, which is based on Vite and removes the need for Webpack and Babel. It supports all of the features documented here. + + Using the Next.js framework with Vite requires Next.js 14.1.0 or later. + + {/* prettier-ignore-start */} diff --git a/docs/versions/next.json b/docs/versions/next.json index ee26c6ebb94d..afb1caed4c9a 100644 --- a/docs/versions/next.json +++ b/docs/versions/next.json @@ -1 +1 @@ -{"version":"8.3.0-alpha.10","info":{"plain":"- Addon Vitest: Fix postinstall file types - [#28978](https://github.com/storybookjs/storybook/pull/28978), thanks @shilman!\n- CLI: Fix dedent import in package managers - [#28980](https://github.com/storybookjs/storybook/pull/28980), thanks @shilman!\n- Core: De-duplicate babel use in core - [#28972](https://github.com/storybookjs/storybook/pull/28972), thanks @ndelangen!\n- Vitest: Fix add command - [#28975](https://github.com/storybookjs/storybook/pull/28975), thanks @ghengeveld!"}} +{"version":"8.3.0-alpha.11","info":{"plain":"- Addon Vitest: Fix tests potentially not existing in non-isolate mode - [#28993](https://github.com/storybookjs/storybook/pull/28993), thanks @yannbf!\n- Builder-Vite: Fix 'condition node never be used' warning - [#28989](https://github.com/storybookjs/storybook/pull/28989), thanks @valentinpalkovic!\n- CLI: Update spawn options in proxy.ts to support Windows - [#28990](https://github.com/storybookjs/storybook/pull/28990), thanks @valentinpalkovic!\n- Next.js-Vite: Update next and vite-plugin-storybook-nextjs dependencies - [#28994](https://github.com/storybookjs/storybook/pull/28994), thanks @valentinpalkovic!"}}