Skip to content

Releases: dcastil/tailwind-merge

v1.5.0

19 Jul 12:12
d34fea9
Compare
Choose a tag to compare

New Features

Full Changelog: v1.4.0...v1.5.0

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

v1.4.0

11 Jul 08:20
47ed804
Compare
Choose a tag to compare

New Features

  • Optimize runtime performance by using Map by @dcastil in #105

Bug Fixes

  • Fix overriding w-full with w-fit not working by @dcastil in #112

Other

  • Publish dev releases of every commit on main branch by @dcastil in #104

Full Changelog: v1.3.0...v1.4.0

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

v1.3.0

12 Jun 18:25
61a78a2
Compare
Choose a tag to compare

New Features

Bug Fixes

Other

Full Changelog: v1.2.1...v1.3.0

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

v1.2.1

22 Mar 20:02
40cccd2
Compare
Choose a tag to compare

Bug Fixes

  • Fix isArbitraryWeight incorrectly using weight: instead of number: for disambiguation for arbitrary values by @liuqiang1357 in #85
  • Fix typos in README.md by @Gri-ffin in #82

Full Changelog: v1.2.0...v1.2.1

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

v1.2.0

08 Jan 20:30
ffacfa9
Compare
Choose a tag to compare

New Features

Full Changelog: v1.1.1...v1.2.0

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

v1.1.1

17 Dec 08:21
dc940da
Compare
Choose a tag to compare

Bug Fixes

Full Changelog: v1.1.0...v1.1.1

v1.1.0

16 Dec 20:40
b425da5
Compare
Choose a tag to compare

New Features

  • Fix missing arbitrary value support in some class groups by @dcastil in #73
    • Adds arbitrary value support for class groups grayscale, invert, sepia, grow, shrink, object-position, shadow, drop-shadow, rotate, skew and transform-origin
    • Fixes break-inside classes being merged incorrectly
    • Adds missing classes overline, underline-offset, content-none
    • Fixes typo in class group name bg-repeeatbg-repeat
    • Adds isArbitraryShadow validator
  • Improve tree-shaking by @dcastil in #65
    • I changed the build output significantly here and removed "type": "module" from the package.json. I did test the new npm package output in Node and in the browser, but it's hard to account for every possible build system tailwind-merge is used in. If some issues come up with bundling tailwind-merge, please open an issue!

Bug Fixes

  • Fix stroke-color utilities being merged with stroke-width utilities by @dcastil in #72
  • Fix mix-blend utilities getting merged incorrectly by @dcastil in #71

Full Changelog: v1.0.0...v1.1.0

v1.0.0

10 Dec 20:19
bee0d91
Compare
Choose a tag to compare

v1! 🎉

Overview

After being 5 months on v0 I think it's time to release a stable version of tailwind-merge. Tailwind v3 was released yesterday and it's no coincidence that I'm releasing tailwind-merge v1 today. I added full support for Tailwind v3 so you can update both at once.

There are no breaking changes in the tailwind-merge types and some breaking changes for a small number of users in the return values, so you should get through smoothly.

By the way, you can now sponsor this project. 😊

Breaking Changes

  • twMerge, extendTailwindMerge

    • Outline utilities from Tailwind v2 don't get merged anymore since they were replaced by outline width, outline style, outline offset and outline color in Tailwind v3 (55ab167, #63)
    • The classes overflow-ellipsis and overflow-clip will not get merged with class truncate anymore, but the new Tailwind v3 classes text-ellipsis and text-clip will. (65b03e4, #63)
    • The classes decoration-slice and decoration-clone won't get merged anymore and box-decoration-slide nad box-decoration-clone will (bfe2cc9, #63)
  • getDefaultConfig

    • Removed class group outline since it was removed in Tailwind v3 (55ab167, #63)
    • Renamed class group vertival-alignment (yes, the typo was in the code) to vertical-align (1269ce6, #63)
    • Renamed class groups flex-basis, flex-grow and flex-shrink to basis, grow and shrink to stay consistent with Tailwind v3 (e6d8912, #63)
  • validators

    • isCustomLength and isCustomValue were renamed to isArbitraryLength and isArbitraryValue to be consistent with naming in Tailwind v3 documentation (adc3c02, #63)

New Features

  • Add support for Tailwind v3 by @dcastil in #63
    • Support for all the new utility classes and variants in Tailwind v3.0.0
    • Support for arbitrary properties like [--my-var:20px]
    • Support for important modifiers in arbitrary properties like ![--my-very-important-var: 21px]
    • Support for new labels for classes with arbitrary value: size, position, url, weight and family
    • New validators isTshirtSize, isArbitrarySize, isArbitraryPosition, isArbitraryUrl and isArbitraryWeight, check them out in the documentation! (fec2b18, f8acd7c, #63)

Full Changelog: v0.9.0...v1.0.0

v0.9.0

24 Nov 09:45
b8e47c8
Compare
Choose a tag to compare

New Features

  • Mimic theme from Tailwind config in tailwind-merge config by @dcastil in #55
    • Adds support for some theme properties like spacing, borderRadius, etc. More on that in the theme docs.

Full Changelog: v0.8.2...v0.9.0

v0.8.2

02 Nov 13:34
fb8c043
Compare
Choose a tag to compare

Bug Fixes

  • Fix custom values for list-style-type missing in default config by @dcastil in #53

Full Changelog: v0.8.1...v0.8.2