Repository navigation
fix(deps): update dependency tailwind-merge to v3 - #449
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
There was a problem hiding this comment.
ℹ️ No critical issues — two small release-hygiene suggestions.
Reviewed changes
Reviewed the Renovate major bump of tailwind-merge in @docubook/ui-react (mode: standard).
tailwind-mergev2 → v3 inui-react—cn()inpackages/ui-react/src/utils/cn.tsonly calls plaintwMerge(clsx(...)). It never usesextendTailwindMergeorcreateTailwindMerge, so none of the v3 config/API breaking changes apply. Sinceui-reactalready requirestailwindcss >=4, v3 is the version that matches. This is a correctness fix: v2 doesn't understand v4 class names.- Lockfile — the
ui-reactimporter now resolves3.7.0, which was already in the lockfile through@docubook/core. The2.6.1entry is gone.pnpm install --frozen-lockfilepasses, andui-reactbuild,test(85/85) andtypecheckall pass.tailwind-mergeis still listed as external inpackages/ui-react/vite.config.ts.
ℹ️ The fix won't reach ui-react users without a changeset
The published @docubook/[email protected] still declares tailwind-merge: ^2.6.1. Without a .changeset/*.md, the next release won't include this range change unless some unrelated change happens to version ui-react. When core moved to v3 in #435, a changeset shipped with it, and it shows up in the ui-react/core CHANGELOGs.
Technical details
# Missing changeset for ui-react runtime dependency major bump
## Affected sites
- packages/ui-react/package.json:138 — runtime `dependencies` range changes, but no `.changeset/*.md` in the PR
## Required outcome
- A patch changeset for `@docubook/ui-react` noting `tailwind-merge` → v3 (Tailwind v4 aware merging in `cn()`), so the published package picks it up. The packages are linked in `.changeset/config.json`, so expect the linked group to align.claude-opus-5-5 | 𝕏
There was a problem hiding this comment.
ℹ️ No critical issues. The changeset fixes the earlier release concern, and one example in it needs correcting (inline).
Reviewed changes
Reviewed the maintainer commit added since the last Pullfrog review (mode: standard).
- Added a
@docubook/ui-reactpatch changeset: thetailwind-mergerange change will now ship in the next release, which resolves the earlier missing-changeset concern. - Added
cn()regression tests: they cover a later-utility override, a color and font size kept side by side, and Tailwind v4 syntax. After apnpm install --frozen-lockfileon the PR branch,ui-reactvitest passes 88/88 ontailwind-merge3.7.0. Thep-2!/p-4!assertion fails on 2.6.1, so it does guard against a regression.
The earlier inline thread about using ^3.7.0 as the range floor is still open. This commit doesn't change that line.
claude-opus-5-5 | 𝕏
11edef5 to
3f8e78b
Compare
There was a problem hiding this comment.
✅ No new issues found. Both earlier suggestions are fixed.
Reviewed changes
This run reviewed what changed since the last Pullfrog review (11edef5 → 3f8e78b, mode: standard).
- Raised the
tailwind-mergefloor to^3.7.0:packages/ui-react/package.jsonnow uses the same floor as@docubook/core, so the twocn()implementations can't resolve to different 3.x releases. The lockfile importer specifier changed to match, andpnpm install --frozen-lockfilepasses. - Replaced the
bg-(--brand)example withp-(--gap): the changeset and thecn()test now use a CSS-variable shorthand whose merge result really differs between 2.6.1 and 3.x. Both v4-syntax assertions now guard the upgrade.cn.test.tspasses 6/6 on 3.7.0.
claude-opus-5-5 | 𝕏
…-merge 3 Raise the tailwind-merge floor to ^3.7.0, the range @docubook/core already uses, so both cn() implementations get the same Tailwind v4 fixes (e.g. color-mix() detection in 3.3.1). The v4 assertions (p-2!/p-4!, p-2/p-(--gap)) fail on 2.6.1 and pass on 3.7.0, so they guard the upgrade.
3f8e78b to
b1332a1
Compare

This PR contains the following updates:
^2.6.1→^3.0.0Release Notes
dcastil/tailwind-merge (tailwind-merge)
v3.7.0Compare Source
New Features
fromThemenow expose the theme key they read as athemeKeyproperty, so tooling can identify the referenced theme scale without calling the getter.[email protected].Bug Fixes
color()orlight-dark()being classified as lengths instead of colors by @ddussi in #712bg-conicnot merging with other background image classes by @dcastil in #708columns-autonot conflicting with othercolumnsclasses by @dcastil in #707inline-2xlnot merging by @dcastil in #706max-h-nonemissing in max-h class group by @mutewinter in #704pxnot overriding logical sides likepsby @dcastil in #705leading-nonebeing removed when the leading theme scale is overridden by @chatman-media in #689shadow-innerbeing classified as shadow color instead of shadow by @dcastil in #703Documentation
text-shadowtheme key to configuration docs by @dcastil in3e6d208Other
Full Changelog:
v3.6.0...v3.7.0Thanks to @brandonmcconnell, @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov, a private sponsor, @openclaw, @sourcegraph, @cesarvcanal, @CasperKristiansson, @jbisasky, @frontendmasters and more via @thnxdev for sponsoring tailwind-merge! ❤️
v3.6.0Compare Source
New Features
postfixLookupClassGroupsoption to config to support Tailwind utilities where a slash is part of the full class name, like named container queriesDocumentation
Other
6b2499cFull Changelog: dcastil/tailwind-merge@v3.5.0...v3.6.0
Thanks to @brandonmcconnell, @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov, a private sponsor, @block, @openclaw, @sourcegraph, @mike-healy and more via @thnxdev for sponsoring tailwind-merge! ❤️
v3.5.0Compare Source
New Features
Full Changelog: dcastil/tailwind-merge@v3.4.1...v3.5.0
Thanks to @brandonmcconnell, @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov, a private sponsor, @block, @openclaw, @sourcegraph and more via @thnxdev for sponsoring tailwind-merge! ❤️
v3.4.1Compare Source
Bug Fixes
Full Changelog: dcastil/tailwind-merge@v3.4.0...v3.4.1
Thanks to @brandonmcconnell, @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov, a private sponsor, @block, @openclaw, @sourcegraph and more via @thnxdev for sponsoring tailwind-merge! ❤️
v3.4.0Compare Source
New Features
Documentation
Other
Full Changelog: dcastil/tailwind-merge@v3.3.1...v3.4.0
Thanks to @brandonmcconnell, @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov and a private sponsor for sponsoring tailwind-merge! ❤️
v3.3.1Compare Source
Bug Fixes
color-mix()not being detected as color by @dcastil in #591Full Changelog: dcastil/tailwind-merge@v3.3.0...v3.3.1
Thanks to @brandonmcconnell, @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov, @sourcegraph, a private sponsor, @block and @shawt3000 for sponsoring tailwind-merge! ❤️
v3.3.0Compare Source
New Features
Full Changelog: dcastil/tailwind-merge@v3.2.0...v3.3.0
Thanks to @brandonmcconnell, @manavm1990, @langy, @roboflow, @syntaxfm, @getsentry, @codecov, @sourcegraph, a private sponsor and @block for sponsoring tailwind-merge! ❤️
v3.2.0Compare Source
New Features
Full Changelog: dcastil/tailwind-merge@v3.1.0...v3.2.0
Thanks to @brandonmcconnell, @manavm1990, @langy, @jamesreaco, @roboflow, @syntaxfm, @getsentry, @codecov, @sourcegraph and a private sponsor for sponsoring tailwind-merge! ❤️
v3.1.0Compare Source
New Features
Bug Fixes
via-(length:*)class being merged withvia-<color>classes accidentally by @dcastil in #559Documentation
Other
Full Changelog: dcastil/tailwind-merge@v3.0.2...v3.1.0
Thanks to @brandonmcconnell, @manavm1990, @langy, @jamesreaco, @roboflow, @syntaxfm, @getsentry, @codecov, @sourcegraph and a private sponsor for sponsoring tailwind-merge! ❤️
v3.0.2Compare Source
Bug Fixes
pxvalue not being recognized for some class groups by @dcastil in #538Full Changelog: dcastil/tailwind-merge@v3.0.1...v3.0.2
Thanks to @brandonmcconnell, @manavm1990, @langy, @jamesreaco, @roboflow, @syntaxfm, @getsentry, @codecov, @sourcegraph and a private sponsor for sponsoring tailwind-merge! ❤️
v3.0.1Compare Source
Bug Fixes
b9c136de22885eFull Changelog: dcastil/tailwind-merge@v3.0.0...v3.0.1
Thanks to @brandonmcconnell, @manavm1990, @langy, @jamesreaco, @roboflow, @syntaxfm, @getsentry, @codecov, @sourcegraph and a private sponsor for sponsoring tailwind-merge! ❤️
v3.0.0Compare Source
Tailwind CSS v4 is here and it's time to upgrade tailwind-merge to support it. tailwind-merge v3.0.0 is more accurate than ever and follows the Tailwind CSS spec more closely than in v2. That is thanks to Tailwind CSS v4 being more consistent than ever.
This release drops support for Tailwind CSS v3 and in turn adds support for Tailwind CSS v4. That means you should upgrade to Tailwind CSS v4 and tailwind-merge v3 together. All breaking changes are related to the Tailwind CSS v4 support.
Check out the migration guide and if you have any questions, feel free to create an issue.
Breaking Changes
isLengthvalidator was removed and split into separate validatorsisNumberandisFractionby @dcastil in #518-character anymore by @dcastil in #518orderSensitiveModifiersproperty in config when usingcreateTailwindMergeby @dcastil in #518DefaultThemeGroupIdstype union consists of different string literals than before by @dcastil in #518New Features
Bug Fixes
before:were treated as not order-sensitive. This is now fixed by @dcastil in #518Documentation
Full Changelog: dcastil/tailwind-merge@v2.6.0...v3.0.0
Thanks to @brandonmcconnell, @manavm1990, @langy, @jamesreaco, @roboflow, @syntaxfm, @getsentry, @codecov, @sourcegraph and a private sponsor for sponsoring tailwind-merge! ❤️
Configuration
📅 Schedule: (in timezone UTC)
🚦 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 has been generated by Mend Renovate CLI.