Releases: dcastil/tailwind-merge
Releases · dcastil/tailwind-merge
v1.6.1
v1.6.0
New Features
- Add support for arrays as argument by @dcastil in #127
- You can now use arbitrarily nested arrays as arguments to
twMerge
. That's especially handy for nested conditions.twMerge('…', someBool && ['…', anotherBool && '…'])
- The joining of arguments is done with a new
join
function which is present in the tailwind-merge exports as well. It has the same functionality as clsx but without support for objects as arguments which makes it a little faster. - Why no objects as arguments? You can read about my reasoning in https://github.com/dcastil/tailwind-merge/discussions/137#discussioncomment-3481605.
- You can now use arbitrarily nested arrays as arguments to
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()
- This makes tailwind-merge work in older browsers which don't support
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
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