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

TypeScript: Downgrade to the last version of type-fest that doesn't need typescript 5.0 #23574

Merged
merged 2 commits into from
Jul 24, 2023

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented Jul 24, 2023

Closes #23554

What I did

I looked up which version of type-fest started depending on typescript 5.0, and downgraded to the last available version that doesn't.

How to test

@j-m It'd be great if you could help us verify this change will solve your issue.

Checklist

  • Make sure your changes are tested (stories and/or unit, integration, or end-to-end tests)
  • Make sure to add/update documentation regarding your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Maintainers

  • When this PR is ready for testing, make sure to add ci:normal, ci:merged or ci:daily GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found in code/lib/cli/src/sandbox-templates.ts
  • Make sure this PR contains one of the labels below.

["cleanup", "BREAKING CHANGE", "feature request", "bug", "build", "documentation", "maintenance", "dependencies", "other"]

@socket-security
Copy link

socket-security bot commented Jul 24, 2023

No top level dependency changes detected. Learn more about Socket for GitHub ↗︎

@ndelangen ndelangen added patch:yes Bugfix & documentation PR that need to be picked to main branch and removed patch:no labels Jul 24, 2023
@ndelangen
Copy link
Member Author

I'm digging a bit deeper, and this is what I found:
At storybook 7.0 release we had type-fest@^2.19.0, which has as a minimum TS version:

"typescript": "^4.6.3",

Considering every minor release of typescript is effectively a breaking change... How do I move forward with this?

@shilman @kasperpeulen

@kasperpeulen
Copy link
Contributor

I think we should roll back to type-fest 2.19 indeed.
According to their docs, that version supported TS 4.2 and higher.
https://github.com/sindresorhus/type-fest/blame/28f3e481eb6c5d7fba465fa9fed23889c9a6685b/readme.md

@j-m j-m mentioned this pull request Jul 24, 2023
Copy link
Contributor

@kasperpeulen kasperpeulen left a comment

Choose a reason for hiding this comment

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

LGTM

@ndelangen ndelangen merged commit 77b040c into next Jul 24, 2023
@ndelangen ndelangen deleted the norbert/downgrade-type-fest branch July 24, 2023 16:37
@github-actions
Copy link
Contributor

Fails
🚫

Please choose only one of these labels: ["maintenance","dependencies"]

Generated by 🚫 dangerJS against 028d6fb

@github-actions github-actions bot mentioned this pull request Jul 27, 2023
33 tasks
storybook-bot pushed a commit that referenced this pull request Aug 3, 2023
TypeScript: Downgrade to the last version of type-fest that doesn't need typescript 5.0
(cherry picked from commit 77b040c)
@github-actions github-actions bot mentioned this pull request Aug 3, 2023
32 tasks
storybook-bot pushed a commit that referenced this pull request Aug 4, 2023
TypeScript: Downgrade to the last version of type-fest that doesn't need typescript 5.0
(cherry picked from commit 77b040c)
storybook-bot pushed a commit that referenced this pull request Aug 7, 2023
TypeScript: Downgrade to the last version of type-fest that doesn't need typescript 5.0
(cherry picked from commit 77b040c)
storybook-bot pushed a commit that referenced this pull request Aug 7, 2023
TypeScript: Downgrade to the last version of type-fest that doesn't need typescript 5.0
(cherry picked from commit 77b040c)
storybook-bot pushed a commit that referenced this pull request Aug 7, 2023
TypeScript: Downgrade to the last version of type-fest that doesn't need typescript 5.0
(cherry picked from commit 77b040c)
storybook-bot pushed a commit that referenced this pull request Aug 7, 2023
TypeScript: Downgrade to the last version of type-fest that doesn't need typescript 5.0
(cherry picked from commit 77b040c)
storybook-bot pushed a commit that referenced this pull request Aug 8, 2023
TypeScript: Downgrade to the last version of type-fest that doesn't need typescript 5.0
(cherry picked from commit 77b040c)
storybook-bot pushed a commit that referenced this pull request Aug 9, 2023
TypeScript: Downgrade to the last version of type-fest that doesn't need typescript 5.0
(cherry picked from commit 77b040c)
storybook-bot pushed a commit that referenced this pull request Aug 9, 2023
TypeScript: Downgrade to the last version of type-fest that doesn't need typescript 5.0
(cherry picked from commit 77b040c)
storybook-bot pushed a commit that referenced this pull request Aug 9, 2023
TypeScript: Downgrade to the last version of type-fest that doesn't need typescript 5.0
(cherry picked from commit 77b040c)
@kasperpeulen kasperpeulen removed the patch:yes Bugfix & documentation PR that need to be picked to main branch label Aug 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci:normal dependencies maintenance User-facing maintenance tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: Storybook React renderer fails to compile with Typescript <5
3 participants