mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
2.7 KiB
2.7 KiB
Vendored livekit-client
Vendored from https://github.com/livekit/client-sdk-js at tag v2.22.3 (commit 53dd840) under the Apache-2.0 licence. Re-vendored from v2.17.2 on 2026-09-17.
Source transforms
Every file went through the same mechanical steps, so a fresh upstream tree can be brought into this shape before merging.
- Test files,
src/testand snapshots are dropped. Files that are not reachable fromsrc/index.tsorsrc/e2ee/worker/e2ee.worker.tsare dropped too. - Comments are stripped.
/// <reference>lines,@ts-expect-errordirectives that are still needed andbiome-ignorelines stay. - Relative imports get explicit
.tsextensions, and directory imports point atindex.ts. - Each file starts with the LiveKit SPDX header.
biome check --write --unsaferuns with the repo config. The unsafe fixes are reviewed by hand, becauseuseOptionalChainturnedcallback && callback(x)into a call onfalseinroom/debounce.ts, andnoUnusedPrivateClassMembersdeleted a field that was still written inutils/dataPacketBuffer.ts.- The tree is made to pass
tsgo --noEmitunderfluxer_app/tsconfig.json. That meansoverridemodifiers, explicitreturn undefined, typedletdeclarations, no async promise executors, literal enum members and no unused@ts-expect-errordirectives. @livekit/throws-transformer/throwsimports point atsrc/utils/throws.ts, which copies its type definitions, so the dev-only package is not a dependency.
Removed upstream code
connectionHelper, createLocalScreenTracks, getStereoAudioStreamTrack, isLocalPub, the frame metadata worker, room/token-source/test-tokens.ts, utils/subscribeToEvents.ts, and the DataTrackPacket, data track packet extension and LocalTrackRecorder exports. createV0RtcUrl, truncateBytes, videoQualityForRid and STOP_REFETCH_DELAY_MS are no longer exported.
Updating from upstream
- Read the upstream changelog for the target version.
- Run the source transforms on the old tag and on the new tag. Keep the old result as the merge base and the new result as the other side.
- Strip blank lines from the base, this tree and the new tree, run
git merge-file --diff3 --diff-algorithm=histogramper file, and put blank lines back from the new tree. Blank-line drift between the trees otherwise turns into conflicts. - Resolve conflicts by starting from the upstream function and reapplying whatever this tree changed.
- Diff the result against the transformed new tag after compiling both to JavaScript without types. Review every hunk.
- Run
tsgo --noEmitunder the app tsconfig,biome check,knipandpnpm --filter livekit-client test, then update the version inpackage.jsonand this file.