Skip to content

VAPI-3661 fix(deps): downgrade uuid to ^11 to restore CommonJS compatibility - #14

Open
smoghe-bw wants to merge 1 commit into
mainfrom
fix/deps-uuid-cjs-compat
Open

VAPI-3661 fix(deps): downgrade uuid to ^11 to restore CommonJS compatibility#14
smoghe-bw wants to merge 1 commit into
mainfrom
fix/deps-uuid-cjs-compat

Conversation

@smoghe-bw

Copy link
Copy Markdown
Contributor

Summary

  • Root cause: uuid@^13 is ESM-only, but the SDK's TypeScript config targets CommonJS — the compiled dist/v1/signaling.js emits require('uuid'), which Node.js rejects with ERR_REQUIRE_ESM at runtime.
  • Downgrade uuid ^13.0.0^11.0.4 — last release line that ships a CJS entry point. uuid@11 also bundles its own type declarations, so @types/uuid is dropped.
  • Bump rpc-websockets 7.10.0^10.0.1 — verified that setAutoReconnect, call, notify, and constructor options (autoconnect, reconnect, max_reconnects) are all API-stable across the major version.
  • Bump webrtc-adapter ^9.0.3^9.0.6 (patch).

Test plan

  • npm run build compiles cleanly with no TypeScript errors
  • npm test — 71/71 tests pass (verified locally)
  • Consume from a Node.js CommonJS consumer and confirm no ERR_REQUIRE_ESM

🤖 Generated with Claude Code

uuid@^13 is ESM-only; the CommonJS dist compiles import statements to
require() calls, causing ERR_REQUIRE_ESM at runtime in Node.js consumers.
uuid@11.x is the last release line that ships a CJS entry point.

Also bumps rpc-websockets 7.10.0 → ^10.0.1 (setAutoReconnect API unchanged,
verified via types) and webrtc-adapter ^9.0.3 → ^9.0.6. Drops @types/uuid
since uuid@11 bundles its own declarations.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@smoghe-bw
smoghe-bw requested review from a team as code owners August 5, 2026 20:52
@bwappsec

bwappsec commented Aug 5, 2026

Copy link
Copy Markdown

Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues
Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@smoghe-bw smoghe-bw changed the title fix(deps): downgrade uuid to ^11 to restore CommonJS compatibility VAPI-3661 fix(deps): downgrade uuid to ^11 to restore CommonJS compatibility Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants