tailwind-merge
3.7.1 · 19 Nov 2026MIT118.2M / weekRepositorynpmAtom feed
1.14.0 is the newest release of 1.x.
In short
4 new1 fixed2 changed
Release note
New Features
Add support for arrays as argument
You can now use arbitrarily nested arrays as arguments to
twMerge. That's especially handy for nested conditions.twMerge('…', someBool && ['…', anotherBool && '…'])The joining of arguments is done with a new
joinfunction which is present in the tailwind-merge exports as well. It has the same functionality as clsx but without support for objects as arguments which makes it a little faster.Why no objects as arguments? You can read about my reasoning in github.com/dcastil/tailwind-merge/discussions/1….
Bug Fixes
Replace matchAll with exec
This makes tailwind-merge work in older browsers which don't support
String.prototype.matchAll()
Other
Add recipes section to docs
Split docs into multiple files
Add comments to released PRs and their related issues
Add tests to check actual CJS and ESM package exports
Remove ts files from npm package
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.