Skip to content

v4.0.0

Compare
Choose a tag to compare
@Swimburger Swimburger released this 08 Dec 18:10
· 77 commits to main since this release
5dcdb1c

What's changed

Added

  • Add node, deno, bun, browser, and workerd (Cloudflare Workers) exports to package.json. These exports are compatible versions of the SDK, with a few limitations in some cases. For more details, consult the SDK Compatibility document.
  • Add dist/assemblyai.umd.js and dist/assemblyai.umd.min.js. You can reference these script files directly in the browser and the SDK will be available at the global assemblyai variable.

Changed

  • RealtimeService.sendAudio accepts audio via type ArrayBufferLike.
  • Breaking: RealtimeService.stream returns a WHATWG Streams Standard stream, instead of a Node stream. In the browser, the native web standard stream will be used.
  • ws is used as the WebSocket client as before, but in the browser, the native WebSocket client is used.
  • Rename Node SDK to JavaScript SDK as the SDK is compatible with more runtimes now.

Full Changelog: v3.1.3...v4.0.0