Releases: 343dev/optimizt
Releases · 343dev/optimizt
v12.1.1
Changed
- Updated @343dev/gifsicle and @343dev/guetzli packages, which now allow Optimizt to work on Alpine Linux without installing additional packages. Previously, the
gcompatpackage was required as theguetzliandgifsiclebinaries were built for glibc-based systems, which is absent on Alpine Linux.
Full Changelog: v12.1.0...v12.1.1
12.1.0
Added
- Added
--prefixand--suffixflags to add custom prefixes and suffixes to optimized file names.
Changed
- Updated log output to display output filenames instead of input filenames.
Full Changelog: v12.0.0...v12.1.0
v12.0.0
Added
- Configure trusted publishing for npm package to enhance security by eliminating token-based publishing risks (see npm trusted publishers).
Changed
- BREAKING: Increase minimum Node.js version to 20.19.0 due to dependency requirements.
- BREAKING: Update SVGO config in default .optimiztrc.cjs to migrate from v3 to v4 (see migration guide).
- Update all dependencies to latest versions with a 7-day cooling period and fix versions to prevent security vulnerabilities during installations.
Full Changelog: v11.0.0...v12.0.0
v11.0.0
Breaking Changes
- Replaced imagemin/gifsicle-bin package with 343dev/gifsicle.
- Added new configuration parameters in .optimiztrc.cjs:
- Updated gifsicle to version 1.96.
Benefits
- Reduced Dependencies: Total project dependencies decreased from 218 to 41.
- Improved Platform Support: Added arm64 binary versions for
guetzliandgifsicle.
Important Note About Gamma Parameters
The new gamma parameters were added because of changes in gifsicle 1.96. In this version:
- The
--lossyoption now measures color errors using the color space selected by--gamma(defaults to sRGB). - A new algorithm for computing color differences has been implemented.
- This means
--lossy=Nwill behave differently than in previous versions and may compress less than expected. - For behavior similar to previous versions, use
--lossy=N --gamma=1.
Migration Guide
If you use an external configuration file (.optimiztrc.cjs), add the following parameters with a value of 1 to preserve the previous behavior: