Skip to content
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

[babel 8] Rename superTypeParameters -> superTypeArguments #16997

Conversation

nicolo-ribaudo
Copy link
Member

Q                       A
Fixed Issues? Towards #16679
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
License MIT

The general rule should be that parameters are what you receive, while arguments are what you pass to somebody else. We already apply this, for example, in function and call expressions.

We also need to rename some .typeParameters to .typeArguments. This PR is the first easy step :)

@nicolo-ribaudo nicolo-ribaudo added PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release pkg: parser PR: Needs Docs labels Dec 4, 2024
@babel-bot
Copy link
Collaborator

babel-bot commented Dec 4, 2024

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/58444

@nicolo-ribaudo nicolo-ribaudo force-pushed the rename-superTypeParameters-to-superTypeArguments branch from 9d8abd5 to a7ce086 Compare December 4, 2024 16:04
@@ -22,6 +22,8 @@ const ignoredFields = {
TSDeclareMethod: { id: true },
...(process.env.BABEL_8_BREAKING
? {
ClassExpression: { superTypeParameters: true },
ClassDeclaration: { superTypeParameters: true },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will extract 763ebaa into a new PR so that we don't have to take care of Babel 7/8 AST changes in this test.

@nicolo-ribaudo nicolo-ribaudo force-pushed the rename-superTypeParameters-to-superTypeArguments branch from 7bdc2d4 to 30658c6 Compare December 6, 2024 11:14
@nicolo-ribaudo nicolo-ribaudo merged commit 5511172 into babel:main Dec 6, 2024
56 checks passed
@nicolo-ribaudo nicolo-ribaudo deleted the rename-superTypeParameters-to-superTypeArguments branch December 6, 2024 14:31
@nicolo-ribaudo
Copy link
Member Author

Will open a docs PR soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pkg: parser PR: Breaking Change 💥 A type of pull request used for our changelog categories for next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants