elevenlabs:sdk-migration

Migrate ElevenLabs client libraries to the next major version.

110|92|Updated Nov 21, 2024
One-click install
npx skills add https://github.com/elevenlabs/packages --skill elevenlabs-sdk-migration
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: elevenlabs:sdk-migration
Source: https://github.com/elevenlabs/packages/tree/main/.agents/skills/elevenlabs%3Asdk-migration
Command: npx skills add https://github.com/elevenlabs/packages --skill elevenlabs-sdk-migration

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Helps engineering teams update code to the next major version of the ElevenLabs client libraries, addressing breaking changes and deprecated APIs.

Core Features & Use Cases

  • Guides updating imports and API shapes across @elevenlabs/client, @elevenlabs/react, and @elevenlabs/react-native.
  • Details how to wrap with ConversationProvider and adjust startSession usage to the new synchronous semantics.
  • Provides migration steps for error handling and type changes after npm updates.

Quick Start

Follow the migration steps in order: install the new packages, update imports and APIs, wrap components with ConversationProvider, and adjust startSession usage.

Frequently Asked Questions about elevenlabs:sdk-migration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I migrate to the next major version of the ElevenLabs SDK and fix breaking changes?

To migrate the ElevenLabs SDK, update npm packages, replace deprecated exports, wrap components with ConversationProvider, and adjust startSession to synchronous semantics to resolve breaking changes.

How do I update useConversation and ElevenLabsProvider APIs in @elevenlabs/react?

Updating useConversation and ElevenLabsProvider APIs requires replacing deprecated exports, wrapping your application with ConversationProvider, and switching to updated type imports across @elevenlabs/react.

Why does startSession throw a type or runtime error after upgrading @elevenlabs/client?

startSession throws errors after upgrading @elevenlabs/client because the API now uses synchronous semantics, requiring you to adjust session initialization calls and update related runtime type definitions.

Does the ElevenLabs SDK migration guide support @elevenlabs/react-native?

Yes, the ElevenLabs SDK migration covers @elevenlabs/react-native, providing steps to update imports, adjust API shapes, and wrap native components with ConversationProvider to address breaking changes.

What is the best way to fix deprecated Conversation exports in JavaScript and TypeScript?

The best way to fix deprecated Conversation exports is installing the new npm packages, switching to updated type imports, and utilizing optional granular hooks available in the JavaScript and TypeScript client libraries.