Skip to content

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

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 12, 2026 •

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
tailwind-variants 3.2.2 → 4.0.1 age confidence

Release Notes

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

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

v3.3.1

Compare Source

Bug Fixes

v3.3.0

Compare Source

3.2.1 (2025-11-22)

Bug Fixes
  • update cn function type and import cx from tailwind-variants/lite (#​285) (3a3afce)

Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • 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 these updates again.


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

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

@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@renovate
renovate Bot force-pushed the renovate/tailwind-variants-4.x branch from 621f64a to a678059 Compare November 14, 2026 08:11
@renovate
renovate Bot force-pushed the renovate/tailwind-variants-4.x branch from a678059 to 817b139 Compare November 16, 2026 15:09
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.

0 participants