Skip to content

Update dependency tailwind-variants to v4 - #1904

Merged
nedtwigg merged 2 commits into
mainfrom
renovate/tailwind-variants-4.x
Nov 28, 2026
Merged

nedtwigg merged 2 commits into
mainfrom
renovate/tailwind-variants-4.x

Conversation

@renovate

@renovate renovate Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
tailwind-variants ^3.3.1 → ^4.0.0 age adoption passing confidence

Release Notes

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

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: (in timezone America/Los_Angeles)

  • Branch creation
    • Only on Monday (* * * * 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.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

Deploying mouseterm with  Cloudflare Pages  Cloudflare Pages

Latest commit: ad98381
Status: ✅  Deploy successful!
Preview URL: https://67bc4aac.mouseterm.pages.dev
Branch Preview URL: https://renovate-tailwind-variants-4.mouseterm.pages.dev

View logs

@dormouse-bot dormouse-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Build & Test is red at the Dependency disclosure is current step: Renovate doesn't run node website/scripts/generate-deps.js, so website/src/data/dependencies-npm.json still lists tailwind-variants 3.3.1 plus tailwind-merge 3.7.0 and tailwindcss 4.3.5. Those last two were there only as optional peers of v3, which v4 drops. I'll push the regenerated snapshot.

The major bump itself looks safe for our usage. Under v4 every tv() recipe in lib/src/components/design.tsx and pkButton in lib/src/remote/pocket-app/pocket-chrome.tsx produces the same class set as v3 with tailwind-merge. I checked all variant combinations combined with the class overrides used at call sites, 2,072 cases, and none differed. tsc -b and the website tests also pass against 4.1.0.

@nedtwigg
nedtwigg merged commit d4b61a8 into main Nov 28, 2026
19 checks passed
@nedtwigg
nedtwigg deleted the renovate/tailwind-variants-4.x branch November 28, 2026 20:34
@renovate

renovate Bot commented Nov 28, 2026

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

This branch was successfully deployed

1 active deployment
dormouse/preview — ad983813 Deployed Nov 28, 2026 by argos-ci[bot]
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.

2 participants