Skip to content

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

Merged
RobinMalfait merged 6 commits into
nextfrom
feat/migrate-to-child-variant
Nov 18, 2024
Merged

Migrate [&>*] to * variant, and [&_*] to ** variant#15022
RobinMalfait merged 6 commits into
nextfrom
feat/migrate-to-child-variant

Conversation

@RobinMalfait

@RobinMalfait RobinMalfait commented Nov 17, 2024

Copy link
Copy Markdown
Member

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
Comment thread CHANGELOG.md Outdated
Comment thread CHANGELOG.md Outdated
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