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

Upgrade: Migrate prefixed group and peer classes #15208

Merged
merged 1 commit into from
Nov 27, 2024

Conversation

philipp-spiess
Copy link
Member

@philipp-spiess philipp-spiess commented Nov 27, 2024

Resolves #15193

This PR fixes an issue where group and peer would not have their prefixes migrated as part of the upgrade script. We do this by registering group and peer as utilities during the codemods. This way, parseCandidate will find these classes to be valid Tailwind candidates and the prefix can be migrated just like any other utility.

Test Plan

Tried it with the v3 upgrade playground in the repo and it worked fine:

Screenshot 2024-11-27 at 12 17 25

I've also added tests to our prefix upgrade integration test and the prefix migration unit tests.

@philipp-spiess philipp-spiess marked this pull request as ready for review November 27, 2024 11:20
@philipp-spiess philipp-spiess requested a review from a team as a code owner November 27, 2024 11:20
@philipp-spiess philipp-spiess force-pushed the fix/group-and-peer-classes-migration branch from 3a16360 to d837068 Compare November 27, 2024 16:13
@adamwathan adamwathan merged commit 317cf08 into next Nov 27, 2024
1 check passed
@adamwathan adamwathan deleted the fix/group-and-peer-classes-migration branch November 27, 2024 16:34
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.

[v4] Upgrade does not handle prefix for group tw-grouptw:group
2 participants