Repository navigation
Update dependency tailwind-variants to v4 - #1904
Conversation
Deploying mouseterm with
|
| Latest commit: |
ad98381
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://67bc4aac.mouseterm.pages.dev |
| Branch Preview URL: | https://renovate-tailwind-variants-4.mouseterm.pages.dev |
dormouse-bot
left a comment
There was a problem hiding this comment.
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.
Edited/Blocked NotificationRenovate 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. |
This PR contains the following updates:
^3.3.1→^4.0.0Release Notes
heroui-inc/tailwind-variants (tailwind-variants)
v4.0.2Compare Source
🐛 Fixes
compoundVariantschecks stay linear on TS 5.7+ with many entries (#322)v4.0.1Compare Source
🐛 Fixes
VariantProps(#318)v4.0.0Compare Source
✨ Features
twMerge,twJoin, andclsxtailwind-variants/merge: merger withouttvtailwind-variants/config:twMergeConfigandextendTailwindMerge/createTailwindMerge/createTwMerge/fromTheme/validators/mergeConfigs/getDefaultConfigextend: [a, b, c](#297)""(#289)debugmodetwMergefromtailwind-variants/lite(#307)cacheSizeandprefixon the default tables⚡ Performance
tv()about 3.5× vs 3.3.1, over 6× with compound variantscn()about 2× vs 3.3.1 on join-and-merge, over 7× on interpolated arguments, about 2× on unique arbitrary valuesclass/classNamecached by text🐛 Fixes
font-[Inter]is family,font-[700]is weightcontain-*,bg-gradient-to-*,bg-conic,columns-auto,max-h-none, extra size scalesNODE_ENVis productioncompoundSlotsno longer widens variant inference (#316)🚨 Breaking Changes
tailwind-variants/configonly; default entry throwscn("a", 0)→"a";cn(0)→"0"""instead ofundefinedtailwind-mergeandtailwindcssremovedtwMergeis called (3.3.1 treated it astrue)cxjoin; whitespace normalized at compile🛠 Chores
pnpm compile-tablesSee .docs/migrations/v3-to-v4.md.
3.3.1 (2026-08-03)
Bug Fixes
Configuration
📅 Schedule: (in timezone America/Los_Angeles)
* * * * 1)🚦 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.
This PR was generated by Mend Renovate. View the repository job log.