-
-
Notifications
You must be signed in to change notification settings - Fork 265
Fix: Type parameter shadowing in PluginInstance methods after bundling #2897
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
Conversation
|
|
🦋 Changeset detectedLatest commit: a625980 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…r conflicts Renamed method-level type parameters to avoid conflicts with class-level type parameter: - forEach: T -> TKind - getPlugin: T -> TName - getPluginOrThrow: T -> TName This fixes the issue where the bundler was incorrectly resolving method-level type parameters to the class-level T$1 instead of keeping them separate. Co-authored-by: mrlubos <[email protected]>
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2897 +/- ##
=======================================
Coverage 30.89% 30.89%
=======================================
Files 488 488
Lines 40458 40458
Branches 2523 2523
=======================================
Hits 12501 12501
Misses 27922 27922
Partials 35 35
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
commit: |
After v0.86, the TypeScript declaration bundler renames the class-level type parameter
TtoT$1, causing method-level type parameters also namedTto incorrectly reference the class type parameter instead of their own scope.Changes
forEach:T→TKindgetPlugin,getPluginOrThrow:T→TNameImpact
Users can now use
forEachwithout type errors:Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.