Breaking Changes
- ESM only: the package now sets
"type": "module"; CommonJSrequire()is only supported in modern environments #1746- Minimum Node.js version is now 20.19.0
- Cleaned up deprecations
- Removed the deprecated
_compileTokenexport. Use_compileUnsafeinstead - Removed the deprecated re-exports of
aliases,filters, andpseudos. Use thepseudosoption instead - Removed
./package.jsonsubpath export
- Removed the deprecated
:enablednow only matches form elements
New Features
- Added support for the
:lang()pseudo-class - Added support for of in
nth-*pseudo-classes, e.g.:nth-last-child(3n+2 of .a)
Full Changelog: v6.0.0...v7.0.0