packages icon indicating copy to clipboard operation
packages copied to clipboard

Upgrade LiveKit dependencies

Open kraenhansen opened this issue 6 months ago • 3 comments

Summary

  • Upgrade direct LiveKit dependencies to current stable versions that satisfy the repo's 7-day release-age policy:
    • livekit-client to ^2.19.1
    • @livekit/react-native to ^2.11.0
    • @livekit/react-native-expo-plugin to ^1.0.2
    • @livekit/react-native-webrtc to ^144.1.0
  • Merge current main into the branch and revert the temporary compatibility changes from #782 now that the service is on LiveKit server 1.12.0:
    • remove the exact [email protected] pin
    • remove singlePeerConnection: false from Room construction
    • remove the local livekit-client patch registration/file
  • Regenerate pnpm-lock.yaml without LiveKit patch metadata.

Validation

  • pnpm install --frozen-lockfile
  • pnpm build (Node 24 / lts/Krypton)
  • pnpm lint (Node 24 / lts/Krypton)
  • pnpm --filter @elevenlabs/react-native check-types
  • git diff --cached --check

Notes

  • Local full/client test runs were blocked by the VM missing Playwright Chromium after the browser installer hung post-download. CI runs tests in the Playwright container image, so the pushed branch is relying on CI for the browser-backed test job.

Slack Thread

Open in Web Open in Cursor 

kraenhansen avatar May 14 '26 16:05 kraenhansen

Checked out the branch locally and ran the example which is exhibiting the symptoms from #661 and #766 - we need to solve that first.

kraenhansen avatar May 14 '26 19:05 kraenhansen

It's my current understanding that we're blocked on upgrading the LiveKit SDKs as they introduced changes which aren't backwards compatible with the server, we're currently working on upgrading the server to unblock this upgrade.

kraenhansen avatar May 20 '26 14:05 kraenhansen

we might not need the git patch after the bump. (see https://github.com/elevenlabs/packages/pull/532) upstream fixed the bug https://github.com/livekit/client-sdk-js/pull/1858

kalvin807 avatar May 21 '26 07:05 kalvin807

Is this still in progress?

zacharytyhacz avatar Jun 15 '26 21:06 zacharytyhacz

@kalvin807 can you help me verify that the patch is no longer needed? I agree this seems to be the case (with https://github.com/webrtcHacks/adapter/issues/1177#issuecomment-4275558595) but then this issue popped up 🤔 https://github.com/webrtcHacks/adapter/pull/1194

kraenhansen avatar Jun 16 '26 06:06 kraenhansen