Skip to content

v4.0.0

Choose a tag to compare

@github-actions github-actions released this 30 Oct 20:28
74dd284

4.0.0 (2026-10-30)

⚠ BREAKING CHANGES

  • Node.js >= 24 and pnpm >= 12 are required (3.x ran on Node 22). Compared with 3.0.2 the commands also behave differently:
    • WebP output is lossy and follows the --quality preset (3.x was lossless).
    • JPEG is encoded by mozjpeg only, with the preset quality (3.x ran jpegtran + mozjpeg at 90); the default preset medium uses 80.
    • PNG quality follows the preset (3.x used a fixed 0.6-0.8 range).
    • GIF is optimized losslessly with gifsicle (3.x used lossy giflossy).
    • SVG keeps the viewBox and removes width/height (3.x removed the viewBox).
    • img:minify skips sources whose optimized copy is newer, and img:resize skips images that already fit.
    • Image commands exit with code 1 when any file fails (3.x always exited 0).
    • Log output changed: warnings and errors go to stderr; DVX_LOG_FORMAT=json, DVX_LOG_LEVEL, NO_COLOR and FORCE_COLOR control the format.
  • requires Node >=24; per-file log format changed.

Features

  • improve code base (#36) (1d61756)
  • require Node.js 24 and pnpm 12 (ca6fd40)
  • update pnpm workspace configuration and audit settings (2dd6c75)

Bug Fixes

  • correct Console import in console.ts (758feb3)
  • modify release-please configuration to exclude component in tag (2dd6c75)
  • update type definitions for htmlhint-stylish module (2dd6c75)