Skip to content

Commit

Permalink
Merge pull request #476 from storybookjs/release/0.18.2
Browse files Browse the repository at this point in the history
Release 0.18.2
  • Loading branch information
yannbf authored May 29, 2024
2 parents 8ada5e2 + 3b6a4b0 commit 7b9e50c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
"@storybook/csf": "^0.1.2",
"@storybook/csf-tools": "^8.0.0",
"@storybook/preview-api": "^8.0.0",
"@swc/core": "^1.3.18",
"@swc/core": "1.5.7",
"@swc/jest": "^0.2.23",
"expect-playwright": "^0.8.0",
"jest": "^29.6.4",
Expand Down
5 changes: 3 additions & 2 deletions src/playwright/transformPlaywrightJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ function v3TitleMapToV4TitleMap(titleIdToStories: Record<string, V3Story[]>) {
({
type: isV3DocsOnly(stories) ? 'docs' : 'story',
...story,
} satisfies V4Entry)
}) satisfies V4Entry
),
])
);
Expand All @@ -120,7 +120,8 @@ export const transformPlaywrightJson = (index: V3StoriesIndex | V4Index | Unsupp
Object.values((index as V3StoriesIndex).stories)
);
titleIdToEntries = v3TitleMapToV4TitleMap(titleIdToStories);
} else if (index.v === 4) {
// v4 and v5 are pretty much similar, so we process it in the same way
} else if (index.v === 4 || index.v === 5) {
// TODO: Once Storybook 8.0 is released, we should only support v4 and higher
titleIdToEntries = groupByTitleId<V4Entry>(Object.values((index as V4Index).entries));
} else {
Expand Down
4 changes: 2 additions & 2 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3970,7 +3970,7 @@ __metadata:
"@storybook/react": ^8.0.0
"@storybook/react-vite": ^8.0.0
"@storybook/test": ^8.0.0
"@swc/core": ^1.3.18
"@swc/core": 1.5.7
"@swc/jest": ^0.2.23
"@types/jest": ^29.0.0
"@types/node": ^16.4.1
Expand Down Expand Up @@ -4136,7 +4136,7 @@ __metadata:
languageName: node
linkType: hard

"@swc/core@npm:^1.3.18":
"@swc/core@npm:1.5.7":
version: 1.5.7
resolution: "@swc/core@npm:1.5.7"
dependencies:
Expand Down

0 comments on commit 7b9e50c

Please sign in to comment.