Skip to content

Releases: dcastil/tailwind-merge

v1.10.0

20 Feb 09:15
36393aa
Compare
Choose a tag to compare

New Features

  • Add support for container query length units in arbitrary values by @LesnoyPudge in #204

Full Changelog: v1.9.1...v1.10.0

v1.9.1

04 Feb 21:54
8daac7f
Compare
Choose a tag to compare

Bug Fixes

  • Fix arbitrary floats not supported in opacity, scale, etc. by @dcastil in #196
    • Up until now classes like opacity-50 opacity-[.025] weren't merged correctly. You might not have noticed since classes with arbitrary values are defined after the default ones in the output stylesheet, but merging it the other way around (opacity-[.025] opacity-50) would have led to a styling bug.
    • This fix led to a new validator isNumber.
  • Fix arbitrary border color value being merged incorrectly by @dcastil in #195

Full Changelog: v1.9.0...v1.9.1

v1.9.0

29 Jan 15:59
170e2ce
Compare
Choose a tag to compare

New Features

  • Support decimals in T-shirt sizes by @farreldarian in #189

Documentation

Other

Full Changelog: v1.8.1...v1.9.0

v1.8.1

23 Dec 14:24
12b82c0
Compare
Choose a tag to compare

Bug Fixes

  • Fix incorrect class group conflicts in grid-related classes by @dcastil in #177

Full Changelog: v1.8.0...v1.8.1

Thanks to @aniravi24 for sponsoring tailwind-merge! ❤️

v1.8.0

05 Nov 16:15
d1a7f27
Compare
Choose a tag to compare

New Features

  • Add support for custom separator by @dcastil in #168
  • Add support for dynamic viewport units in arbitrary lengths by @dcastil in #166
  • Rename join to twJoin by @dcastil in #161
    • I deprecated the join function and renamed it to twJoin to make replacing it via search and replace easier since join is a common function name. You don't need to change anything right now, but if you have some spare time, rename join → twJoin in your code since the join function will be removed in the next major release.

Full Changelog: v1.7.0...v1.8.0

Thanks to @gjtorikian for sponsoring tailwind-merge! ❤️

v1.7.0

20 Oct 06:44
67954c6
Compare
Choose a tag to compare

New Features

Full Changelog: v1.6.2...v1.7.0

v1.6.2

13 Oct 19:36
cad2db2
Compare
Choose a tag to compare

Bug Fixes

  • Fix arbitrary numbers not working in stroke-width by @dcastil in #153
    • Now tailwind-merge handles classes like stroke-[3] correctly.
    • I deprecated the validator isArbitraryWeight and renamed it to isArbitraryNumber to reflect its broader use case. You don't need to change anything right now, but if you have some spare time, rename isArbitraryWeightisArbitraryNumber in your code since isArbitraryWeight will be removed in the next major release.

Other

  • Add package version number to dev releases by @dcastil in #154
    • Now dev releases don't start with 0.0.0-dev anymore and instead have the version number of the last release, like 1.6.1-dev. That makes it easier for tools like Renovate to understand which package version you're using in case you use dev releases.

Full Changelog: v1.6.1...v1.6.2

v1.6.1

30 Sep 10:42
80d7e7a
Compare
Choose a tag to compare

Bug Fixes

Full Changelog: v1.6.0...v1.6.1

v1.6.0

20 Aug 20:17
b32c973
Compare
Choose a tag to compare

New Features

Bug Fixes

  • Replace matchAll with exec by @dcastil in #133
    • This makes tailwind-merge work in older browsers which don't support String.prototype.matchAll()

Other

  • Add recipes section to docs by @dcastil in #134
  • Split docs into multiple files by @dcastil in #131
  • Add comments to released PRs and their related issues by @dcastil in #130
  • Add tests to check actual CJS and ESM package exports by @dcastil in #129
  • Remove ts files from npm package by @dcastil in #128

Full Changelog: v1.5.1...v1.6.0

Thanks to @charkour for sponsoring tailwind-merge! ❤️

v1.5.1

21 Jul 07:29
b1b0c3d
Compare
Choose a tag to compare

Bug Fixes

  • Fix arbitrary z-index value not being recognized by @dcastil in #116

Full Changelog: v1.5.0...v1.5.1

Thanks to @charkour for sponsoring tailwind-merge! ❤️