Skip to content

fix(deps): update dependency tailwind-variants to v4 - #69

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/tailwind-variants-4.x
Open

renovate[bot] wants to merge 1 commit into
mainfrom
renovate/tailwind-variants-4.x

Conversation

@renovate

@renovate renovate Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
tailwind-variants ^3.3.1 → ^4.1.0 age confidence

Release Notes

heroui-inc/tailwind-variants (tailwind-variants)

v4.1.0

Compare Source

✨ Features
  • defineVariants helper exported from ., /lite, and /config for defining typed options outside tv() and reading them with VariantProps (#​325, #​326)
⚡ Performance
  • props cache keyed strictly on variant axes and compound condition keys so pass-through props (id, aria-label, onClick, children) hit the cache instead of busting or serializing (#​327)
  • string fast path for compound variant matching
🐛 Fixes
  • cold and cached calls agree on compound matching (false/"false" match null or omitted prop with no default; 1 matches "1") and prototype-named variants
  • cached slot results copy effective props so later mutations do not leak into slot overrides
  • cache-key collisions (null/"null", NaN/"NaN", arrays/objects) and in-place compound default mutations refreshing static results

v4.0.2

Compare Source

🐛 Fixes
  • types: compoundVariants checks stay linear on TS 5.7+ with many entries (#​322)

v4.0.1

Compare Source

🐛 Fixes
  • numeric variant keys accepted as numbers in props and VariantProps (#​318)
  • benchmark: released lite-inject comparison

v4.0.0

Compare Source

✨ Features
  • compiled merge tables; default entry exports twMerge, twJoin, and clsx
  • tailwind-variants/merge: merger without tv
  • tailwind-variants/config: twMergeConfig and extendTailwindMerge / createTailwindMerge / createTwMerge / fromTheme / validators / mergeConfigs / getDefaultConfig
  • multi-extend via extend: [a, b, c] (#​297)
  • empty class lists return "" (#​289)
  • array compound / variant classes apply to the base slot (#​263)
  • experimental debug mode
  • inject twMerge from tailwind-variants/lite (#​307)
  • cacheSize and prefix on the default tables
⚡ Performance
  • hot tv() about 3.5× vs 3.3.1, over 6× with compound variants
  • cn() about 2× vs 3.3.1 on join-and-merge, over 7× on interpolated arguments, about 2× on unique arbitrary values
  • pre-merged static core; class / className cached by text
  • compound variants kept out of cache keys (#​317)
🐛 Fixes
  • unlabeled font-[Inter] is family, font-[700] is weight
  • contain-*, bg-gradient-to-*, bg-conic, columns-auto, max-h-none, extra size scales
  • debug reporter stripped when NODE_ENV is production
  • compoundSlots no longer widens variant inference (#​316)
🚨 Breaking Changes
  • twMergeConfig: tailwind-variants/config only; default entry throws
  • experimentalParseClassName: removed
  • cn: cn("a", 0) → "a"; cn(0) → "0"
  • empty lists: "" instead of undefined
  • types: unknown variant / slot keys error
  • peers: tailwind-merge and tailwindcss removed
  • lite: function twMerge is called (3.3.1 treated it as true)
  • twMerge: false: cx join; whitespace normalized at compile
🛠 Chores
  • pnpm compile-tables
  • isolated benchmark suites
  • pkg.pr.new
  • toolchain on Vitest 5, tsup 9, Biome 2.6, pnpm 12; audit clean (#​315)

See .docs/migrations/v3-to-v4.md.

3.3.1 (2026-08-03)

Bug Fixes

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • Between 12:00 AM and 03:59 AM, only on Monday (* 0-3 * * 1)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the dependencies label Nov 2, 2026
@renovate
renovate Bot force-pushed the renovate/tailwind-variants-4.x branch 2 times, most recently from 96bcb9e to fe959db Compare November 10, 2026 02:16
@renovate
renovate Bot force-pushed the renovate/tailwind-variants-4.x branch from fe959db to 4fba8e4 Compare November 16, 2026 19:18
@renovate
renovate Bot force-pushed the renovate/tailwind-variants-4.x branch from 4fba8e4 to 4462f1d Compare November 26, 2026 16:42
@renovate
renovate Bot force-pushed the renovate/tailwind-variants-4.x branch from 4462f1d to 7e2bd4d Compare November 30, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants