-
-
Notifications
You must be signed in to change notification settings - Fork 13
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(arrayvalidator): fixed runaway type instantiation with TypeScript >=5.1 #275
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #275 +/- ##
=======================================
Coverage 99.28% 99.28%
=======================================
Files 58 58
Lines 3477 3485 +8
Branches 713 713
=======================================
+ Hits 3452 3460 +8
Misses 17 17
Partials 8 8
Flags with carried forward coverage won't be shown. Click here to find out more.
☔ View full report in Codecov by Sentry. |
@sapphiredev pack |
Hey @favna, I've released this to NPM. You can install it for testing like so: npm install @sapphire/shapeshift@pr-275 |
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.
If it works, merge it
this fix can probably be reverted now that typescript 5.1.5 was released |
Fair point but because it's still an issue in older versions of TypeScript and we cannot be guaranteed that everyone uses caret versioning, or that their transitive dependencies are properly updated, we will keep the fix for now. It would be a breaking change if we would want to force a specific TS version. |
alright but 5.1.3 is the only stable typescript version that had the problem, there are no other versions with the issue, updating to a new patch release shouldn't be that much of an problem? especially to fix a regression. it wouldn't really force people that use older ts versions other than 5.1.3 |
Why this pr need revert tho? are there any issues with the current approach? |
Unless there are any glaring issues caused by this PR, we won't be reverting it any time soon, as (as far as we know) there are no issues with keeping it. Should that change, you're free to open an issue / revert |
Related: microsoft/TypeScript#54491