elevenlabs:sdk-migration
Installation
SKILL.md
SDK Migration Guide (Next Major Version)
Migration guide for @elevenlabs/client, @elevenlabs/react, and @elevenlabs/react-native breaking changes in the next major release.
Migration order
Follow these steps in sequence — each builds on the previous one.
- Install the new packages.
- Fix imports — remove deleted exports (
Input,Output,DeviceFormatConfig,DeviceInputConfig,ElevenLabsProvider) and replace with their successors. - Wrap with
ConversationProvider— everyuseConversationcall now requires a provider ancestor. - Update API calls — adapt to changed signatures (
startSessionis now sync in React,Conversationis no longer a class, etc.). - Optimize with granular hooks (optional) — replace local state with
useConversationStatus,useConversationMode, etc. for better render performance.
Installation
npm install @elevenlabs/client@next @elevenlabs/react@next @elevenlabs/react-native@next