Skip to content

tailwind-merge 1.6.2

Bug Fixes

  • Fix arbitrary numbers not working in stroke-width by @dcastil in https://github.com/dcastil/tailwind-merge/pull/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 https://github.com/dcastil/tailwind-merge/pull/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: https://github.com/dcastil/tailwind-merge/compare/v1.6.1...v1.6.2