Releases: dcastil/tailwind-merge
v3.0.2
Bug Fixes
- Fix
px
value not being recognized for some class groups by @dcastil in #538 - Fix doc comment being in incorrect place in default config by @gjtorikian in #526
Full Changelog: v3.0.1...v3.0.2
Thanks to @brandonmcconnell, @manavm1990, @langy, @jamesreaco, @roboflow, @syntaxfm, @getsentry, @codecov and a private sponsor for sponsoring tailwind-merge! ❤️
v3.0.1
Bug Fixes
- Update info about supported Tailwind CSS version in README by @dcastil in b9c136d
- Update incorrect link in v3 changelog by @dcastil in e22885e
Full Changelog: v3.0.0...v3.0.1
Thanks to @brandonmcconnell, @manavm1990, @langy, @jamesreaco, @roboflow, @syntaxfm, @getsentry, @codecov and a private sponsor for sponsoring tailwind-merge! ❤️
v3.0.0
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 validatorsisNumber
andisFraction
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 usingcreateTailwindMerge
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
- Added section explaining order-sensitive modifiers to configuration docs by @dcastil in #518
Full Changelog: v2.6.0...v3.0.0
Thanks to @brandonmcconnell, @manavm1990, @langy, @jamesreaco, @roboflow, @syntaxfm, @getsentry, @codecov and a private sponsor for sponsoring tailwind-merge! ❤️
v2.6.0
New Features
Full Changelog: v2.5.5...v2.6.0
Thanks to @brandonmcconnell, @manavm1990, @langy, @jamesreaco, @roboflow, @syntaxfm, @getsentry, @codecov, @sourcegraph, a private sponsor and more via @thnxdev for sponsoring tailwind-merge! ❤️
v2.5.5
Bug Fixes
- Fix typo "fractons" instead of "fractions" in "stacked-fractions" class by @oliverhaas in #492
Documentation
Full Changelog: v2.5.4...v2.5.5
Thanks to @brandonmcconnell, @manavm1990, @langy, @jamesreaco, @roboflow, @syntaxfm, @getsentry, @codecov and more via @thnxdev for sponsoring tailwind-merge! ❤️
v2.5.4
Bug Fixes
Full Changelog: v2.5.3...v2.5.4
Thanks to @brandonmcconnell, @manavm1990, @langy, @jamesreaco, @roboflow and @codecov for sponsoring tailwind-merge! ❤️
v2.5.3
Bug Fixes
- Add missing logical border color properties by @sherlockdoyle in #478
Documentation
- Add benchmark reporting to PRs and commits by @XantreDev in #455
Other
Full Changelog: v2.5.2...v2.5.3
Thanks to @brandonmcconnell, @manavm1990, @langy, @jamesreaco, @roboflow, @xeger and @MrDeatHHH for sponsoring tailwind-merge! ❤️
v2.5.2
Sorry for all the bugs today!
Bug Fixes
Full Changelog: v2.5.1...v2.5.2
Thanks to @brandonmcconnell, @manavm1990, @langy, @jamesreaco and @jamaluddinrumi for sponsoring tailwind-merge! ❤️
v2.5.1
Bug Fixes
Full Changelog: v2.5.0...v2.5.1
Thanks to @brandonmcconnell, @manavm1990, @langy, @jamesreaco and @jamaluddinrumi for sponsoring tailwind-merge! ❤️
v2.5.0
New Features
- Performance improvements in mergeClassList by @XantreDev in #450 and @rortan134 in #445
- Use arrow functions where possible to help with minification by @VIKTORVAV99 in #449
Bug Fixes
Full Changelog: v2.4.0...v2.5.0
Thanks to @brandonmcconnell, @manavm1990, @langy and @jamesreaco for sponsoring tailwind-merge! ❤️