Releases: dcastil/tailwind-merge
v1.5.0
New Features
- Added missing ESM
types
subpath export condition by @scott-lc in #113- This makes tailwind-merge work in TypeScript projects using the new
nodenext
module type introduced in TypeScript 4.7.
- This makes tailwind-merge work in TypeScript projects using the new
Full Changelog: v1.4.0...v1.5.0
Thanks to @charkour for sponsoring tailwind-merge! ❤️
v1.4.0
New Features
Bug Fixes
Other
Full Changelog: v1.3.0...v1.4.0
Thanks to @charkour for sponsoring tailwind-merge! ❤️
v1.3.0
v1.2.1
Bug Fixes
- Fix isArbitraryWeight incorrectly using
weight:
instead ofnumber:
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
v1.1.1
Bug Fixes
- Fix TypeScript types not being linked correctly in package.json by @navin-moorthy and @dcastil in #75
Full Changelog: v1.1.0...v1.1.1
v1.1.0
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
andtransform-origin
- Fixes
break-inside
classes being merged incorrectly - Adds missing classes
overline
,underline-offset
,content-none
- Fixes typo in class group name
bg-repeeat
→bg-repeat
- Adds
isArbitraryShadow
validator
- Adds arbitrary value support for class groups
- 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!
- I changed the build output significantly here and removed
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
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
v0.9.0
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.
- Adds support for some theme properties like
Full Changelog: v0.8.2...v0.9.0
v0.8.2
Bug Fixes
Full Changelog: v0.8.1...v0.8.2