Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade storybook to v8.5.8 #917

Merged
merged 3 commits into from
Feb 20, 2025
Merged

Upgrade storybook to v8.5.8 #917

merged 3 commits into from
Feb 20, 2025

Conversation

emersion
Copy link
Member

See individual commits.

The file is TypeScript already, no need for type comments. Plus the
type comment is outdated and pulls the wrong package.

Signed-off-by: Simon Ser <[email protected]>
Currently the glob pattern matches too many files: it walks
all of node_modules/ and tries to find stories in there. This is
made more obvious with storybook v8.5.6, which warns about duplicate
stories, for instance:

    ../node_modules/@osrd-project/ui-warped-map/src/stories/SampleMap.stories.ts,../ui-warped-map/src/stories/SampleMap.stories.ts: Duplicate stories with id: warpedmap-sample-maps--path-longer

Make the glob pattern more restrictive to avoid this.

Signed-off-by: Simon Ser <[email protected]>
@emersion emersion requested a review from a team as a code owner February 19, 2025 13:04
@emersion emersion changed the title storybook: upgrade storybook to v8.5.8 Upgrade storybook to v8.5.8 Feb 19, 2025
@emersion emersion self-assigned this Feb 19, 2025
Copy link
Contributor

@Uriel-Sautron Uriel-Sautron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM tested

Copy link
Contributor

@SharglutDev SharglutDev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't need to update the package.json as well ?

@emersion
Copy link
Member Author

Here it's a bugfix version upgrade, so we don't need to (the code in this PR works fine with both the old and new versions of storybook). Side note, dependabot also doesn't update package.json in that case.

During a minor version upgrade, it's indeed best to bump the version in package.json, to indicate that the app might be broken with older versions, e.g. because features from the new version start being used (dependabot does this, but npm update doesn't).

@emersion emersion added this pull request to the merge queue Feb 20, 2025
Merged via the queue into dev with commit 661d4e4 Feb 20, 2025
6 checks passed
@emersion emersion deleted the emr/stories-pattern branch February 20, 2025 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants