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
Add optional peer dependency for typescript #985
Conversation
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 cb3ef87:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey, @willbuckingham. Thank you for making this improvement happen! I've left a few thoughts and would love to hear your opinion on them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the great work on this, @willbuckingham. I've left one comment regarding the TypeScript version range given my latest findings of how TS is versioned. Would love to hear your opinion on the suggestions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @willbuckingham!
Let's see if the smoke tests pass, there have been some issues with them on this branch.
Some tests fail reliably with this change. I'd have to take a look at what's causing this. There are no installation warnings due to missing |
Hello, a quick comment to tell you that I'm interested in this PR. |
Hey, @amaury-hanser! Thank you for showing interest in this change. The task itself is complete here but we've got some issues with the smoke tests failing. I don't see a direct relation between adding an optional dependency and any failing tests, but there must be something we're missing. I've rebased this branch to use our recent GitHub Actions CI. Let's see how the build goes. |
This CI will pass now as I've removed smoke tests from the pull request jobs. It still fails the smoke tests, which would be nice to investigate. |
548fbd0
to
fed3b21
Compare
b0c5bf2
to
50670ca
Compare
This is likely to fail smoke tests. My initial guess is that the examples are rather outdated and it may force exceptions during the installation of MSW (although TS is marked as an optional dependency). |
Based on conversation in mswjs#975
@@ -141,6 +141,14 @@ | |||
"webpack": "^5.68.0", | |||
"webpack-dev-server": "^3.11.2" | |||
}, | |||
"peerDependencies": { | |||
"typescript": "4.2.x" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since we are about to merge #1073 (path parameter inference), I fail to remember which version of TypeScript added that feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pull request description mentions 4.1. Great!
Based on conversation in #975
Released: v0.40.0 🎉This has been released in v0.40.0! Make sure to always update to the latest version ( Predictable release automation by @ossjs/release. |
I'm not able to update to v0.40.0 because of dependency conflict (I have already installed npm output:
|
Please see the discussion in #1241. |
Based on conversation in #975