Skip to content

v7.4.0

Choose a tag to compare

@macCesar macCesar released this 08 Mar 23:11
· 86 commits to main since this release

What's New

Fixed

  • backgroundGradient.colors serialization: Custom rules using arrays of objects (e.g. gradient color stops) now serialize correctly in utilities.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 recursive serializeValue() helper that handles arrays, nested objects, and primitives at any depth.

Changed

  • Animation module: Callback comments in purgetss.ui.js translated 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.md with the missing v7.1.10 entry documenting the enriched callback event object (index, total, getTarget()).

Upgrade

npm install -g purgetss@latest