v7.4.0
What's New
Fixed
-
backgroundGradient.colorsserialization: Custom rules using arrays of objects (e.g. gradient color stops) now serialize correctly inutilities.tss.Previously,
colors: [{ color: '#132C50', offset: 0.0 }, ...]was output as{ 0: '[object Object]', 1: '[object Object]' }. It now outputs the correct array format:colors: [ { color: '#132C50', offset: 0 }, { color: '#0A1529', offset: 1 } ]The fixed 3-level nested loop in
customRules()was replaced with a recursiveserializeValue()helper that handles arrays, nested objects, and primitives at any depth.
Changed
- Animation module: Callback comments in
purgetss.ui.jstranslated to English.
Documentation
- Added full Animation Module reference section to
README.md, including method table, callback event object, array animation patterns, and utility classes. - Updated
CHANGELOG.mdwith the missingv7.1.10entry documenting the enriched callback event object (index,total,getTarget()).
Upgrade
npm install -g purgetss@latest