-
-
Notifications
You must be signed in to change notification settings - Fork 517
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: support typescript 5.1 as a peer dependency #1633
fix: support typescript 5.1 as a peer dependency #1633
Conversation
Huh, codesandbox CI fails with:
... but the lock file does have entries for that package:
and the suggested command EDIT: redoing the |
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 888cc8d:
|
Hi, @gthb. This looks great. One thing to add, we also need to add an automated type check test for TS 5.1 You can find existing tests in here. Then adding a new version to the TS versions matrix should do it, I believe. Would you be interested in adding those, please? |
thanks for taking care of this @gthb @kettanaito |
Any updates on when this PR will be merged? I am facing peerdep issue with typescript 5.1.3 @types/react 18.2.8 |
@kettanaito Is that segmentation fault problem at all familiar to you? In CI:
and when I run locally (Node.js v16.18.0, also on macOS) I get a DeprecationWarning, and then the same segmentation fault but not preceded by the two failures in that test module:
I'm unfamiliar with msw (just trying to unblock things). I can go troubleshoot this, but I am maybe not the best one to do it, and I want to first check whether this is maybe already less opaque to somebody else. :) |
@gthb, I've not seen these errors before, I'm afraid. At first glance, they seem like system-related errors unable to process ESM (?). None of the changes introduced in this pull request should be causing this. Let me try this branch locally to confirm. |
I've reverted any changes outside of the |
Okay, the CI is green now. We'd have to update eslint module later. I'd much like to couple new TS versions support with the deprecation of older TS versions but since it'd be a breaking change we cannot afford it at the moment. No worries, I will drop 4.4 and, potentially, everything prior to 4.8 in the next breaking release. Thank you for working on this, @gthb! 👏 |
I narrowed it down, it's the Installing tsup 6.0.0 vs 5.12.9 involves no differences in other packages (dependencies of tsup), so the problem is within (or is triggered by something within) tsup itself. There are no mentions of “segfault” or “segmentation fault” in the tsup issue tracker, so this probably merits reporting! |
Reported in egoist/tsup#919 |
Could you please release a new minor version of msw now that this PR got merged in? Until a new minor version is released, it blocks projects depending on msw from updating to typescript 5.1 😞 |
@azangru, MSW is automatically released every 3rd day of the week: msw/.github/workflows/release.yml Line 5 in 4c7e952
I really need to write a notice about this somewhere and link it whenever people are asking. I will issue a manual release right now to unblock everyone with this change. |
Thank you 🙏 |
Loosen peer dependency constraint to unblock projects that use msw from upgrading to TypeScript 5.1.x.
Closes #1631
Also bump Typescript-related dev dependencies
@typescript-eslint/eslint-plugin
and@typescript-eslint/parser
to current minor versions.Some of the above required bumping
tsup
to 6.7.0 in which that project likewise loosened its peer dependency version constraint, from^4.1.0
to>=4.1.0
.