Skip to content

Latest commit

 

History

History
55 lines (32 loc) · 1.43 KB

CHANGELOG.md

File metadata and controls

55 lines (32 loc) · 1.43 KB

Changelog

Fixes

  • Fixes the decoding of PNG images using non-rgba color types.

Breaking Changes

  • encode method now returns an ArrayBuffer which matches the return type of other jSquash encode methods
  • Ignores checksum errors. Allows images with invalid header chunks to be decoded (Fixes #44)
  • Upgrades codec to image-png 0.17.10 (increases wasm file size by 54KB)
  • Codec wasm and js files moved to /codec/pkg dir (due to addition of Rust source)
    • If you are accessing the wasm file by path you'll need to update your paths to reference node_modules/@jsquash/png/codec/pkg/squoosh_png_bg.wasm. It's now nested in the pkg dir.

Adds

  • Adds Node.js ESM support
    • Updates relative imports to use file extensions
    • Adds module field to relevant package.json
    • Updates pre.js to polyfill ImageData for Node.js

Misc.

  • Removes *.d.ts.map files from the package

Fixes

  • Removes unused wasm-feature-detect dependency

Re-release of 2.1.1 with correct dist files

Fixes

  • Check for caches object on globalThis before using it

Fixes

  • Check for caches object on globalThis before using it

Added

  • Include polyfills for Cloudflare Worker environment for easier compatibility