-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix: rename typeParameters to typeArguments where needed #5384
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: rename typeParameters to typeArguments where needed #5384
Conversation
Thanks for the PR, @JoshuaKGoldberg! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day. |
✅ Deploy Preview for typescript-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
2cc8461
to
6573aa0
Compare
Thinking about this in terms of the broader ecosystem and the impacts - I wonder if we want to give consumers one major version to migrate? How about this: this version we add the new property and we mark the old property as If we wanted we could also do something like define a getter that throws when in a test environment to help flag plugins that they should migrate. WDYT? |
Yeah that makes sense. I'll put the The process env check + getter idea is really nifty - seems like a good followup feature request. I'd like to get it in v6... thinking 🤔 |
...tests/snapshots/typescript/expressions/tagged-template-expression-type-arguments.src.ts.shot
Outdated
Show resolved
Hide resolved
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## v6 #5384 +/- ##
=======================================
Coverage 87.06% 87.06%
=======================================
Files 365 365
Lines 12579 12579
Branches 3720 3720
=======================================
Hits 10952 10952
Misses 1278 1278
Partials 349 349
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
Yeah that makes sense. I'll put the @deprecated old properties in this PR (once I get the new ones working)
Once we've got this change, this is good-to-go I think.
|
BREAKING CHANGE:
Adds duplicate properties on the AST and deprecates their old names
PR Checklist
Overview
Renames
typeParameters
totypeArguments
in locations that are indeed providing type arguments.To recap the terminology:
Marked as a breaking change even though the old, now-
@deprecated
property is still there.