Skip to content

Release v4.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 25 Aug 12:27
· 2 commits to main since this release

Changed

  • The repository and CLI command have been renamed to optimize.
  • The optimize command now works with pnpm.
  • Apple touch icons are no longer generated.
  • Webp touch icons are no longer generated.
  • The processing of a specific image will now be skipped if the originDensity specified does not equal the maxDensity value available for that image in the metadata file.
  • The processing of a specific image will now be skipped if the target formats specified do not match those available in the metadata file for that image.
  • The breakpoint suffix in raster image file names must now begin with ~ instead of -. For example, cat-768.png must be renamed to cat~768.png.
  • The -m (--add-meta-data) flag is now enabled by default. Use --no-m (--no-add-meta-data) to disable it.
  • The name of the JSON metadata file now has the suffix .meta.
  • The name of the JS metadata file now has the suffix .imports.
  • The JS metadata file now exports only an array with dynamic imports.
  • The progress bar is now more compact, but also more informative.
  • The minimum required node.js version has been increased to 22.18.0. This has reduced the number of dependencies.

Added

  • The metadata files now include a name field with the image name without suffixes.

Fixed

  • Repeated image optimization runs no longer create duplicates in the sizes field of the metadata file.