v1.0.0
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
andoverflow-clip
will not get merged with classtruncate
anymore, but the new Tailwind v3 classestext-ellipsis
andtext-clip
will. (65b03e4, #63) - The classes
decoration-slice
anddecoration-clone
won't get merged anymore andbox-decoration-slide
nadbox-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) tovertical-align
(1269ce6, #63) - Renamed class groups
flex-basis
,flex-grow
andflex-shrink
tobasis
,grow
andshrink
to stay consistent with Tailwind v3 (e6d8912, #63)
- Removed class group
-
validators
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
andfamily
- New validators
isTshirtSize
,isArbitrarySize
,isArbitraryPosition
,isArbitraryUrl
andisArbitraryWeight
, check them out in the documentation! (fec2b18, f8acd7c, #63)
Full Changelog: v0.9.0...v1.0.0