Skip to content

Latest commit

 

History

History
executable file
·
55 lines (33 loc) · 2.42 KB

File metadata and controls

executable file
·
55 lines (33 loc) · 2.42 KB

Changelog

Starting with version 5.2.0, all notable changes to Image Guard are documented in this file, which is (mostly) AI-generated and (always) human-edited. Dependency updates may or may not be called out specifically.

The format is based on Keep a Changelog, and the project adheres to Semantic Versioning.

[5.2.5] - 2026-03-17

Changed

  • Added recommended ESLint rules to config (and fixed resulting warnings)
  • Promoted no-unused-vars and eqeqeq from warnings to errors in ESLint config

[5.2.4] - 2026-03-04

Fixed

  • Changed bin entry from a Node.js script to a shell wrapper that locates node from common version managers (nvm, Volta, asdf, mise) and package managers (Homebrew) before invocation, resolving hook failures in GUI Git clients that don’t inherit the shell’s PATH
    • Migration: If you set up hooks, replace npx image-guard --staged with ./node_modules/.bin/image-guard --staged in your .githooks/pre-commit or .husky/pre-commit.

[5.2.3] - 2026-02-21

Fixed

  • Improved corrupt-file error detection to cover WebP and AVIF formats, normalize message casing before matching, and avoid false positives from the overly broad Invalid string match
  • Warned when a .bak file is left behind after a failed file replacement
  • Removed a dead code branch in result processing

Changed

  • Moved to compression and conversion running in parallel (non-overlapping file sets), reducing wall-clock time when --heic-to-avif is active
  • Reduced directory traversals from two to one in non-staged mode when --heic-to-avif is active
  • Extracted shared MAX_FILE_SIZE constant; aligned node:fs and node:path import style in utils.js
  • Extended test coverage for corrupt file detection and reporting

[5.2.2] - 2026-02-17

Fixed

  • Updated HEIC dry run to report actual file sizes instead of omitting size data

[5.2.1] - 2026-02-17

Changed

  • Adjusted HEIC-to-AVIF conversion to use lossy instead of lossless encoding (quality 80), to produce files smaller than the HEIC originals but still at high quality
  • Removed redundant lossless compression pass after HEIC conversion
  • Documented Display P3 to sRGB color space mapping during HEIC conversion

[5.2.0] - 2026-02-17

Added

  • Added opt-in HEIC/HEIF-to-AVIF conversion via --heic-to-avif (with --keep-heic to preserve originals)
  • Introduced changelog