From ffb881436a7aaf22aa6e21f1df2a686f92897c34 Mon Sep 17 00:00:00 2001 From: Johannes Marbach Date: Thu, 2 Jul 2026 08:47:07 +0200 Subject: [PATCH] Eliminate @livekit/protocol --- package.json | 1 - pnpm-lock.yaml | 10 ---------- src/tile/MediaView.test.tsx | 8 ++------ 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/package.json b/package.json index c222aca80..fda2ef0db 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,6 @@ "@formatjs/intl-segmenter": "^11.7.3", "@livekit/components-core": "^0.12.0", "@livekit/components-react": "^2.0.0", - "@livekit/protocol": "^1.42.2", "@livekit/track-processors": "^0.7.1", "@mediapipe/tasks-vision": "^0.10.18", "@playwright/test": "^1.60.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 0cfcd950d..cb39222cc 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -41,9 +41,6 @@ importers: '@livekit/components-react': specifier: ^2.0.0 version: 2.9.21(livekit-client@2.19.2(@types/dom-mediacapture-record@1.0.22))(react-dom@19.2.7(react@19.2.7))(react@19.2.7)(tslib@2.8.1) - '@livekit/protocol': - specifier: ^1.42.2 - version: 1.48.0 '@livekit/track-processors': specifier: ^0.7.1 version: 0.7.2(@types/dom-mediacapture-transform@0.1.11)(livekit-client@2.19.2(@types/dom-mediacapture-record@1.0.22)) @@ -1177,9 +1174,6 @@ packages: '@livekit/protocol@1.45.8': resolution: {integrity: sha512-Q+l57E7w/xxOBFVWzdX5rkAZO7ffyF+rlDzNUYq2SU114+5aTyCq+PK4unaEVDNd4952Af7wteKr3sOgasGuaA==} - '@livekit/protocol@1.48.0': - resolution: {integrity: sha512-fYHYgltH6YavAsokl3qsHLkBdQeKCl4UORVTub5crS3t8JtKFZ0uinHDFQ+XXdNKS6Ub9gcOjV+UHcDiqnWXoQ==} - '@livekit/track-processors@0.7.2': resolution: {integrity: sha512-lzARBKTbBwqycdR/SwTu6//N0l20BzfDd7grxCXl07676SwRApNtZAK1GJjL1m3dCM3KBqH1aVxjMpNcbOw5uQ==} peerDependencies: @@ -7167,10 +7161,6 @@ snapshots: dependencies: '@bufbuild/protobuf': 1.10.1 - '@livekit/protocol@1.48.0': - dependencies: - '@bufbuild/protobuf': 1.10.1 - '@livekit/track-processors@0.7.2(@types/dom-mediacapture-transform@0.1.11)(livekit-client@2.19.2(@types/dom-mediacapture-record@1.0.22))': dependencies: '@mediapipe/tasks-vision': 0.10.35 diff --git a/src/tile/MediaView.test.tsx b/src/tile/MediaView.test.tsx index c78819762..75e763495 100644 --- a/src/tile/MediaView.test.tsx +++ b/src/tile/MediaView.test.tsx @@ -13,8 +13,7 @@ import { type TrackReference, type TrackReferencePlaceholder, } from "@livekit/components-core"; -import { LocalTrackPublication, Track } from "livekit-client"; -import { TrackInfo } from "@livekit/protocol"; +import { type LocalTrackPublication, Track } from "livekit-client"; import { type ComponentProps } from "react"; import { MediaView } from "./MediaView"; @@ -28,10 +27,7 @@ describe("MediaView", () => { }; const trackReference: TrackReference = { ...trackReferencePlaceholder, - publication: new LocalTrackPublication( - Track.Kind.Video, - new TrackInfo({ sid: "id", name: "name" }), - ), + publication: {} as Partial as LocalTrackPublication, }; const baseProps: ComponentProps = {