tailwindcss/packages
Jordan Pittman 29687e0183
Discard candidates with an empty data type (#19172)
Fixes
https://github.com/tailwindlabs/tailwindcss-intellisense/issues/1479

Maybe should close
https://github.com/tailwindlabs/tailwindcss-intellisense/pull/1480 —
perhaps we can find a workaround there for older versions?

We're building up a class name in code to validate if something is a
valid variant: `{variant}:[color:red]`

if `{variant}` got replaced with `bg-[` then we'd produce
`bg-[:[color:red]` and this parsed as a valid candidate:
```
bg-[:[color:red]
^^                root: `bg`
   ^              data type: `` (empty string) — this should be invalid
     ^^^^^^^^^^   value: `[color:red`
```

The value isn't valid _but_ the syntax for arbitrary values is pretty
lax in core. Oxide already won't pick something like this up though so
no problem there. Only a problem for something like IntelliSense or
clients using the compile() API directly.
2025-10-22 06:14:43 -04:00
..
@tailwindcss-browser Release 4.1.15 (#19159) 2025-10-20 14:48:42 +02:00
@tailwindcss-cli Release 4.1.15 (#19159) 2025-10-20 14:48:42 +02:00
@tailwindcss-node Update jiti 2.6.0 → 2.6.1 (patch) (#19160) 2025-10-20 14:59:11 +02:00
@tailwindcss-postcss Release 4.1.15 (#19159) 2025-10-20 14:48:42 +02:00
@tailwindcss-standalone Release 4.1.15 (#19159) 2025-10-20 14:48:42 +02:00
@tailwindcss-upgrade Improve memory usage during canonicalization (#19171) 2025-10-21 16:55:30 +02:00
@tailwindcss-vite Release 4.1.15 (#19159) 2025-10-20 14:48:42 +02:00
internal-example-plugin Prefix internal modules with internal-* (#14074) 2024-07-29 10:58:07 -04:00
tailwindcss Discard candidates with an empty data type (#19172) 2025-10-22 06:14:43 -04:00
tsconfig.base.json Improve debug logs (#15303) 2024-12-11 15:27:20 +01:00