Skip to content

fix(deps): update dependency tailwind-merge to v3 - #449

Merged
gitfromwildan merged 2 commits into
mainfrom
renovate/tailwind-merge-3.x
Nov 5, 2026
Merged

gitfromwildan merged 2 commits into
mainfrom
renovate/tailwind-merge-3.x

Conversation

@gitfromwildan

Copy link
Copy Markdown
Member

This PR contains the following updates:

Package Change Age Confidence
tailwind-merge (source) ^2.6.1 → ^3.0.0 age confidence

Release Notes

dcastil/tailwind-merge (tailwind-merge)

v3.7.0

Compare Source

New Features
  • Prepare some upcoming changes by @​dcastil in #​713
    • Theme getters returned by fromTheme now expose the theme key they read as a themeKey property, so tooling can identify the referenced theme scale without calling the getter.
    • Release tags now include the package name, starting with [email protected].
Bug Fixes
Documentation
Other

Full Changelog: v3.6.0...v3.7.0

Thanks 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.0

Compare Source

New Features
  • Add support for Tailwind CSS v4.3 by @​dcastil in #​677
    • Add postfixLookupClassGroups option to config to support Tailwind utilities where a slash is part of the full class name, like named container queries
  • Add support for readonly array values by @​unional in #​652
Documentation
Other

Full 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.0

Compare 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.1

Compare 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.0

Compare 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.1

Compare Source

Bug Fixes
  • Fix arbitrary value using color-mix() not being detected as color by @​dcastil in #​591

Full 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.0

Compare 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.0

Compare 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.0

Compare Source

New Features
Bug Fixes
  • Fix length variable in via-(length:*) class being merged with via-<color> classes accidentally by @​dcastil in #​559
Documentation
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.2

Compare Source

Bug Fixes

Full 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.1

Compare Source

Bug Fixes

Full 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.0

Compare 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
  • Dropping support for Tailwind CSS v3 in favor of support for Tailwind CSS v4 by @​dcastil in #​518
  • Theme scales keys changed and now match Tailwind CSS v4 theme variable namespace exactly by @​dcastil in #​518
  • isLength validator was removed and split into separate validators isNumber and isFraction by @​dcastil in #​518
  • Prefix defined in config shouldn't include combining - character anymore by @​dcastil in #​518
  • Tailwind CSS v3 prefix position in class not supported anymore in favor of Tailwind CSS v4 position by @​dcastil in #​518
  • Custom separators are no longer supported by @​dcastil in #​518
  • New mandatory orderSensitiveModifiers property in config when using createTailwindMerge by @​dcastil in #​518
  • DefaultThemeGroupIds type union consists of different string literals than before by @​dcastil in #​518
  • Classes removed in Tailwind CSS v4 are not supported by tailwind-merge anymore by @​dcastil in #​518
New Features
  • Support for new important modifier position at the end of class by @​dcastil in #​518
  • Support for arbitrary CSS variable syntax by @​dcastil in #​518
  • There are a bunch of new validators used by tailwind-merge, primarily for new Tailwind CSS v4 features like arbitrary CSS variables by @​dcastil in #​518
Bug Fixes
  • Previously some order-sensitive modifiers like before: were treated as not order-sensitive. This is now fixed by @​dcastil in #​518
Documentation

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)

  • Branch creation
    • "on monday"
  • 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 has been generated by Mend Renovate CLI.

@vercel

vercel Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
docu Ignored Ignored Preview Nov 4, 2026 11:57pm UTC

@gitfromwildan gitfromwildan added dependencies Pull requests that update a dependency file renovate labels Nov 4, 2026

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ℹ️ 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-merge v2 → v3 in ui-react — cn() in packages/ui-react/src/utils/cn.ts only calls plain twMerge(clsx(...)). It never uses extendTailwindMerge or createTailwindMerge, so none of the v3 config/API breaking changes apply. Since ui-react already requires tailwindcss >=4, v3 is the version that matches. This is a correctness fix: v2 doesn't understand v4 class names.
  • Lockfile — the ui-react importer now resolves 3.7.0, which was already in the lockfile through @docubook/core. The 2.6.1 entry is gone. pnpm install --frozen-lockfile passes, and ui-react build, test (85/85) and typecheck all pass. tailwind-merge is still listed as external in packages/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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using claude-opus-5-5 | 𝕏

Comment thread packages/ui-react/package.json Resolved

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ℹ️ 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-react patch changeset: the tailwind-merge range 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 a pnpm install --frozen-lockfile on the PR branch, ui-react vitest passes 88/88 on tailwind-merge 3.7.0. The p-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.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using claude-opus-5-5 | 𝕏

Comment thread .changeset/ui-react-tailwind-merge-3.md Resolved
@gitfromwildan
gitfromwildan force-pushed the renovate/tailwind-merge-3.x branch from 11edef5 to 3f8e78b Compare November 4, 2026 15:48

@pullfrog pullfrog Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ 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-merge floor to ^3.7.0: packages/ui-react/package.json now uses the same floor as @docubook/core, so the two cn() implementations can't resolve to different 3.x releases. The lockfile importer specifier changed to match, and pnpm install --frozen-lockfile passes.
  • Replaced the bg-(--brand) example with p-(--gap): the changeset and the cn() 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.ts passes 6/6 on 3.7.0.

Pullfrog  | View workflow run | Using 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.
@gitfromwildan
gitfromwildan force-pushed the renovate/tailwind-merge-3.x branch from 3f8e78b to b1332a1 Compare November 4, 2026 23:57
@gitfromwildan
gitfromwildan merged commit 98ad1d1 into main Nov 5, 2026
16 checks passed
@gitfromwildan
gitfromwildan deleted the renovate/tailwind-merge-3.x branch November 5, 2026 00:09
@github-actions github-actions Bot mentioned this pull request Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file renovate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant