Releases: AaronAsAChimp/image-lint
v3.2.0
Belated release notes, apologies.
Added linting support for WEBP
This release adds linting support for the WEBP format. image-lint has always been able to detect WEBP images but was not able to read the metadata to determine dimensions of the file. This has changed with this release, and image-lint now supports all checks.
Detect files with the aCropalypse vulnerability.
During the development of this release a vulnerability was discovered in the Markup app on Pixel phones (CVE-2023-21036) and a similar issue in the Windows 11 Snip & Sketch program (CVE-2023-28303) where cropped out portions of an image could be recovered.
image-lint can now detect images that have this vulnerability and will give the error "This file contains extra data at the end of the file." You can fix the image by opening and saving it in a graphics program.
Added validation for file type
Previous to v3.1.0 image-lint had only linted well supported formats, but with the addition of AVIF, JXL and now WEBP it became apparent that not everyone would want to use them right away. So in this version of image-lint you can configure a list of allowed file formats and the warning "The file type of the image is [ extension ]. It must be one of [ allowed extensions ]" will be issued.
Major dependency updates
- Bump puppeteer version to v22.12.1
v3.1.0
- Add a --max_warnings option that emits an error if there are too many warnings. thanks @f0urfingeredfish
- Enforce the minimum node version of v16
- Prevent printing stack traces for linter errors.
- Fix error when printing help.
v3.0.0
Added AVIF/HEIC and JPEG XL
Version 3.0 adds support for AVIF/HEIC and JPEG XL.
Breaking Change: Exit Code
Adding support for lint-staged necessitated a breaking change in the exit code of image-lint. It will now return a non-zero (1) exit code for when there are any errors or warnings. You can use this to create better integrations with your own build pipeline.
Other changes
There was a lot of refactoring and dependency updates also included in this release.
Breaking Change: Minimum Node Version is 16
While v3.0.0 may work on older versions of Node, future versions will not.
Full Changelog: v2.1.1...v3.0.0
v3.0.0-beta.0
Added AVIF/HEIC and JPEG XL
Version 3.0 adds support for AVIF/HEIC and JPEG XL.
Breaking Change: Exit Code
Adding support for lint-staged necessitated a breaking change in the exit code of image-lint. It will now return a non-zero (1) exit code for when there are any errors or warnings. You can use this to create better integrations with your own build pipeline.
Other changes
There was a lot of refactoring and dependency updates also included in this release.
Full Changelog: v2.1.1...v3.0.0-beta.0
Documentation fixes
- fix readme so it shows on npmjs.com
Fixed web finder, cleanup, and refactoring
- Replace Phantom JS with Puppeteer in the web finder.
- Replace request with got.
- Refactoring and clean up.
- All of these changes results in a much small package size 3.29 MB -> 57.4 kB
SVG, Truncated Files, Color Spaces
Fix upper case file extensions.
Add validation for color spaces.
Prototype folder exclusion.
Add support for XML based files, SVG and HTML.
Add color to the logger.
Add truncated file detection for PNG, JPEG, GIF.
Git support, help, and default directory
v1.0.2 Preparing release