tailwindcss/packages
Robin Malfait 9cb38993d2
Upgrade deprecated order-none to order-0 (#18126)
This PR adds an initial version for deprecated utilities. Right now it's
hardcoded to just the `order-none` utility.

This means that `order-0` and `order-[0]` will not be migrated to
`order-none` anymore. We did that automatically because we prefer named
utilities over bare values and arbitrary values.

With this PR, `order-none` is ignored.

Similarly, `order-none` will be migrated to `order-0` instead (defined
in a separate migration for deprecated values). Made it a new migration
instead of using the legacy migration because there all utilities still
exist, but are defined differently (e.g.: `shadow`, `shadow-sm`,
`shadow-xs`).

This PR is also an initial version, it doesn't add any form of
`deprecated` flag or feature on a per-utility implementation basis. This
therefor has the side effect that if you have a custom `order-none`
defined, that it will also be ignored during migrations.


## Test plan

1. Added tests to ensure the `order-0` is not migrated to `order-none`
2. Added tests to ensure `order-none` is migrated to `order-0` (if it's
safe to do so, the signature is still computed to ensure the output is
the same).
3. Ran this on the Tailwind Plus codebase and ensured that `order-0` is
not migrated to `order-none` and that `order-none` is migrated to
`order-0`.

---------

Co-authored-by: Jordan Pittman <jordan@cryptica.me>
2025-05-23 15:21:21 +00:00
..
@tailwindcss-browser Prepare v4.1.7 release (#18040) 2025-05-15 15:31:18 +02:00
@tailwindcss-cli Prepare v4.1.7 release (#18040) 2025-05-15 15:31:18 +02:00
@tailwindcss-node Prepare v4.1.7 release (#18040) 2025-05-15 15:31:18 +02:00
@tailwindcss-postcss Fix PostCSS crash when using toJSON() (#18083) 2025-05-19 11:28:09 -04:00
@tailwindcss-standalone Prepare v4.1.7 release (#18040) 2025-05-15 15:31:18 +02:00
@tailwindcss-upgrade Upgrade deprecated order-none to order-0 (#18126) 2025-05-23 15:21:21 +00:00
@tailwindcss-vite Prepare v4.1.7 release (#18040) 2025-05-15 15:31:18 +02:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Upgrade deprecated order-none to order-0 (#18126) 2025-05-23 15:21:21 +00:00
tsconfig.base.json Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00