From 7c691cfd1d44e752f46e831e49aceafbadb822c6 Mon Sep 17 00:00:00 2001 From: Ramik Mukherjee Date: Mon, 12 Oct 2026 20:21:06 +0530 Subject: [PATCH] chore!: upgrade @daily-co/daily-js to 0.93.0 and require Node >=22.14.0 daily-js raised its engines.node from >=10.0.0 to >=22.14.0 starting at 0.89.0, so installing on older Node fails under Yarn 1 (and npm with engine-strict). Align our engines field with that requirement and test CI against the new minimum (22.14.0) and the current LTS (24). Type changes between 0.87.0 and 0.93.0 are additive; no SDK code changes. BREAKING CHANGE: installing @vapi-ai/web now requires Node.js >=22.14.0. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/ci.yml | 8 +++++++- README.md | 6 ++++++ package-lock.json | 16 ++++++++-------- package.json | 6 +++--- 4 files changed, 24 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e76519261..30d4cb6d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,6 +10,12 @@ jobs: compile: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + # Minimum supported version (see engines in package.json) and current LTS + node-version: ['22.14.0', '24'] + steps: - name: Checkout repo uses: actions/checkout@v4 @@ -17,7 +23,7 @@ jobs: - name: Set up node uses: actions/setup-node@v4 with: - node-version: 22 + node-version: ${{ matrix.node-version }} - name: Install dependencies run: npm ci diff --git a/README.md b/README.md index 04ffe2fd3..327b60197 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,12 @@ You can install the package via npm: npm install @vapi-ai/web ``` +### Requirements + +Installing the package requires Node.js `>=22.14.0` (inherited from `@daily-co/daily-js`). The SDK itself runs in the browser. + +If you can't upgrade Node yet, stay on the 2.x line: `npm install @vapi-ai/web@^2`. + ## Usage First, import the Vapi class from the package: diff --git a/package-lock.json b/package-lock.json index 8b106fcbc..455cf31b0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,15 @@ { "name": "@vapi-ai/web", - "version": "2.7.1", + "version": "3.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@vapi-ai/web", - "version": "2.7.1", + "version": "3.0.0", "license": "MIT", "dependencies": { - "@daily-co/daily-js": "^0.87.0", + "@daily-co/daily-js": "^0.93.0", "events": "^3.3.0" }, "devDependencies": { @@ -22,7 +22,7 @@ "ts-node": "^10.9.2" }, "engines": { - "node": ">=18.0.0" + "node": ">=22.14.0" } }, "node_modules/@babel/code-frame": { @@ -585,9 +585,9 @@ } }, "node_modules/@daily-co/daily-js": { - "version": "0.87.0", - "resolved": "https://registry.npmjs.org/@daily-co/daily-js/-/daily-js-0.87.0.tgz", - "integrity": "sha512-hWHdBDvJwDeg8unz+XG9hD7xamuFi5Jmsk89ASATKL4fdTDHplpxi4PG9aaPXzBZYYLTjuxUje1K7B5uUR+gzw==", + "version": "0.93.0", + "resolved": "https://registry.npmjs.org/@daily-co/daily-js/-/daily-js-0.93.0.tgz", + "integrity": "sha512-KDo/GuEILe3s7xyIiGSt1mCrtRgSoI7040zoZ+gGWt41mX71/6UhR7AaiyiSg3o7uHXInXPZa9zJ/rJOkrekEQ==", "license": "BSD-2-Clause", "dependencies": { "@babel/runtime": "^7.12.5", @@ -597,7 +597,7 @@ "events": "^3.1.0" }, "engines": { - "node": ">=10.0.0" + "node": ">=22.14.0" } }, "node_modules/@emnapi/core": { diff --git a/package.json b/package.json index cd727c628..8d93701f8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vapi-ai/web", - "version": "2.7.1", + "version": "3.0.0", "description": "", "main": "dist/vapi.js", "types": "dist/vapi.d.ts", @@ -28,10 +28,10 @@ }, "homepage": "https://github.com/VapiAI/client-sdk-web#readme", "engines": { - "node": ">=18.0.0" + "node": ">=22.14.0" }, "dependencies": { - "@daily-co/daily-js": "^0.87.0", + "@daily-co/daily-js": "^0.93.0", "events": "^3.3.0" }, "devDependencies": {