Skip to content

v0.4.0

Latest

Choose a tag to compare

@caseymanos caseymanos released this 02 Dec 18:56
· 66 commits to main since this release

What's New

Non-blocking Async Encoding/Decoding

  • Encoding and decoding now run on dedicated worker threads by default
  • Event loop stays 76% responsive vs 2% with sync mode
  • 3100% more event loop iterations during encoding

Native Codec Probing

  • isConfigSupported actually tests FFmpeg codec availability
  • No more false positives from string matching alone

ReadableStream Support

  • ImageDecoder now accepts ReadableStream input for progressive loading

Bun Compatibility

  • Centralized native loader supports both Node.js and Bun runtimes

New Config Option

  • useWorkerThread: boolean - Set to false for legacy blocking behavior (default: true)