Skip to content

Releases: arseneyr/wasm-media-encoders

0.7.0

24 May 23:42
Compare
Choose a tag to compare

[0.7.0] - 2024-05-24

Added

  • Ability to set output sample rate for the LAME encoder (#11)

Changed

  • Changed the internal WASM API, so added error checking for mismatched JS/WASM binaries
  • This package (except for UMD and esnext builds) now depends on @swc/helpers instead of @babel/runtime

Developer changes

  • Build toolchain upgraded to Node 20, Yarn 4, SWC, and vitest

0.6.4

17 Oct 01:05
Compare
Choose a tag to compare

[0.6.4]

Fixed

  • Fixed issue where encoding large MP3s could potentially fail

0.6.3

11 Nov 11:03
Compare
Choose a tag to compare

[0.6.3]

Fixed

  • Fixed issue where OGG encoding took ~10x too long

0.6.2

10 Nov 01:06
Compare
Choose a tag to compare

[0.6.2]

Added

  • Untranspiled JS is now available via wasm-media-encoders/esnext

Fixed

  • The browser and UMD entries are now correctly transformed with Babel to support all browsers that support WASM. @babel/runtime is now a dependency for the browser entry.

0.6.1

06 Nov 01:02
Compare
Choose a tag to compare

0.6.1

Changed

  • Browsers will now use WebAssembly.instantiateStreaming() for data URIs as well (if available).

Removed

  • fetch()ing from non-data URL in Node

Fixed

  • Issue in browser where creating encoder would throw Cannot destructure property 'memory' of '(B.instance || B).exports' as it is undefined.

0.6.0

05 Nov 07:05
Compare
Choose a tag to compare

0.6.0

Added

  • Can now supply a callback to createEncoder() to get the compiled WebAssembly.Module
  • Support for ESM modules in Node

Changed

  • Reduced JS size by about 40%
  • Reduced LAME WASM size by about 4%
  • Reduced OGG WASM size by about 3%

Fixed

  • Fixed an issue where encoding large buffers would return a detached ArrayBuffer.
  • Bundling with webpack v4 no longer pulls in a Buffer polyfill.