Skip to content

Releases: caseymanos/node-webcodecs

v0.4.0

02 Dec 18:56

Choose a tag to compare

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)