diff --git a/CHANGELOG.prerelease.md b/CHANGELOG.prerelease.md index 40d87971c2e6..89b57f4aec60 100644 --- a/CHANGELOG.prerelease.md +++ b/CHANGELOG.prerelease.md @@ -1,8 +1,6 @@ ## 7.2.0-alpha.0 - Angular: Make enableProdMode optional - [#23489](https://github.com/storybookjs/storybook/pull/23489), thanks [@valentinpalkovic](https://github.com/valentinpalkovic)! -- Svelte-vite: Improve error when sveltekit plugins found in non-sveltekit projects - [#23472](https://github.com/storybookjs/storybook/pull/23472), thanks [@yannbf](https://github.com/yannbf)! -- Svelte-vite: Remove unused import - [#23475](https://github.com/storybookjs/storybook/pull/23475), thanks [@yannbf](https://github.com/yannbf)! - Router: Support RegExp in Route component - [#23292](https://github.com/storybookjs/storybook/pull/23292), thanks [@ndelangen](https://github.com/ndelangen)! - 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)! - 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)! @@ -167,460 +165,460 @@ Promote beta to rc without any changes. 🎉 #### Bug Fixes -- CLI: Fix upgrade notification message [#22933](https://github.com/storybooks/storybook/pull/22933) -- Core: Fix indexing errors by excluding node_modules stories [#22873](https://github.com/storybooks/storybook/pull/22873) +- CLI: Fix upgrade notification message [#22933](https://github.com/storybooks/storybook/pull/22933) +- Core: Fix indexing errors by excluding node_modules stories [#22873](https://github.com/storybooks/storybook/pull/22873) ## 7.1.0-alpha.28 (June 6, 2023) #### Bug Fixes -- Docs: E2E tests for Source block update fix [#22835](https://github.com/storybooks/storybook/pull/22835) -- Docs: Fix Source block snippet updates [#22807](https://github.com/storybooks/storybook/pull/22807) +- Docs: E2E tests for Source block update fix [#22835](https://github.com/storybooks/storybook/pull/22835) +- Docs: Fix Source block snippet updates [#22807](https://github.com/storybooks/storybook/pull/22807) ## 7.1.0-alpha.27 (June 4, 2023) #### Features -- Webpack: Add option to minify using swc [#22843](https://github.com/storybooks/storybook/pull/22843) +- Webpack: Add option to minify using swc [#22843](https://github.com/storybooks/storybook/pull/22843) #### Bug Fixes -- Server: Fix .stories.yml support [#22906](https://github.com/storybooks/storybook/pull/22906) -- Storysource: Fix StyledSyntaxHighlighter to wrap long lines [#22541](https://github.com/storybooks/storybook/pull/22541) +- Server: Fix .stories.yml support [#22906](https://github.com/storybooks/storybook/pull/22906) +- Storysource: Fix StyledSyntaxHighlighter to wrap long lines [#22541](https://github.com/storybooks/storybook/pull/22541) #### Maintenance -- TS: Migrate @storybook/web-components to strict TS [#22399](https://github.com/storybooks/storybook/pull/22399) -- TS: Migrate @storybook/addon-storyshots-puppeteer to strict TS [#22407](https://github.com/storybooks/storybook/pull/22407) -- TS: Migrate @storybook/addon-jest to strict TS [#22389](https://github.com/storybooks/storybook/pull/22389) -- TS: Migrate @storybook/addon-mdx-gfm to strict TS [#22659](https://github.com/storybooks/storybook/pull/22659) -- TS: Migrate @storybook/addon-storyshots to strict TS [#22487](https://github.com/storybooks/storybook/pull/22487) +- TS: Migrate @storybook/web-components to strict TS [#22399](https://github.com/storybooks/storybook/pull/22399) +- TS: Migrate @storybook/addon-storyshots-puppeteer to strict TS [#22407](https://github.com/storybooks/storybook/pull/22407) +- TS: Migrate @storybook/addon-jest to strict TS [#22389](https://github.com/storybooks/storybook/pull/22389) +- TS: Migrate @storybook/addon-mdx-gfm to strict TS [#22659](https://github.com/storybooks/storybook/pull/22659) +- TS: Migrate @storybook/addon-storyshots to strict TS [#22487](https://github.com/storybooks/storybook/pull/22487) #### Build -- Error on YN0060 - INCOMPATIBLE_PEER_DEPENDENCY [#22398](https://github.com/storybooks/storybook/pull/22398) -- Build: upgrade yarn [#22855](https://github.com/storybooks/storybook/pull/22855) -- Add CODEOWNERS [#22869](https://github.com/storybooks/storybook/pull/22869) +- Error on YN0060 - INCOMPATIBLE_PEER_DEPENDENCY [#22398](https://github.com/storybooks/storybook/pull/22398) +- Build: upgrade yarn [#22855](https://github.com/storybooks/storybook/pull/22855) +- Add CODEOWNERS [#22869](https://github.com/storybooks/storybook/pull/22869) ## 7.1.0-alpha.26 (May 31, 2023) #### Bug Fixes -- Addons: Fix `Addon_BaseAnnotations` type [#22771](https://github.com/storybooks/storybook/pull/22771) -- Viewport: Fix viewport menu [#22829](https://github.com/storybooks/storybook/pull/22829) +- Addons: Fix `Addon_BaseAnnotations` type [#22771](https://github.com/storybooks/storybook/pull/22771) +- Viewport: Fix viewport menu [#22829](https://github.com/storybooks/storybook/pull/22829) #### Maintenance -- NextJS: Fix types [#22836](https://github.com/storybooks/storybook/pull/22836) -- React: Update babel dependencies to fix sandbox creation [#22824](https://github.com/storybooks/storybook/pull/22824) +- NextJS: Fix types [#22836](https://github.com/storybooks/storybook/pull/22836) +- React: Update babel dependencies to fix sandbox creation [#22824](https://github.com/storybooks/storybook/pull/22824) #### Build -- Build: sort package json files [#22847](https://github.com/storybooks/storybook/pull/22847) -- Build: cleanup the test-storybooks [#22846](https://github.com/storybooks/storybook/pull/22846) -- Build: fix the theme output during development [#22841](https://github.com/storybooks/storybook/pull/22841) -- Build: move deprecated packages [#22753](https://github.com/storybooks/storybook/pull/22753) -- Build: move builders [#22751](https://github.com/storybooks/storybook/pull/22751) +- Build: sort package json files [#22847](https://github.com/storybooks/storybook/pull/22847) +- Build: cleanup the test-storybooks [#22846](https://github.com/storybooks/storybook/pull/22846) +- Build: fix the theme output during development [#22841](https://github.com/storybooks/storybook/pull/22841) +- Build: move deprecated packages [#22753](https://github.com/storybooks/storybook/pull/22753) +- Build: move builders [#22751](https://github.com/storybooks/storybook/pull/22751) ## 7.1.0-alpha.25 (May 26, 2023) #### Bug Fixes -- Vue3: Fix TS 5.0 compat with vue-component-type-helpers [#22814](https://github.com/storybooks/storybook/pull/22814) +- Vue3: Fix TS 5.0 compat with vue-component-type-helpers [#22814](https://github.com/storybooks/storybook/pull/22814) #### Build -- Build: Fix the local storybook [#22805](https://github.com/storybooks/storybook/pull/22805) -- Build: Add more checks to ci:daily workflow [#22815](https://github.com/storybooks/storybook/pull/22815) -- Build: Revert conditional decorator story and downgrade Typescript version [#22812](https://github.com/storybooks/storybook/pull/22812) +- Build: Fix the local storybook [#22805](https://github.com/storybooks/storybook/pull/22805) +- Build: Add more checks to ci:daily workflow [#22815](https://github.com/storybooks/storybook/pull/22815) +- Build: Revert conditional decorator story and downgrade Typescript version [#22812](https://github.com/storybooks/storybook/pull/22812) ## 7.1.0-alpha.24 (May 26, 2023) #### Bug Fixes -- Vue3: Fix reactive args updates in decorators [#22717](https://github.com/storybooks/storybook/pull/22717) +- Vue3: Fix reactive args updates in decorators [#22717](https://github.com/storybooks/storybook/pull/22717) #### Build -- Build: Update Nx to latest version [#22694](https://github.com/storybooks/storybook/pull/22694) +- Build: Update Nx to latest version [#22694](https://github.com/storybooks/storybook/pull/22694) ## 7.1.0-alpha.23 (May 24, 2023) #### Bug Fixes -- Core: Fix `managerHead` preset in `main.ts` [#22701](https://github.com/storybooks/storybook/pull/22701) +- Core: Fix `managerHead` preset in `main.ts` [#22701](https://github.com/storybooks/storybook/pull/22701) ## 7.1.0-alpha.22 (May 24, 2023) #### Bug Fixes -- Vite: Fix pnpm support by replacing @storybook/global with `window` [#22709](https://github.com/storybooks/storybook/pull/22709) +- Vite: Fix pnpm support by replacing @storybook/global with `window` [#22709](https://github.com/storybooks/storybook/pull/22709) ## 7.1.0-alpha.21 (May 23, 2023) #### Features -- Webpack: Add option to use swc instead of babel [#22075](https://github.com/storybooks/storybook/pull/22075) +- Webpack: Add option to use swc instead of babel [#22075](https://github.com/storybooks/storybook/pull/22075) #### Bug Fixes -- UI: Fix `.mp3` support for builder-manager [#22699](https://github.com/storybooks/storybook/pull/22699) -- CLI: Fix support for BROWSER env var [#21473](https://github.com/storybooks/storybook/pull/21473) -- Vite: Fix missing @storybook/global dependency [#22700](https://github.com/storybooks/storybook/pull/22700) -- Next.js: Fix compatibility with Next 13.4.3 [#22697](https://github.com/storybooks/storybook/pull/22697) -- CLI: Fix error parsing on NPM proxy [#22690](https://github.com/storybooks/storybook/pull/22690) -- Core: Only connect to serverChannel in development mode [#22575](https://github.com/storybooks/storybook/pull/22575) -- CLI: Improve error handling when dealing with angular.json files [#22663](https://github.com/storybooks/storybook/pull/22663) -- CLI: Skip prompting for eslint plugin with --yes flag [#22651](https://github.com/storybooks/storybook/pull/22651) -- CLI: Fix upgrade to not upgrade nx packages [#22419](https://github.com/storybooks/storybook/pull/22419) -- CLI: Only handle CTRL + C on init event [#22687](https://github.com/storybooks/storybook/pull/22687) -- Angular: Remove console.log [#22671](https://github.com/storybooks/storybook/pull/22671) +- UI: Fix `.mp3` support for builder-manager [#22699](https://github.com/storybooks/storybook/pull/22699) +- CLI: Fix support for BROWSER env var [#21473](https://github.com/storybooks/storybook/pull/21473) +- Vite: Fix missing @storybook/global dependency [#22700](https://github.com/storybooks/storybook/pull/22700) +- Next.js: Fix compatibility with Next 13.4.3 [#22697](https://github.com/storybooks/storybook/pull/22697) +- CLI: Fix error parsing on NPM proxy [#22690](https://github.com/storybooks/storybook/pull/22690) +- Core: Only connect to serverChannel in development mode [#22575](https://github.com/storybooks/storybook/pull/22575) +- CLI: Improve error handling when dealing with angular.json files [#22663](https://github.com/storybooks/storybook/pull/22663) +- CLI: Skip prompting for eslint plugin with --yes flag [#22651](https://github.com/storybooks/storybook/pull/22651) +- CLI: Fix upgrade to not upgrade nx packages [#22419](https://github.com/storybooks/storybook/pull/22419) +- CLI: Only handle CTRL + C on init event [#22687](https://github.com/storybooks/storybook/pull/22687) +- Angular: Remove console.log [#22671](https://github.com/storybooks/storybook/pull/22671) ## 7.1.0-alpha.20 (May 20, 2023) #### Bug Fixes -- CLI: Account for windows paths when copying templates [#22644](https://github.com/storybooks/storybook/pull/22644) -- CLI: Fix pnpm init command [#22635](https://github.com/storybooks/storybook/pull/22635) -- UI: Add legacy font formats [#22576](https://github.com/storybooks/storybook/pull/22576) -- Webpack: Remove the alias for `global` [#22393](https://github.com/storybooks/storybook/pull/22393) +- CLI: Account for windows paths when copying templates [#22644](https://github.com/storybooks/storybook/pull/22644) +- CLI: Fix pnpm init command [#22635](https://github.com/storybooks/storybook/pull/22635) +- UI: Add legacy font formats [#22576](https://github.com/storybooks/storybook/pull/22576) +- Webpack: Remove the alias for `global` [#22393](https://github.com/storybooks/storybook/pull/22393) #### Maintenance -- CLI: Reduce installation noise and improve error handling [#22554](https://github.com/storybooks/storybook/pull/22554) -- Actions: Fix type of withActions [#22455](https://github.com/storybooks/storybook/pull/22455) +- CLI: Reduce installation noise and improve error handling [#22554](https://github.com/storybooks/storybook/pull/22554) +- Actions: Fix type of withActions [#22455](https://github.com/storybooks/storybook/pull/22455) #### Build -- Build: add discord notification when generating sandboxes fails [#22638](https://github.com/storybooks/storybook/pull/22638) -- Build: set correct ref on sandboxes Github action [#22625](https://github.com/storybooks/storybook/pull/22625) -- Build: Fix sandbox generation scripts [#22620](https://github.com/storybooks/storybook/pull/22620) +- Build: add discord notification when generating sandboxes fails [#22638](https://github.com/storybooks/storybook/pull/22638) +- Build: set correct ref on sandboxes Github action [#22625](https://github.com/storybooks/storybook/pull/22625) +- Build: Fix sandbox generation scripts [#22620](https://github.com/storybooks/storybook/pull/22620) ## 7.1.0-alpha.19 (May 16, 2023) #### Bug Fixes -- Normalize paths exposed to vite-builder's `storybook-stories.js` file [#22327](https://github.com/storybooks/storybook/pull/22327) +- Normalize paths exposed to vite-builder's `storybook-stories.js` file [#22327](https://github.com/storybooks/storybook/pull/22327) ## 7.1.0-alpha.18 (May 15, 2023) #### Bug Fixes -- CLI: Fix `getFrameworkPackage` logic [#22559](https://github.com/storybooks/storybook/pull/22559) -- CLI: Remove automigrate reference from init command [#22561](https://github.com/storybooks/storybook/pull/22561) +- CLI: Fix `getFrameworkPackage` logic [#22559](https://github.com/storybooks/storybook/pull/22559) +- CLI: Remove automigrate reference from init command [#22561](https://github.com/storybooks/storybook/pull/22561) #### Maintenance -- CLI: Detach automigrate command from storybook init [#22523](https://github.com/storybooks/storybook/pull/22523) +- CLI: Detach automigrate command from storybook init [#22523](https://github.com/storybooks/storybook/pull/22523) ## 7.1.0-alpha.17 (May 12, 2023) #### Bug Fixes -- CLI: Fix storybook upgrade precheckfailure object [#22517](https://github.com/storybooks/storybook/pull/22517) -- CLI: Throw errors instead of rejecting promises [#22515](https://github.com/storybooks/storybook/pull/22515) -- CSF: Expose story id in composeStories [#22471](https://github.com/storybooks/storybook/pull/22471) -- CLI: Remove unsupported frameworks/renderers and improve builder detection [#22492](https://github.com/storybooks/storybook/pull/22492) +- CLI: Fix storybook upgrade precheckfailure object [#22517](https://github.com/storybooks/storybook/pull/22517) +- CLI: Throw errors instead of rejecting promises [#22515](https://github.com/storybooks/storybook/pull/22515) +- CSF: Expose story id in composeStories [#22471](https://github.com/storybooks/storybook/pull/22471) +- CLI: Remove unsupported frameworks/renderers and improve builder detection [#22492](https://github.com/storybooks/storybook/pull/22492) ## 7.1.0-alpha.16 (May 11, 2023) #### Bug Fixes -- Web-components: Fix source decorator to handle document fragments [#22513](https://github.com/storybooks/storybook/pull/22513) -- Angular: Adjust child process I/O for compodoc command [#22441](https://github.com/storybooks/storybook/pull/22441) -- Core: Fix windows path error in StoryStore v6 [#22512](https://github.com/storybooks/storybook/pull/22512) +- Web-components: Fix source decorator to handle document fragments [#22513](https://github.com/storybooks/storybook/pull/22513) +- Angular: Adjust child process I/O for compodoc command [#22441](https://github.com/storybooks/storybook/pull/22441) +- Core: Fix windows path error in StoryStore v6 [#22512](https://github.com/storybooks/storybook/pull/22512) #### Maintenance -- CLI: Prompt to force initialization when storybook is detected [#22392](https://github.com/storybooks/storybook/pull/22392) -- UI: Fix css inconsistency in Button and Icon components [#22497](https://github.com/storybooks/storybook/pull/22497) +- CLI: Prompt to force initialization when storybook is detected [#22392](https://github.com/storybooks/storybook/pull/22392) +- UI: Fix css inconsistency in Button and Icon components [#22497](https://github.com/storybooks/storybook/pull/22497) #### Build -- Sandboxes: Pin @vitejs/plugin-react to avoid conflict [#22501](https://github.com/storybooks/storybook/pull/22501) +- Sandboxes: Pin @vitejs/plugin-react to avoid conflict [#22501](https://github.com/storybooks/storybook/pull/22501) ## 7.1.0-alpha.15 (May 11, 2023) #### Bug Fixes -- CLI: Do not show a migration summary on sb init [#22109](https://github.com/storybooks/storybook/pull/22109) -- Toolbars: Fix title behavior in UI [#22496](https://github.com/storybooks/storybook/pull/22496) -- UI: Show current search shortcut in search box sidebar [#21619](https://github.com/storybooks/storybook/pull/21619) -- Measure: Deactivate when switching to Docs mode [#21602](https://github.com/storybooks/storybook/pull/21602) -- Outline: Fix additional outline border in docs mode [#21773](https://github.com/storybooks/storybook/pull/21773) +- CLI: Do not show a migration summary on sb init [#22109](https://github.com/storybooks/storybook/pull/22109) +- Toolbars: Fix title behavior in UI [#22496](https://github.com/storybooks/storybook/pull/22496) +- UI: Show current search shortcut in search box sidebar [#21619](https://github.com/storybooks/storybook/pull/21619) +- Measure: Deactivate when switching to Docs mode [#21602](https://github.com/storybooks/storybook/pull/21602) +- Outline: Fix additional outline border in docs mode [#21773](https://github.com/storybooks/storybook/pull/21773) ## 7.1.0-alpha.14 (May 9, 2023) #### Bug Fixes -- CLI: Scope styles in sample components from the CLI templates [#22162](https://github.com/storybooks/storybook/pull/22162) -- CLI: Fix copyTemplate failures on `init` [#22375](https://github.com/storybooks/storybook/pull/22375) -- CLI: Fix server init [#22443](https://github.com/storybooks/storybook/pull/22443) -- Server: Add json indexer [#22460](https://github.com/storybooks/storybook/pull/22460) -- React: Use correct default annotations for composeStories [#22308](https://github.com/storybooks/storybook/pull/22308) -- UI: Fix opacity of list-item color [#22074](https://github.com/storybooks/storybook/pull/22074) +- CLI: Scope styles in sample components from the CLI templates [#22162](https://github.com/storybooks/storybook/pull/22162) +- CLI: Fix copyTemplate failures on `init` [#22375](https://github.com/storybooks/storybook/pull/22375) +- CLI: Fix server init [#22443](https://github.com/storybooks/storybook/pull/22443) +- Server: Add json indexer [#22460](https://github.com/storybooks/storybook/pull/22460) +- React: Use correct default annotations for composeStories [#22308](https://github.com/storybooks/storybook/pull/22308) +- UI: Fix opacity of list-item color [#22074](https://github.com/storybooks/storybook/pull/22074) #### Maintenance -- CLI: Refactor package manager methods to be async [#22401](https://github.com/storybooks/storybook/pull/22401) -- Angular: Improve Error message for angular.json not found [#22377](https://github.com/storybooks/storybook/pull/22377) -- TypeScript: Migrate @storybook/instrumenter to strict TS [#22370](https://github.com/storybooks/storybook/pull/22370) -- TypeScript: Migrate @storybook/core-events to strict TS [#22448](https://github.com/storybooks/storybook/pull/22448) -- TypeScript: Migrate @storybook/core-client to strict TS [#22447](https://github.com/storybooks/storybook/pull/22447) -- TypeScript: Migrate @storybook/react-vite and @storybook/preact-vite to strict TS [#22428](https://github.com/storybooks/storybook/pull/22428) -- TypeScript: Migrate @storybook/svelte-vite to strict TS [#22411](https://github.com/storybooks/storybook/pull/22411) -- TypeScript: Migrate @storybook/types to strict TS [#22397](https://github.com/storybooks/storybook/pull/22397) -- TypeScript: Migrate @storybook/addon-storysource to strict TS [#22367](https://github.com/storybooks/storybook/pull/22367) -- TypeScript: Migrate @storybook/client-api to strict TS [#22421](https://github.com/storybooks/storybook/pull/22421) -- TypeScript: Migrate @storybook/sveltekit to strict TS [#22412](https://github.com/storybooks/storybook/pull/22412) -- TypeScript: Migrate @storybook/source-loader to strict TS [#22420](https://github.com/storybooks/storybook/pull/22420) +- CLI: Refactor package manager methods to be async [#22401](https://github.com/storybooks/storybook/pull/22401) +- Angular: Improve Error message for angular.json not found [#22377](https://github.com/storybooks/storybook/pull/22377) +- TypeScript: Migrate @storybook/instrumenter to strict TS [#22370](https://github.com/storybooks/storybook/pull/22370) +- TypeScript: Migrate @storybook/core-events to strict TS [#22448](https://github.com/storybooks/storybook/pull/22448) +- TypeScript: Migrate @storybook/core-client to strict TS [#22447](https://github.com/storybooks/storybook/pull/22447) +- TypeScript: Migrate @storybook/react-vite and @storybook/preact-vite to strict TS [#22428](https://github.com/storybooks/storybook/pull/22428) +- TypeScript: Migrate @storybook/svelte-vite to strict TS [#22411](https://github.com/storybooks/storybook/pull/22411) +- TypeScript: Migrate @storybook/types to strict TS [#22397](https://github.com/storybooks/storybook/pull/22397) +- TypeScript: Migrate @storybook/addon-storysource to strict TS [#22367](https://github.com/storybooks/storybook/pull/22367) +- TypeScript: Migrate @storybook/client-api to strict TS [#22421](https://github.com/storybooks/storybook/pull/22421) +- TypeScript: Migrate @storybook/sveltekit to strict TS [#22412](https://github.com/storybooks/storybook/pull/22412) +- TypeScript: Migrate @storybook/source-loader to strict TS [#22420](https://github.com/storybooks/storybook/pull/22420) ## 7.1.0-alpha.13 (May 5, 2023) #### Bug Fixes -- Core: Fix virtual modules excluded for babel-loader [#22331](https://github.com/storybooks/storybook/pull/22331) +- Core: Fix virtual modules excluded for babel-loader [#22331](https://github.com/storybooks/storybook/pull/22331) #### Maintenance -- Angular: Allow TypeScript 4.0.0 and 5.0.0 [#22391](https://github.com/storybooks/storybook/pull/22391) -- Angular: Enable Angular Unit tests [#22355](https://github.com/storybooks/storybook/pull/22355) -- TypeScript: Migrate @storybook/theming to strict TS [#22376](https://github.com/storybooks/storybook/pull/22376) -- TypeScript: Migrate @storybook/channel-websocket to strict TS [#22364](https://github.com/storybooks/storybook/pull/22364) -- TypeScript: Migrate @storybook/addon-outline to strict TS [#22369](https://github.com/storybooks/storybook/pull/22369) -- TypeScript: Migrate @storybook/addon-viewbook to strict ts [#22339](https://github.com/storybooks/storybook/pull/22339) -- TypeScript: Migrate @storybook/channels to strict TS [#22365](https://github.com/storybooks/storybook/pull/22365) +- Angular: Allow TypeScript 4.0.0 and 5.0.0 [#22391](https://github.com/storybooks/storybook/pull/22391) +- Angular: Enable Angular Unit tests [#22355](https://github.com/storybooks/storybook/pull/22355) +- TypeScript: Migrate @storybook/theming to strict TS [#22376](https://github.com/storybooks/storybook/pull/22376) +- TypeScript: Migrate @storybook/channel-websocket to strict TS [#22364](https://github.com/storybooks/storybook/pull/22364) +- TypeScript: Migrate @storybook/addon-outline to strict TS [#22369](https://github.com/storybooks/storybook/pull/22369) +- TypeScript: Migrate @storybook/addon-viewbook to strict ts [#22339](https://github.com/storybooks/storybook/pull/22339) +- TypeScript: Migrate @storybook/channels to strict TS [#22365](https://github.com/storybooks/storybook/pull/22365) #### Build -- Add Angular Prerelease sandbox [#22379](https://github.com/storybooks/storybook/pull/22379) +- Add Angular Prerelease sandbox [#22379](https://github.com/storybooks/storybook/pull/22379) ## 7.1.0-alpha.12 (May 3, 2023) #### Bug Fixes -- Migrate: skip the automigration for gf markdown when user isn't using mdx [#22186](https://github.com/storybooks/storybook/pull/22186) -- UI: Addon panel does not update after disabling/enabling an addon [#22258](https://github.com/storybooks/storybook/pull/22258) -- Typescript: Fix bad typings caused by tsup bug [#22261](https://github.com/storybooks/storybook/pull/22261) -- Core: Fix source snippets for stories with mapped args [#22135](https://github.com/storybooks/storybook/pull/22135) +- Migrate: skip the automigration for gf markdown when user isn't using mdx [#22186](https://github.com/storybooks/storybook/pull/22186) +- UI: Addon panel does not update after disabling/enabling an addon [#22258](https://github.com/storybooks/storybook/pull/22258) +- Typescript: Fix bad typings caused by tsup bug [#22261](https://github.com/storybooks/storybook/pull/22261) +- Core: Fix source snippets for stories with mapped args [#22135](https://github.com/storybooks/storybook/pull/22135) #### Maintenance -- Telemetry: Persist sessionId across runs [#22325](https://github.com/storybooks/storybook/pull/22325) -- Packaging: Move `types` condition to the front in all `package.json.exports` maps [#22321](https://github.com/storybooks/storybook/pull/22321) -- Packaging: Don't generate ESM dist for preset files [#22330](https://github.com/storybooks/storybook/pull/22330) -- Typescript: Migrate `@storybook/csf-tools` to strict TS [#22312](https://github.com/storybooks/storybook/pull/22312) -- Typescript: Migrate @storybook/postinstall and @storybook/router to strict TS [#22200](https://github.com/storybooks/storybook/pull/22200) -- Maintenance: Fix urls for all packages in package.json [#22101](https://github.com/storybooks/storybook/pull/22101) -- Docs: Improve component typings [#22050](https://github.com/storybooks/storybook/pull/22050) +- Telemetry: Persist sessionId across runs [#22325](https://github.com/storybooks/storybook/pull/22325) +- Packaging: Move `types` condition to the front in all `package.json.exports` maps [#22321](https://github.com/storybooks/storybook/pull/22321) +- Packaging: Don't generate ESM dist for preset files [#22330](https://github.com/storybooks/storybook/pull/22330) +- Typescript: Migrate `@storybook/csf-tools` to strict TS [#22312](https://github.com/storybooks/storybook/pull/22312) +- Typescript: Migrate @storybook/postinstall and @storybook/router to strict TS [#22200](https://github.com/storybooks/storybook/pull/22200) +- Maintenance: Fix urls for all packages in package.json [#22101](https://github.com/storybooks/storybook/pull/22101) +- Docs: Improve component typings [#22050](https://github.com/storybooks/storybook/pull/22050) #### Build -- Build: Comment out flaky test [#22310](https://github.com/storybooks/storybook/pull/22310) -- Build: Migrate `@storybook/web-components-vite` to strict TS [#22309](https://github.com/storybooks/storybook/pull/22309) -- Build: Migrate `@storybook/html-vite` to strict TS [#22293](https://github.com/storybooks/storybook/pull/22293) -- Build: Migrate @storybook/preset-vue-webpack to strict TS [#22320](https://github.com/storybooks/storybook/pull/22320) -- Build: Use `next` branch for sandbox and repro commands [#22238](https://github.com/storybooks/storybook/pull/22238) +- Build: Comment out flaky test [#22310](https://github.com/storybooks/storybook/pull/22310) +- Build: Migrate `@storybook/web-components-vite` to strict TS [#22309](https://github.com/storybooks/storybook/pull/22309) +- Build: Migrate `@storybook/html-vite` to strict TS [#22293](https://github.com/storybooks/storybook/pull/22293) +- Build: Migrate @storybook/preset-vue-webpack to strict TS [#22320](https://github.com/storybooks/storybook/pull/22320) +- Build: Use `next` branch for sandbox and repro commands [#22238](https://github.com/storybooks/storybook/pull/22238) ## 7.1.0-alpha.11 (April 28, 2023) #### Features -- Feature: Add support for Angular 16 [#22096](https://github.com/storybooks/storybook/pull/22096) +- Feature: Add support for Angular 16 [#22096](https://github.com/storybooks/storybook/pull/22096) #### Bug Fixes -- Vue3: Rollback v7 breaking change and keep reactive v6-compatible API [#22229](https://github.com/storybooks/storybook/pull/22229) +- Vue3: Rollback v7 breaking change and keep reactive v6-compatible API [#22229](https://github.com/storybooks/storybook/pull/22229) #### Maintenance -- Core: Add tests for mapping behaviour in #22169 [#22301](https://github.com/storybooks/storybook/pull/22301) +- Core: Add tests for mapping behaviour in #22169 [#22301](https://github.com/storybooks/storybook/pull/22301) #### Dependency Upgrades -- Update glob to v10.0.0 [#22171](https://github.com/storybooks/storybook/pull/22171) +- Update glob to v10.0.0 [#22171](https://github.com/storybooks/storybook/pull/22171) ## 7.1.0-alpha.10 (April 28, 2023) #### Bug Fixes -- Vue3: Fix compiler error when there is double tag [#22286](https://github.com/storybooks/storybook/pull/22286) -- Args: Fix multiple mapped args return array of labels [#22169](https://github.com/storybooks/storybook/pull/22169) -- Angular: Fix storyshots by removing deprecated import [#22134](https://github.com/storybooks/storybook/pull/22134) -- Ember: Fix wrong path [#22203](https://github.com/storybooks/storybook/pull/22203) -- CLI: Add web-components webpack5 to missing-babelrc automigration [#22202](https://github.com/storybooks/storybook/pull/22202) -- Docs: Fix inline story style [#21870](https://github.com/storybooks/storybook/pull/21870) +- Vue3: Fix compiler error when there is double tag [#22286](https://github.com/storybooks/storybook/pull/22286) +- Args: Fix multiple mapped args return array of labels [#22169](https://github.com/storybooks/storybook/pull/22169) +- Angular: Fix storyshots by removing deprecated import [#22134](https://github.com/storybooks/storybook/pull/22134) +- Ember: Fix wrong path [#22203](https://github.com/storybooks/storybook/pull/22203) +- CLI: Add web-components webpack5 to missing-babelrc automigration [#22202](https://github.com/storybooks/storybook/pull/22202) +- Docs: Fix inline story style [#21870](https://github.com/storybooks/storybook/pull/21870) #### Build -- Fix vue-cli/default-js sandbox [#22259](https://github.com/storybooks/storybook/pull/22259) -- Core: Fix `DOCS_RENDERED` test [#22255](https://github.com/storybooks/storybook/pull/22255) -- Add regex to ignore outdated Browserslist in Jest initialization base file [#22260](https://github.com/storybooks/storybook/pull/22260) +- Fix vue-cli/default-js sandbox [#22259](https://github.com/storybooks/storybook/pull/22259) +- Core: Fix `DOCS_RENDERED` test [#22255](https://github.com/storybooks/storybook/pull/22255) +- Add regex to ignore outdated Browserslist in Jest initialization base file [#22260](https://github.com/storybooks/storybook/pull/22260) ## 7.1.0-alpha.9 (April 26, 2023) #### Features -- NextJS: Allow disabling next/image lazy loading [#21909](https://github.com/storybooks/storybook/pull/21909) -- Core: Allow Flow syntax in stories [#21859](https://github.com/storybooks/storybook/pull/21859) +- NextJS: Allow disabling next/image lazy loading [#21909](https://github.com/storybooks/storybook/pull/21909) +- Core: Allow Flow syntax in stories [#21859](https://github.com/storybooks/storybook/pull/21859) #### Bug Fixes -- Vue3: Support multiple setup functions [#22170](https://github.com/storybooks/storybook/pull/22170) -- UI: Fix shift + 7 shortcut to focus search field [#22073](https://github.com/storybooks/storybook/pull/22073) -- UI: Fix controls missing when navigating from story [#21967](https://github.com/storybooks/storybook/pull/21967) +- Vue3: Support multiple setup functions [#22170](https://github.com/storybooks/storybook/pull/22170) +- UI: Fix shift + 7 shortcut to focus search field [#22073](https://github.com/storybooks/storybook/pull/22073) +- UI: Fix controls missing when navigating from story [#21967](https://github.com/storybooks/storybook/pull/21967) #### Maintenance -- Core: Rename manager UI mjs to js [#22247](https://github.com/storybooks/storybook/pull/22247) -- Remove dead code [#22019](https://github.com/storybooks/storybook/pull/22019) -- Vue3: Move TS stories into a separate folder [#22235](https://github.com/storybooks/storybook/pull/22235) +- Core: Rename manager UI mjs to js [#22247](https://github.com/storybooks/storybook/pull/22247) +- Remove dead code [#22019](https://github.com/storybooks/storybook/pull/22019) +- Vue3: Move TS stories into a separate folder [#22235](https://github.com/storybooks/storybook/pull/22235) #### Build -- Build: Migrate @storybook/addon-docs to strict-ts [#22180](https://github.com/storybooks/storybook/pull/22180) -- Build: Migrate @storybook/highlight to strict TS [#22181](https://github.com/storybooks/storybook/pull/22181) -- Build: Enable strict TS by default [#22143](https://github.com/storybooks/storybook/pull/22143) +- Build: Migrate @storybook/addon-docs to strict-ts [#22180](https://github.com/storybooks/storybook/pull/22180) +- Build: Migrate @storybook/highlight to strict TS [#22181](https://github.com/storybooks/storybook/pull/22181) +- Build: Enable strict TS by default [#22143](https://github.com/storybooks/storybook/pull/22143) ## 7.1.0-alpha.8 (April 24, 2023) #### Features -- Core: Support custom hosts using window.location server channel URL [#22055](https://github.com/storybooks/storybook/pull/22055) +- Core: Support custom hosts using window.location server channel URL [#22055](https://github.com/storybooks/storybook/pull/22055) #### Bug Fixes -- Addon-actions: Fix ESM by upgrading from uuid-browser to uuid [#22037](https://github.com/storybooks/storybook/pull/22037) -- Addon-actions: Fix decorator type [#22175](https://github.com/storybooks/storybook/pull/22175) -- NextJS: Fix tsconfig resolution [#22160](https://github.com/storybooks/storybook/pull/22160) -- Core: Pass parameters in `SET_INDEX` for docs entries [#22154](https://github.com/storybooks/storybook/pull/22154) +- Addon-actions: Fix ESM by upgrading from uuid-browser to uuid [#22037](https://github.com/storybooks/storybook/pull/22037) +- Addon-actions: Fix decorator type [#22175](https://github.com/storybooks/storybook/pull/22175) +- NextJS: Fix tsconfig resolution [#22160](https://github.com/storybooks/storybook/pull/22160) +- Core: Pass parameters in `SET_INDEX` for docs entries [#22154](https://github.com/storybooks/storybook/pull/22154) #### Maintenance -- CSF: Improve error message for bad default export [#22190](https://github.com/storybooks/storybook/pull/22190) -- CLI: Add addon query-params to list of SB7 incompatible addons [#22095](https://github.com/storybooks/storybook/pull/22095) +- CSF: Improve error message for bad default export [#22190](https://github.com/storybooks/storybook/pull/22190) +- CLI: Add addon query-params to list of SB7 incompatible addons [#22095](https://github.com/storybooks/storybook/pull/22095) #### Build -- Build: Fix sandbox publish script [#22206](https://github.com/storybooks/storybook/pull/22206) -- Build: Fix lit sandboxes [#22201](https://github.com/storybooks/storybook/pull/22201) -- Vite sandboxes: use stable Vite 4.3 [#22183](https://github.com/storybooks/storybook/pull/22183) +- Build: Fix sandbox publish script [#22206](https://github.com/storybooks/storybook/pull/22206) +- Build: Fix lit sandboxes [#22201](https://github.com/storybooks/storybook/pull/22201) +- Vite sandboxes: use stable Vite 4.3 [#22183](https://github.com/storybooks/storybook/pull/22183) ## 7.1.0-alpha.7 (April 19, 2023) #### Bug Fixes -- Vue3: Fix reactive decorators [#21954](https://github.com/storybooks/storybook/pull/21954) +- Vue3: Fix reactive decorators [#21954](https://github.com/storybooks/storybook/pull/21954) #### Build -- Build: Improve sandboxes commit message [#22136](https://github.com/storybooks/storybook/pull/22136) +- Build: Improve sandboxes commit message [#22136](https://github.com/storybooks/storybook/pull/22136) ## 7.1.0-alpha.6 (April 18, 2023) #### Bug Fixes -- Core: Restore Docs `useParameter` using `DOCS_PREPARED` [#22118](https://github.com/storybooks/storybook/pull/22118) -- Core: Add new tags to distinguish docs attachment [#22120](https://github.com/storybooks/storybook/pull/22120) -- Core: Fix `module` guard in non-webpack environments [#22085](https://github.com/storybooks/storybook/pull/22085) +- Core: Restore Docs `useParameter` using `DOCS_PREPARED` [#22118](https://github.com/storybooks/storybook/pull/22118) +- Core: Add new tags to distinguish docs attachment [#22120](https://github.com/storybooks/storybook/pull/22120) +- Core: Fix `module` guard in non-webpack environments [#22085](https://github.com/storybooks/storybook/pull/22085) #### Build -- Build: Skip docs pages e2e tests for ssv6 examples [#22141](https://github.com/storybooks/storybook/pull/22141) -- Build: Upgrade Playwright to 1.32.3 [#22087](https://github.com/storybooks/storybook/pull/22087) +- Build: Skip docs pages e2e tests for ssv6 examples [#22141](https://github.com/storybooks/storybook/pull/22141) +- Build: Upgrade Playwright to 1.32.3 [#22087](https://github.com/storybooks/storybook/pull/22087) #### Dependency Upgrades -- Remove unused babel dependencies [#21984](https://github.com/storybooks/storybook/pull/21984) +- Remove unused babel dependencies [#21984](https://github.com/storybooks/storybook/pull/21984) ## 7.1.0-alpha.5 (April 17, 2023) #### Maintenance -- CLI: Mark qwik as using addon-interactions [#22000](https://github.com/storybooks/storybook/pull/22000) +- CLI: Mark qwik as using addon-interactions [#22000](https://github.com/storybooks/storybook/pull/22000) #### Build -- Revert "Build: Update dangerfile temporarily to check for patch label" [#22108](https://github.com/storybooks/storybook/pull/22108) +- Revert "Build: Update dangerfile temporarily to check for patch label" [#22108](https://github.com/storybooks/storybook/pull/22108) ## 7.1.0-alpha.4 (April 15, 2023) #### Bug Fixes -- Docs: Fix source snippets when parameters.docs.source.type = 'code' [#22048](https://github.com/storybooks/storybook/pull/22048) -- CLI: Mention how to setup a monorepo manually in babelrc automigration [#22052](https://github.com/storybooks/storybook/pull/22052) +- Docs: Fix source snippets when parameters.docs.source.type = 'code' [#22048](https://github.com/storybooks/storybook/pull/22048) +- CLI: Mention how to setup a monorepo manually in babelrc automigration [#22052](https://github.com/storybooks/storybook/pull/22052) ## 7.1.0-alpha.3 (April 13, 2023) #### Bug Fixes -- UI: Fix upgrade command in about page [#22056](https://github.com/storybooks/storybook/pull/22056) -- CLI: Fix sandbox command [#21977](https://github.com/storybooks/storybook/pull/21977) +- UI: Fix upgrade command in about page [#22056](https://github.com/storybooks/storybook/pull/22056) +- CLI: Fix sandbox command [#21977](https://github.com/storybooks/storybook/pull/21977) ## 7.1.0-alpha.2 (April 12, 2023) #### Features -- UI: Add remount story shortcut [#21401](https://github.com/storybooks/storybook/pull/21401) +- UI: Add remount story shortcut [#21401](https://github.com/storybooks/storybook/pull/21401) #### Bug Fixes -- CLI: Catch errors thrown on sanity check of SB installs [#22039](https://github.com/storybooks/storybook/pull/22039) +- CLI: Catch errors thrown on sanity check of SB installs [#22039](https://github.com/storybooks/storybook/pull/22039) #### Maintenance -- Addon-docs: Remove mdx1-csf as optional peer dep [#22038](https://github.com/storybooks/storybook/pull/22038) -- Telemetry: Add CLI version to context [#21999](https://github.com/storybooks/storybook/pull/21999) +- Addon-docs: Remove mdx1-csf as optional peer dep [#22038](https://github.com/storybooks/storybook/pull/22038) +- Telemetry: Add CLI version to context [#21999](https://github.com/storybooks/storybook/pull/21999) #### Build -- Build: Use vite@beta on sandboxes [#22030](https://github.com/storybooks/storybook/pull/22030) -- Fix e2e tests failing in Firefox [#22022](https://github.com/storybooks/storybook/pull/22022) -- Vite: Use vite 4.3 beta in sandboxes [#21986](https://github.com/storybooks/storybook/pull/21986) +- Build: Use vite@beta on sandboxes [#22030](https://github.com/storybooks/storybook/pull/22030) +- Fix e2e tests failing in Firefox [#22022](https://github.com/storybooks/storybook/pull/22022) +- Vite: Use vite 4.3 beta in sandboxes [#21986](https://github.com/storybooks/storybook/pull/21986) ## 7.1.0-alpha.1 (April 11, 2023) #### Bug Fixes -- React: Fix default export docgen for React.FC and forwardRef [#22024](https://github.com/storybooks/storybook/pull/22024) -- Viewport: Remove transitions when switching viewports [#21963](https://github.com/storybooks/storybook/pull/21963) -- CLI: Fix JsPackageManager typo [#22006](https://github.com/storybooks/storybook/pull/22006) -- Viewport: Fix the `defaultOrientation` config option [#21962](https://github.com/storybooks/storybook/pull/21962) -- UI: Fix story data access for broken About page [#21951](https://github.com/storybooks/storybook/pull/21951) +- React: Fix default export docgen for React.FC and forwardRef [#22024](https://github.com/storybooks/storybook/pull/22024) +- Viewport: Remove transitions when switching viewports [#21963](https://github.com/storybooks/storybook/pull/21963) +- CLI: Fix JsPackageManager typo [#22006](https://github.com/storybooks/storybook/pull/22006) +- Viewport: Fix the `defaultOrientation` config option [#21962](https://github.com/storybooks/storybook/pull/21962) +- UI: Fix story data access for broken About page [#21951](https://github.com/storybooks/storybook/pull/21951) #### Maintenance -- CLI: Update template code references to 7.0 [#21845](https://github.com/storybooks/storybook/pull/21845) +- CLI: Update template code references to 7.0 [#21845](https://github.com/storybooks/storybook/pull/21845) #### Dependency Upgrades -- React-vite: Fix perf regression by pinning vite-plugin-react-docgen-ts [#22013](https://github.com/storybooks/storybook/pull/22013) -- Use future version of satellite repo dependencies [#22026](https://github.com/storybooks/storybook/pull/22026) +- React-vite: Fix perf regression by pinning vite-plugin-react-docgen-ts [#22013](https://github.com/storybooks/storybook/pull/22013) +- Use future version of satellite repo dependencies [#22026](https://github.com/storybooks/storybook/pull/22026) ## 7.1.0-alpha.0 (April 5, 2023) #### Bug Fixes -- Angular: Fix components disappearing on docs page on property change [#21944](https://github.com/storybooks/storybook/pull/21944) -- React: Don't show decorators in JSX snippets [#21907](https://github.com/storybooks/storybook/pull/21907) -- Docs: Include decorators by default in source decorators [#21902](https://github.com/storybooks/storybook/pull/21902) -- CLI: Fix npm list command [#21947](https://github.com/storybooks/storybook/pull/21947) -- Core: Revert Emotion `:first-child` (etc) workarounds [#21213](https://github.com/storybooks/storybook/pull/21213) -- Addon-actions: Fix non-included type file [#21922](https://github.com/storybooks/storybook/pull/21922) -- Addon GFM: Fix node-logger dependency [#21938](https://github.com/storybooks/storybook/pull/21938) +- Angular: Fix components disappearing on docs page on property change [#21944](https://github.com/storybooks/storybook/pull/21944) +- React: Don't show decorators in JSX snippets [#21907](https://github.com/storybooks/storybook/pull/21907) +- Docs: Include decorators by default in source decorators [#21902](https://github.com/storybooks/storybook/pull/21902) +- CLI: Fix npm list command [#21947](https://github.com/storybooks/storybook/pull/21947) +- Core: Revert Emotion `:first-child` (etc) workarounds [#21213](https://github.com/storybooks/storybook/pull/21213) +- Addon-actions: Fix non-included type file [#21922](https://github.com/storybooks/storybook/pull/21922) +- Addon GFM: Fix node-logger dependency [#21938](https://github.com/storybooks/storybook/pull/21938) #### Build -- Build: Update trigger circle ci workflow to include main [#21888](https://github.com/storybooks/storybook/pull/21888) -- Build: Update dangerfile temporarily to check for patch label [#21945](https://github.com/storybooks/storybook/pull/21945) -- Build: Re-enable Vue2 Vite sandbox [#21940](https://github.com/storybooks/storybook/pull/21940) -- Build: Fix release badge on repros [#21923](https://github.com/storybooks/storybook/pull/21923) -- Build: fix the workflows to generate sandboxes [#21912](https://github.com/storybooks/storybook/pull/21912) -- Build: bump the node version in CI [#21917](https://github.com/storybooks/storybook/pull/21917) -- Build: no `pnp.cjs` in the root, regen lockfiles [#21908](https://github.com/storybooks/storybook/pull/21908) -- Build: remove pnp sandbox template [#21913](https://github.com/storybooks/storybook/pull/21913) -- Build: make the CI config ready for 7.0 release [#21808](https://github.com/storybooks/storybook/pull/21808) +- Build: Update trigger circle ci workflow to include main [#21888](https://github.com/storybooks/storybook/pull/21888) +- Build: Update dangerfile temporarily to check for patch label [#21945](https://github.com/storybooks/storybook/pull/21945) +- Build: Re-enable Vue2 Vite sandbox [#21940](https://github.com/storybooks/storybook/pull/21940) +- Build: Fix release badge on repros [#21923](https://github.com/storybooks/storybook/pull/21923) +- Build: fix the workflows to generate sandboxes [#21912](https://github.com/storybooks/storybook/pull/21912) +- Build: bump the node version in CI [#21917](https://github.com/storybooks/storybook/pull/21917) +- Build: no `pnp.cjs` in the root, regen lockfiles [#21908](https://github.com/storybooks/storybook/pull/21908) +- Build: remove pnp sandbox template [#21913](https://github.com/storybooks/storybook/pull/21913) +- Build: make the CI config ready for 7.0 release [#21808](https://github.com/storybooks/storybook/pull/21808) #### Dependency Upgrades -- Update `@emotion/cache` version [#21941](https://github.com/storybooks/storybook/pull/21941) +- Update `@emotion/cache` version [#21941](https://github.com/storybooks/storybook/pull/21941) diff --git a/docs/versions/next.json b/docs/versions/next.json index 4706a29d9f53..204c1ccdc10b 100644 --- a/docs/versions/next.json +++ b/docs/versions/next.json @@ -1 +1,6 @@ -{"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- Features: For 7.2 - [#23446](https://github.com/storybookjs/storybook/pull/23446), thanks [@ndelangen](https://github.com/ndelangen)!\n- Svelte-vite: Improve error when sveltekit plugins found in non-sveltekit projects - [#23472](https://github.com/storybookjs/storybook/pull/23472), thanks [@yannbf](https://github.com/yannbf)!\n- Svelte-vite: Remove unused import - [#23475](https://github.com/storybookjs/storybook/pull/23475), thanks [@yannbf](https://github.com/yannbf)!"}} +{ + "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" + } +} diff --git a/scripts/release/is-pr-frozen.ts b/scripts/release/is-pr-frozen.ts index 95c7defa0c5b..70289b5369d8 100644 --- a/scripts/release/is-pr-frozen.ts +++ b/scripts/release/is-pr-frozen.ts @@ -1,11 +1,11 @@ /* eslint-disable no-console */ import chalk from 'chalk'; import program from 'commander'; -import { simpleGit } from 'simple-git'; import { setOutput } from '@actions/core'; import path from 'path'; import { readJson } from 'fs-extra'; import { getPullInfoFromCommit } from './utils/get-github-info'; +import { git } from './utils/git-client'; program .name('is-pr-frozen') @@ -15,8 +15,6 @@ program .option('-P, --patch', 'Look for patch PR instead of prerelease PR', false) .option('-V, --verbose', 'Enable verbose logging', false); -const git = simpleGit(); - const CODE_DIR_PATH = path.join(__dirname, '..', '..', 'code'); const CODE_PACKAGE_JSON_PATH = path.join(CODE_DIR_PATH, 'package.json'); diff --git a/scripts/release/pick-patches.ts b/scripts/release/pick-patches.ts index 3740b1c98edf..bbd90fb415e5 100644 --- a/scripts/release/pick-patches.ts +++ b/scripts/release/pick-patches.ts @@ -3,8 +3,8 @@ import program from 'commander'; import chalk from 'chalk'; import ora from 'ora'; -import { simpleGit } from 'simple-git'; import { setOutput } from '@actions/core'; +import { git } from './utils/git-client'; import { getUnpickedPRs } from './utils/github-client'; program.name('pick-patches').description('Cherry pick patch PRs back to main'); @@ -15,8 +15,6 @@ const OWNER = 'storybookjs'; const REPO = 'storybook'; const SOURCE_BRANCH = 'next'; -const git = simpleGit(); - interface PR { number: number; id: string; diff --git a/scripts/release/utils/get-changes.ts b/scripts/release/utils/get-changes.ts index e3e414e766e3..1ad2a0759198 100644 --- a/scripts/release/utils/get-changes.ts +++ b/scripts/release/utils/get-changes.ts @@ -3,7 +3,7 @@ import chalk from 'chalk'; import semver from 'semver'; import type { PullRequestInfo } from './get-github-info'; import { getPullInfoFromCommit } from './get-github-info'; -import { git } from './git-client'; +import { getLatestTag, git } from './git-client'; import { getUnpickedPRs } from './github-client'; export const RELEASED_LABELS = { @@ -42,8 +42,7 @@ export const getFromCommit = async (from?: string | undefined, verbose?: boolean let actualFrom = from; if (!from) { console.log(`🔍 No 'from' specified, finding latest version tag, fetching all of them...`); - // await git.fetch('origin', ['--all', '--tags']); - const { latest } = await git.tags(['v*', '--sort=-v:refname', '--merged']); + const latest = await getLatestTag(); if (!latest) { throw new Error( 'Could not automatically detect which commit to generate from, because no version tag was found in the history. Have you fetch tags?' diff --git a/scripts/release/utils/git-client.ts b/scripts/release/utils/git-client.ts index 9b4e05144f8f..472ce6fbbe35 100644 --- a/scripts/release/utils/git-client.ts +++ b/scripts/release/utils/git-client.ts @@ -1,6 +1,33 @@ import { simpleGit } from 'simple-git'; -export const git = simpleGit(); +export const git = simpleGit({ + config: [ + /** + * ensures that prereleases are listed as earlier than stable releases. + * WITHOUT the config, this is the list of tags: + * v7.1.0-rc.2 + * v7.1.0-rc.1 + * v7.1.0-rc.0 + * v7.1.0-beta.3 + * ... + * v7.1.0 + * v7.0.2 + * + * WITH the config, v7.1.0 is correctly on the top: + * v7.1.0 + * v7.1.0-rc.2 + * v7.1.0-rc.1 + * v7.1.0-rc.0 + * v7.1.0-beta.3 + * ... + * v7.0.2 + * + * The top most tag is considered the "latest", which is used as a starting point for looking for changes for upcoming releases + * See https://stackoverflow.com/a/52680984 + */ + 'versionsort.suffix=-', + ], +}); export async function getLatestTag() { return (await git.tags(['v*', '--sort=-v:refname', '--merged'])).latest;