tailwindcss/packages
Philipp Spiess 317cf089b9
Upgrade: Migrate prefixed group and peer classes (#15208)
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: 

<img width="1257" alt="Screenshot 2024-11-27 at 12 17 25"
src="https://github.com/user-attachments/assets/1ee101e1-1d6a-4ce0-b0d4-8d51e5f6b0d2">

I've also added tests to our prefix upgrade integration test and the
prefix migration unit tests.
2024-11-27 11:34:27 -05:00
..
@tailwindcss-cli Set browser targets for iOS Safari, Firefox, and Chrome (#15166) 2024-11-26 11:22:12 +00:00
@tailwindcss-node Prepare v4.0.0-beta.2 release (#15104) 2024-11-22 11:17:21 -05:00
@tailwindcss-postcss Use oklab instead of oklch for color-mix(…) and gradients (#15201) 2024-11-27 06:18:31 -05:00
@tailwindcss-standalone Prepare v4.0.0-beta.2 release (#15104) 2024-11-22 11:17:21 -05:00
@tailwindcss-upgrade Upgrade: Migrate prefixed group and peer classes (#15208) 2024-11-27 11:34:27 -05:00
@tailwindcss-vite Set browser targets for iOS Safari, Firefox, and Chrome (#15166) 2024-11-26 11:22:12 +00:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Reduce precision of oklab() arguments in test snapshots (#15210) 2024-11-27 11:06:19 -05:00
tsconfig.base.json introduce v4 codebase 2024-03-05 14:29:15 +01:00