assemblyai 4.0.0-beta.3 → 4.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/docs/compat.md CHANGED
@@ -3,6 +3,11 @@
3
3
  The JavaScript SDK is developed for Node.js but is also compatible with other runtimes
4
4
  such as the browser, Deno, Bun, Cloudflare Workers, etc.
5
5
 
6
+ ## Node.js compatibility
7
+
8
+ The SDK supports Node.js 18, 20, and 21.
9
+ If you do use an older version of Node.js like version 16, you'll need to polyfill `fetch`.
10
+
6
11
  ## Browser compatibility
7
12
 
8
13
  To make the SDK compatible with the browser, the SDK aims to use web standards as much as possible.
package/package.json CHANGED
@@ -1,7 +1,10 @@
1
1
  {
2
2
  "name": "assemblyai",
3
- "version": "4.0.0-beta.3",
3
+ "version": "4.0.1",
4
4
  "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.",
5
+ "engines": {
6
+ "node": ">=18"
7
+ },
5
8
  "exports": {
6
9
  ".": {
7
10
  "types": "./dist/index.d.ts",
@@ -58,7 +61,7 @@
58
61
  "url": "git+https://github.com/AssemblyAI/assemblyai-node-sdk.git"
59
62
  },
60
63
  "publishConfig": {
61
- "tag": "beta",
64
+ "tag": "latest",
62
65
  "access": "public",
63
66
  "registry": "https://registry.npmjs.org/"
64
67
  },
@@ -66,7 +69,7 @@
66
69
  "build": "pnpm clean && pnpm rollup -c",
67
70
  "clean": "rimraf dist/*",
68
71
  "lint": "eslint -c .eslintrc.json '{src,tests}/**/*.{js,ts}' && publint",
69
- "test": "jest --config jest.config.rollup.ts",
72
+ "test": "jest --config jest.config.js",
70
73
  "format": "prettier '**/*' --write",
71
74
  "generate-types": "tsx ./scripts/generate-types.ts && pnpm format",
72
75
  "copybara:dry-run": "./copybara.sh dry_run --init-history",
@@ -82,6 +85,10 @@
82
85
  "author": "AssemblyAI (https://www.assemblyai.com)",
83
86
  "license": "MIT",
84
87
  "homepage": "https://www.assemblyai.com/docs",
88
+ "bugs": {
89
+ "url": "https://github.com/AssemblyAI/assemblyai-node-sdk/issues",
90
+ "email": "support@assemblyai.com"
91
+ },
85
92
  "files": [
86
93
  "dist",
87
94
  "src",
@@ -91,7 +98,8 @@
91
98
  "docs"
92
99
  ],
93
100
  "devDependencies": {
94
- "@rollup/plugin-alias": "^5.0.1",
101
+ "@babel/preset-env": "^7.23.5",
102
+ "@babel/preset-typescript": "^7.23.3",
95
103
  "@rollup/plugin-node-resolve": "^15.2.3",
96
104
  "@rollup/plugin-terser": "^0.4.4",
97
105
  "@rollup/plugin-typescript": "^11.1.5",
@@ -102,12 +110,10 @@
102
110
  "@typescript-eslint/eslint-plugin": "^6.7.5",
103
111
  "dotenv": "^16.3.1",
104
112
  "eslint": "^8.48.0",
105
- "i": "^0.3.7",
106
113
  "jest": "^29.5.0",
107
114
  "jest-cli": "^29.5.0",
108
115
  "jest-fetch-mock": "^3.0.3",
109
116
  "jest-junit": "^16.0.0",
110
- "jest-mock-extended": "^3.0.4",
111
117
  "jest-websocket-mock": "^2.4.1",
112
118
  "mock-socket": "^9.2.1",
113
119
  "npm": "^9.7.1",
@@ -117,7 +123,6 @@
117
123
  "rimraf": "^5.0.1",
118
124
  "rollup": "^3.25.1",
119
125
  "ts-jest": "^29.1.0",
120
- "ts-node": "^10.9.1",
121
126
  "tslib": "^2.5.3",
122
127
  "typescript": "^5.2.2"
123
128
  },
@@ -95,7 +95,10 @@ export type SessionBegins = RealtimeBaseMessage & {
95
95
  * @constant
96
96
  */
97
97
  message_type: "SessionBegins";
98
- /** @description Unique identifier for the established session */
98
+ /**
99
+ * Format: uuid
100
+ * @description Unique identifier for the established session
101
+ */
99
102
  session_id: string;
100
103
  };
101
104