diff --git a/CHANGELOG.prerelease.md b/CHANGELOG.prerelease.md index 89b57f4aec60..80b3f5029afb 100644 --- a/CHANGELOG.prerelease.md +++ b/CHANGELOG.prerelease.md @@ -1,3 +1,16 @@ +## 7.2.0-alpha.1 + +- Addon: Create @storybook/addon-themes - [#23524](https://github.com/storybookjs/storybook/pull/23524), thanks [@Integrayshaun](https://github.com/Integrayshaun)! +- Angular: Fix initialization of Storybook in Angular 16.1 - [#23598](https://github.com/storybookjs/storybook/pull/23598), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)! +- CLI: Gracefully shutdown and cleanup execa child processes - [#23538](https://github.com/storybookjs/storybook/pull/23538), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)! +- Dependencies: Downgrade `jest-mock` - [#23597](https://github.com/storybookjs/storybook/pull/23597), thanks [@ndelangen](https://github.com/ndelangen)! +- Dependencies: Upgrade simple-update-notifier - [#23396](https://github.com/storybookjs/storybook/pull/23396), thanks [@dartess](https://github.com/dartess)! +- Maintainance: Fix codeowner docs glob - [#23610](https://github.com/storybookjs/storybook/pull/23610), thanks [@kasperpeulen](https://github.com/kasperpeulen)! +- Storyshots: fix broken storyshots with angular - [#23555](https://github.com/storybookjs/storybook/pull/23555), thanks [@mattlewis92](https://github.com/mattlewis92)! +- TypeScript: Added `expanded` to `CoreCommon_StorybookRefs` to fix typescript errors - [#23488](https://github.com/storybookjs/storybook/pull/23488), thanks [@DotwoodMedia](https://github.com/DotwoodMedia)! +- TypeScript: Downgrade to the last version of type-fest that doesn't need typescript 5.0 - [#23574](https://github.com/storybookjs/storybook/pull/23574), thanks [@ndelangen](https://github.com/ndelangen)! +- Vue2: Source Decorator reactivity - [#23149](https://github.com/storybookjs/storybook/pull/23149), thanks [@chakAs3](https://github.com/chakAs3)! + ## 7.2.0-alpha.0 - Angular: Make enableProdMode optional - [#23489](https://github.com/storybookjs/storybook/pull/23489), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)! diff --git a/CODEOWNERS b/CODEOWNERS index 447c21101fb2..de427497aba2 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -6,7 +6,7 @@ .yarnrc.yml @ndelangen @JReinhold # Docs -docs/ @kylegach @jonniebigodes +/docs/ @kylegach @jonniebigodes # Scripts /scripts/ @ndelangen @kasperpeulen @@ -39,8 +39,8 @@ docs/ @kylegach @jonniebigodes # Frameworks /code/frameworks/angular/ @valentinpalkovic @yannbf -/code/frameworks/html-vite/ @kasperpeulen @JReinhold -/code/frameworks/html-webpack5/ @kasperpeulen @JReinhold +/code/frameworks/html-vite/ @kasperpeulen @JReinhold +/code/frameworks/html-webpack5/ @kasperpeulen @JReinhold /code/frameworks/nextjs/ @valentinpalkovic @kasperpeulen @yannbf /code/frameworks/react-vite/ @valentinpalkovic @kasperpeulen /code/frameworks/react-webpack5/ @valentinpalkovic @kasperpeulen @@ -61,7 +61,7 @@ docs/ @kylegach @jonniebigodes /code/lib/codemod/ @kasperpeulen @ndelangen /code/lib/core-common/ @ndelangen @yannbf /code/lib/core-events/ @ndelangen @kasperpeulen -/code/lib/core-server/ @ndelangen @JReinhold @tmeasday @shilman +/code/lib/core-server/ @ndelangen @JReinhold @tmeasday @shilman /code/lib/core-webpack/ @valentinpalkovic @ndelangen /code/lib/csf-plugin/ @ndelangen @valentinpalkovic /code/lib/csf-tools/ @kasperpeulen @shilman @@ -71,7 +71,7 @@ docs/ @kylegach @jonniebigodes /code/lib/node-logger/ @yannbf @ndelangen /code/lib/preview/ @ndelangen @kasperpeulen /code/lib/preview-api/ @yannbf @ndelangen @tmeasday -/code/lib/react-dom-shim/ @ndelangen @valentinpalkovic @tmeasday +/code/lib/react-dom-shim/ @ndelangen @valentinpalkovic @tmeasday /code/lib/router/ @ndelangen @JReinhold /code/lib/telemetry/ @shilman @yannbf @ndelangen /code/lib/theming/ @cdedreuille @ndelangen @JReinhold diff --git a/code/package.json b/code/package.json index cbe436f7b86d..87ce458ee112 100644 --- a/code/package.json +++ b/code/package.json @@ -326,5 +326,6 @@ "Dependency Upgrades" ] ] - } + }, + "deferredNextVersion": "7.2.0-alpha.1" } diff --git a/code/presets/vue3-webpack/src/framework-preset-vue3-docs.ts b/code/presets/vue3-webpack/src/framework-preset-vue3-docs.ts index 5bdbd97ff75d..b3fd1c028be7 100644 --- a/code/presets/vue3-webpack/src/framework-preset-vue3-docs.ts +++ b/code/presets/vue3-webpack/src/framework-preset-vue3-docs.ts @@ -16,7 +16,7 @@ export const webpackFinal: StorybookConfig['webpackFinal'] = (config, options) = } }); - config.module.rules.push({ + config.module?.rules?.push({ test: /\.vue$/, loader: require.resolve('vue-docgen-loader', { paths: [require.resolve('@storybook/preset-vue3-webpack')], @@ -24,7 +24,7 @@ export const webpackFinal: StorybookConfig['webpackFinal'] = (config, options) = enforce: 'post', options: { docgenOptions: { - alias: config.resolve.alias, + alias: config.resolve?.alias, ...vueDocgenOptions, }, }, diff --git a/code/presets/vue3-webpack/src/framework-preset-vue3.ts b/code/presets/vue3-webpack/src/framework-preset-vue3.ts index 8ce312123208..df7f684be456 100644 --- a/code/presets/vue3-webpack/src/framework-preset-vue3.ts +++ b/code/presets/vue3-webpack/src/framework-preset-vue3.ts @@ -6,7 +6,7 @@ export const webpack: StorybookConfig['webpack'] = (config) => { return { ...config, plugins: [ - ...config.plugins, + ...(config.plugins ?? []), new VueLoaderPlugin(), new DefinePlugin({ __VUE_OPTIONS_API__: JSON.stringify(true), @@ -16,7 +16,7 @@ export const webpack: StorybookConfig['webpack'] = (config) => { module: { ...config.module, rules: [ - ...config.module.rules, + ...(config.module?.rules ?? []), { test: /\.vue$/, loader: require.resolve('vue-loader'), @@ -51,9 +51,9 @@ export const webpack: StorybookConfig['webpack'] = (config) => { }, resolve: { ...config.resolve, - extensions: [...config.resolve.extensions, '.vue'], + extensions: [...(config.resolve?.extensions ?? []), '.vue'], alias: { - ...config.resolve.alias, + ...config.resolve?.alias, vue$: require.resolve('vue/dist/vue.esm-bundler.js'), }, }, diff --git a/code/presets/vue3-webpack/tsconfig.json b/code/presets/vue3-webpack/tsconfig.json index 40813306fd49..a7475d986d4d 100644 --- a/code/presets/vue3-webpack/tsconfig.json +++ b/code/presets/vue3-webpack/tsconfig.json @@ -3,7 +3,7 @@ "compilerOptions": { "resolveJsonModule": true, "skipLibCheck": true, - "strict": false + "strict": true }, "include": ["src/**/*"] } diff --git a/docs/versions/next.json b/docs/versions/next.json index 204c1ccdc10b..3bd788e30428 100644 --- a/docs/versions/next.json +++ b/docs/versions/next.json @@ -1,6 +1 @@ -{ - "version": "7.2.0-alpha.0", - "info": { - "plain": "- Angular: Make enableProdMode optional - [#23489](https://github.com/storybookjs/storybook/pull/23489), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)!\n- Router: Support RegExp in Route component - [#23292](https://github.com/storybookjs/storybook/pull/23292), thanks [@ndelangen](https://github.com/ndelangen)!\n- UI: Improve tabs component, more type correct, allow for FC as title - [#23288](https://github.com/storybookjs/storybook/pull/23288), thanks [@ndelangen](https://github.com/ndelangen)!\n- Addons: Improve code quality by using title as FC & sharing state via useAddonState - [#23298](https://github.com/storybookjs/storybook/pull/23298), thanks [@ndelangen](https://github.com/ndelangen)!\n- InteractionsAddon: Improve code quality by using title as FC & sharing state via useAddonState - [#23291](https://github.com/storybookjs/storybook/pull/23291), thanks [@ndelangen](https://github.com/ndelangen)!\n- UI: Add storyStatus to sidebar UI - [#23342](https://github.com/storybookjs/storybook/pull/23342), thanks [@ndelangen](https://github.com/ndelangen)!\n- Addon API: Add experimental page addon type - [#23307](https://github.com/storybookjs/storybook/pull/23307), thanks [@ndelangen](https://github.com/ndelangen)!\n- UI: refactor Canvas component so we can improve types for PREVIEW addons and TAB addons - [#23311](https://github.com/storybookjs/storybook/pull/23311), thanks [@ndelangen](https://github.com/ndelangen)!\n- UI: Improve Button layout and props - [#23356](https://github.com/storybookjs/storybook/pull/23356), thanks [@cdedreuille](https://github.com/cdedreuille)!\n- Dependencies: Remove references to api and the 2 deprecated channel packages - [#23384](https://github.com/storybookjs/storybook/pull/23384), thanks [@ndelangen](https://github.com/ndelangen)!\n- UI: Show the story status in the search results - [#23441](https://github.com/storybookjs/storybook/pull/23441), thanks [@ndelangen](https://github.com/ndelangen)!\n- UI: Create new form elements in the new Core UI (Input, TextArea, Select) - [#23469](https://github.com/storybookjs/storybook/pull/23469), thanks [@cdedreuille](https://github.com/cdedreuille)!\n- CLI: Improve support of mono repositories - [#23458](https://github.com/storybookjs/storybook/pull/23458), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)!\n" - } -} +{"version":"7.2.0-alpha.1","info":{"plain":"- Addon: Create @storybook/addon-themes - [#23524](https://github.com/storybookjs/storybook/pull/23524), thanks [@Integrayshaun](https://github.com/Integrayshaun)!\n- Angular: Fix initialization of Storybook in Angular 16.1 - [#23598](https://github.com/storybookjs/storybook/pull/23598), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)!\n- CLI: Gracefully shutdown and cleanup execa child processes - [#23538](https://github.com/storybookjs/storybook/pull/23538), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)!\n- Dependencies: Downgrade `jest-mock` - [#23597](https://github.com/storybookjs/storybook/pull/23597), thanks [@ndelangen](https://github.com/ndelangen)!\n- Dependencies: Upgrade simple-update-notifier - [#23396](https://github.com/storybookjs/storybook/pull/23396), thanks [@dartess](https://github.com/dartess)!\n- Maintainance: Fix codeowner docs glob - [#23610](https://github.com/storybookjs/storybook/pull/23610), thanks [@kasperpeulen](https://github.com/kasperpeulen)!\n- Storyshots: fix broken storyshots with angular - [#23555](https://github.com/storybookjs/storybook/pull/23555), thanks [@mattlewis92](https://github.com/mattlewis92)!\n- TypeScript: Added `expanded` to `CoreCommon_StorybookRefs` to fix typescript errors - [#23488](https://github.com/storybookjs/storybook/pull/23488), thanks [@DotwoodMedia](https://github.com/DotwoodMedia)!\n- TypeScript: Downgrade to the last version of type-fest that doesn't need typescript 5.0 - [#23574](https://github.com/storybookjs/storybook/pull/23574), thanks [@ndelangen](https://github.com/ndelangen)!\n- Vue2: Source Decorator reactivity - [#23149](https://github.com/storybookjs/storybook/pull/23149), thanks [@chakAs3](https://github.com/chakAs3)!"}}