chore(deps/#608): migrate elevenlabs@1.59.0 → @elevenlabs/elevenlabs-js#611
Conversation
…s v2 Replace deprecated `elevenlabs` (^1.59.0) with the canonical `@elevenlabs/elevenlabs-js` (^2.51.0) SDK. Update all three call sites to camelCase field names required by the new SDK (modelId, outputFormat). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
[grinder] READY for human review CI: green — zero failing, zero pending
Review threads: zero (GraphQL Verified by:
Do NOT merge — that's your call. |
✅ Review + prove-it: READYThe 1.x→2.x migration is genuine, not a naive find-replace. Review: v2 API correctly handled — snake_case→camelCase arg keys ( Prove-it (all live):
|
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Merge origin/main (18 commits) into the elevenlabs package migration branch. package.json auto-merged cleanly: kept main's version bump (0.4.12) and protobufjs override updates AND the PR's elevenlabs -> @elevenlabs/elevenlabs-js migration (non-overlapping lines). pnpm-lock.yaml regenerated via pnpm install (byte-identical to the ort auto-merge). No new old-package imports introduced by main.
Review verdict: READYRe-reviewed by the orchardist (Rule #5) at HEAD
Migration correctness (carried from the prior review): all snake_case→camelCase renames present in both call sites, both imports updated, Non-blocking (not gating)
No |
…t) + refresh stale doc comment Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
AC5 evidence — no Fresh non-frozen install (
This is the reproducible proof that Also addressed in |
|
Automated low-risk assessment This PR was evaluated against the repository's Low-Risk Pull Requests procedure and does not qualify as low risk.
This PR requires a manual review before merging. |
Problem
@langwatch/scenario@0.4.12declares"elevenlabs": "^1.59.0"as a runtime dependency. Onnpm install @langwatch/scenario, every consumer sees:Changes
javascript/package.json— replaced"elevenlabs": "^1.59.0"with"@elevenlabs/elevenlabs-js": "^2.51.0".javascript/src/voice/tts/elevenlabs-tts.ts— updated import specifier; renamedmodel_id→modelIdandoutput_format→outputFormatintextToSpeech.convertcall body (the new Fern-generated SDK uses camelCase; snake_case keys would be silently stripped at runtime).javascript/src/voice/stt/elevenlabs-stt.ts— updated import specifier; renamedmodel_id→modelIdinspeechToText.convertcall body (same camelCase requirement).javascript/pnpm-lock.yaml— lock file updated; old elevenlabs v1 transitive deps dropped.Python side: no changes — the PyPI
elevenlabspackage is NOT deprecated (rename is npm-only).ACs met (from #608)
"elevenlabs"removed from dependencies;"@elevenlabs/elevenlabs-js"added ✅tsc --noEmitexits 0 with zero new errors ✅ (confirmed by coder agent)elevenlabsdeprecation warning onpnpm install✅ (confirmed by coder agent)Consumer note
If you import
ElevenLabsClientdirectly from"elevenlabs"in your own code, update that import to"@elevenlabs/elevenlabs-js".Closes #608
🤖 Generated with Claude Code