- Better compilation with Vite Bundler. Solves issues with circular dependencies for Vite v5.1.6+.
- Updates oxipng to v9.0
- Adds support to optimise raw image data directly and output as an optimised PNG. This is useful for when you have raw image data and want to optimise it without having to encode to a PNG first.
- Adds Node.js ESM support
- Updates relative imports to use file extensions
- Adds
module
field to relevantpackage.json
- Updates pre.js to polyfill ImageData for Node.js
- Upgrades several major versions to oxipng 8.0.0
- Adds support for
optimiseAlpha
option to control whether alpha channels are optimised or not
- Only allow multithreading when running in a WebWorker, otherwise it will throw an error
- Removes *.d.ts.map files from the package
- Update the rayon dynamic import path so it can be handled better by bundlers. Particularly Vite.