From 583e737b0a12e487842da68d8a8e07d380691aad Mon Sep 17 00:00:00 2001 From: AssemblyAI Date: Fri, 12 Dec 2025 14:24:31 -0800 Subject: [PATCH] Project import generated by Copybara. GitOrigin-RevId: 39496100e3ff1a6dbbf08a6e19c904210cb7b203 --- docs/compat.md | 6 ++++-- package.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/compat.md b/docs/compat.md index 7300c0c..79a37bb 100644 --- a/docs/compat.md +++ b/docs/compat.md @@ -19,11 +19,13 @@ However, there are still incompatibilities between Node.js and the browser. Generate a temporary auth token on the server. ```js - import { AssemblyAI } from "assemblyai" + import { AssemblyAI } from "assemblyai"; // Ideally, to avoid embedding your API key client side, // you generate this token on the server, and pass it to the client via an API. const client = new AssemblyAI({ apiKey: "YOUR_API_KEY" }); - const token = await client.streaming.createTemporaryToken({ expires_in_seconds: 60 }); + const token = await client.streaming.createTemporaryToken({ + expires_in_seconds: 60, + }); ``` > [!NOTE] diff --git a/package.json b/package.json index e2edb47..6ba4283 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "assemblyai", - "version": "4.21.0", + "version": "4.22.0", "description": "The AssemblyAI JavaScript SDK provides an easy-to-use interface for interacting with the AssemblyAI API, which supports async and real-time transcription, as well as the latest LeMUR models.", "engines": { "node": ">=18"