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

Migrate [&>*] to * variant, and [&_*] to ** variant #15022

Merged
merged 6 commits into from
Nov 18, 2024

Conversation

RobinMalfait
Copy link
Member

@RobinMalfait RobinMalfait commented Nov 17, 2024

This PR adds a migration to convert the [&>*] variant to the * variant. Additionally this PR also converts the [&_*] variant to the ** variant.

We use this variant in Catalyst for example, and now that the specificity is the same as *, we can use the more modern syntax instead.

Test plan:

Running this on Catalyst results in a diff like:
image

image

Note: the swapped order of variants is another codemod at work

@RobinMalfait RobinMalfait force-pushed the feat/migrate-to-child-variant branch from ca56186 to d7ef64f Compare November 17, 2024 21:54
@RobinMalfait RobinMalfait changed the title Migrate [&>*] to * variant Migrate [&>*] to * variant, and [&_*] to ** variant Nov 17, 2024
@RobinMalfait RobinMalfait force-pushed the feat/migrate-to-child-variant branch from 3a1858f to fe2981a Compare November 18, 2024 09:37
@RobinMalfait RobinMalfait marked this pull request as ready for review November 18, 2024 09:44
@RobinMalfait RobinMalfait requested a review from a team as a code owner November 18, 2024 09:44
@RobinMalfait RobinMalfait force-pushed the feat/migrate-to-child-variant branch from fe2981a to d86f06e Compare November 18, 2024 12:57
CHANGELOG.md Outdated Show resolved Hide resolved
CHANGELOG.md Outdated Show resolved Hide resolved
@RobinMalfait RobinMalfait merged commit 4687777 into next Nov 18, 2024
1 check passed
@RobinMalfait RobinMalfait deleted the feat/migrate-to-child-variant branch November 18, 2024 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants