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

fix(typescript): support typescript 5.0 #1566

Merged
merged 3 commits into from
Mar 20, 2023
Merged

Conversation

mattcosta7
Copy link
Contributor

@mattcosta7 mattcosta7 commented Mar 17, 2023

fixes #1567

broaden typescript support to include 5.0

not sure if this is best a 'fix' 'chore' or 'feature' commit, since it's not really changing anything, besides broadening support.

Opted for fix to keep the version change a patch, but open to changing that!

tsup doesn't currently have a peer range including 5.0.x, however things seem to build correctly - not sure if we need to wait for tsup to update first, given build/test passes here

@codesandbox-ci
Copy link

codesandbox-ci bot commented Mar 17, 2023

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 84f3ac8:

Sandbox Source
MSW React Configuration

@@ -57,7 +57,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ts: ['4.4', '4.5', '4.6', '4.7', '4.8', '4.9']
ts: ['4.4', '4.5', '4.6', '4.7', '4.8', '4.9', '5.0']
Copy link
Contributor Author

Choose a reason for hiding this comment

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

do we have a set number of versions to support? should we pop off the 4.4?

Copy link
Member

Choose a reason for hiding this comment

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

@mattcosta7, yes, I'd drop 4.4 in this change.

broaden typescript support to include 5.0
@mattcosta7 mattcosta7 force-pushed the typescript-5-support branch from be52a5b to b52c364 Compare March 17, 2023 02:46
@mattcosta7 mattcosta7 marked this pull request as ready for review March 17, 2023 02:47
@mattcosta7 mattcosta7 requested a review from kettanaito March 17, 2023 02:49
Copy link
Member

@kettanaito kettanaito left a comment

Choose a reason for hiding this comment

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

Thanks for adding TS 5 support, @mattcosta7!

Could you please add a typings test for ts 5 in here as well? This way we will have a bit more assurance that the library compiles and runs correctly with that ts version. Thanks.

@mattcosta7
Copy link
Contributor Author

Thanks for adding TS 5 support, @mattcosta7!

Could you please add a typings test for ts 5 in here as well? This way we will have a bit more assurance that the library compiles and runs correctly with that ts version. Thanks.

sure thing - probably won't have time until later today or tomorrow though!

@mattcosta7 mattcosta7 requested a review from kettanaito March 17, 2023 19:55
@mattcosta7
Copy link
Contributor Author

think that should do it 84f3ac8

@Maxim-Mazurok Maxim-Mazurok mentioned this pull request Mar 18, 2023
1 task
Copy link
Member

@kettanaito kettanaito left a comment

Choose a reason for hiding this comment

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

Thanks, @mattcosta7! Let's ship this.

@kettanaito kettanaito merged commit c0616d1 into main Mar 20, 2023
@kettanaito kettanaito deleted the typescript-5-support branch March 20, 2023 09:51
@oteoe
Copy link

oteoe commented Mar 20, 2023

when can we expect a release ?

@kettanaito
Copy link
Member

Released: v1.1.1 🎉

This has been released in v1.1.1!

Make sure to always update to the latest version (npm i msw@latest) to get the newest features and bug fixes.


Predictable release automation by @ossjs/release.

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.

Typescript 5.0.X support
3 participants