From 08a03bc08d522b02d587a840230ce3604b4fda30 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 11 Nov 2026 10:57:35 +0000 Subject: [PATCH] Version Packages --- .changeset/abort-connect-on-server-leave.md | 5 -- .../cancel-incoming-stream-on-early-exit.md | 5 -- .changeset/conform-missing-fmtp.md | 5 -- .changeset/cuddly-cougars-study.md | 5 -- .changeset/data-cryptor-ratchet.md | 5 -- .changeset/datatrack-republish-rejected.md | 5 -- ...eferrable-map-abort-unhandled-rejection.md | 5 -- .changeset/detach-audio-clear-srcobject.md | 5 -- .changeset/devicechange-room-leak.md | 5 -- .changeset/e2ee-h264-pps-id.md | 5 -- .changeset/e2ee-receive-per-track.md | 5 -- .changeset/e2ee-send-local-state.md | 5 -- .changeset/faster-write-rbsp.md | 5 -- .changeset/get-devices-no-kind-permissions.md | 5 -- .../ignore-stale-participant-disconnect.md | 5 -- .changeset/initial-connect-follows-restart.md | 5 -- .../limit-open-incoming-data-streams.md | 5 -- .changeset/negotiated-data-channels.md | 5 -- .changeset/olive-cities-enjoy.md | 5 -- .changeset/pc-manager-connection-timeout.md | 5 -- ...preconnect-buffer-reads-publish-options.md | 5 -- .changeset/published-types-skiplibcheck.md | 5 -- .changeset/quiet-ping-timeout-after-close.md | 5 -- .changeset/quiet-signal-read-close.md | 5 -- .changeset/redact-ratchet-key-log.md | 5 -- .changeset/restart-buffered-events.md | 5 -- .changeset/restart-region-failover.md | 5 -- .changeset/rn-dynacast-encodings.md | 5 -- .changeset/room-extensions.md | 5 -- .../screen-share-first-frame-dimensions.md | 5 -- .changeset/short-toys-push.md | 5 -- .changeset/skip-inactive-deferred-track.md | 5 -- .changeset/stale-answer-mid-mapping.md | 5 -- .changeset/stale-connect-engine.md | 5 -- .changeset/token-source-cache-options.md | 5 -- .changeset/video-quality-requested-doc.md | 5 -- .changeset/ws-opened-close-before-open.md | 5 -- CHANGELOG.md | 80 +++++++++++++++++++ package.json | 2 +- 39 files changed, 81 insertions(+), 186 deletions(-) delete mode 100644 .changeset/abort-connect-on-server-leave.md delete mode 100644 .changeset/cancel-incoming-stream-on-early-exit.md delete mode 100644 .changeset/conform-missing-fmtp.md delete mode 100644 .changeset/cuddly-cougars-study.md delete mode 100644 .changeset/data-cryptor-ratchet.md delete mode 100644 .changeset/datatrack-republish-rejected.md delete mode 100644 .changeset/deferrable-map-abort-unhandled-rejection.md delete mode 100644 .changeset/detach-audio-clear-srcobject.md delete mode 100644 .changeset/devicechange-room-leak.md delete mode 100644 .changeset/e2ee-h264-pps-id.md delete mode 100644 .changeset/e2ee-receive-per-track.md delete mode 100644 .changeset/e2ee-send-local-state.md delete mode 100644 .changeset/faster-write-rbsp.md delete mode 100644 .changeset/get-devices-no-kind-permissions.md delete mode 100644 .changeset/ignore-stale-participant-disconnect.md delete mode 100644 .changeset/initial-connect-follows-restart.md delete mode 100644 .changeset/limit-open-incoming-data-streams.md delete mode 100644 .changeset/negotiated-data-channels.md delete mode 100644 .changeset/olive-cities-enjoy.md delete mode 100644 .changeset/pc-manager-connection-timeout.md delete mode 100644 .changeset/preconnect-buffer-reads-publish-options.md delete mode 100644 .changeset/published-types-skiplibcheck.md delete mode 100644 .changeset/quiet-ping-timeout-after-close.md delete mode 100644 .changeset/quiet-signal-read-close.md delete mode 100644 .changeset/redact-ratchet-key-log.md delete mode 100644 .changeset/restart-buffered-events.md delete mode 100644 .changeset/restart-region-failover.md delete mode 100644 .changeset/rn-dynacast-encodings.md delete mode 100644 .changeset/room-extensions.md delete mode 100644 .changeset/screen-share-first-frame-dimensions.md delete mode 100644 .changeset/short-toys-push.md delete mode 100644 .changeset/skip-inactive-deferred-track.md delete mode 100644 .changeset/stale-answer-mid-mapping.md delete mode 100644 .changeset/stale-connect-engine.md delete mode 100644 .changeset/token-source-cache-options.md delete mode 100644 .changeset/video-quality-requested-doc.md delete mode 100644 .changeset/ws-opened-close-before-open.md diff --git a/.changeset/abort-connect-on-server-leave.md b/.changeset/abort-connect-on-server-leave.md deleted file mode 100644 index 8c6d931b2f..0000000000 --- a/.changeset/abort-connect-on-server-leave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -If the server disconnects the participant while `room.connect()` is still waiting for the transports (e.g. a `DUPLICATE_IDENTITY` leave), the connection attempt is now cancelled. Previously it kept waiting until `peerConnectionTimeout`, then failed over to another region and rejoined with the same token after the room had already emitted `Disconnected`; `room.disconnect()` could not stop it because the room already looked disconnected. diff --git a/.changeset/cancel-incoming-stream-on-early-exit.md b/.changeset/cancel-incoming-stream-on-early-exit.md deleted file mode 100644 index 2335477952..0000000000 --- a/.changeset/cancel-incoming-stream-on-early-exit.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Cancel an incoming data stream when its reader stops early (an aborted `signal`, a `break` out of `for await`, or a read error), so the stream is unregistered and later packets for it are dropped instead of buffering until the trailer arrives. A reader can no longer resume a stream after leaving its iteration early. diff --git a/.changeset/conform-missing-fmtp.md b/.changeset/conform-missing-fmtp.md deleted file mode 100644 index 272150b0e3..0000000000 --- a/.changeset/conform-missing-fmtp.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Conform placeholder fmtp for codecs without an fmtp line diff --git a/.changeset/cuddly-cougars-study.md b/.changeset/cuddly-cougars-study.md deleted file mode 100644 index 4828058692..0000000000 --- a/.changeset/cuddly-cougars-study.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"livekit-client": patch ---- - -add datatrack data channel to sync state info diff --git a/.changeset/data-cryptor-ratchet.md b/.changeset/data-cryptor-ratchet.md deleted file mode 100644 index af0c679f66..0000000000 --- a/.changeset/data-cryptor-ratchet.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Fix data packet decryption after the sender ratchets its key: `DataCryptor` now retries with the ratcheted key instead of the stored one diff --git a/.changeset/datatrack-republish-rejected.md b/.changeset/datatrack-republish-rejected.md deleted file mode 100644 index fcb274afab..0000000000 --- a/.changeset/datatrack-republish-rejected.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"livekit-client": patch ---- - -Mark data track unpublished after republish fail diff --git a/.changeset/deferrable-map-abort-unhandled-rejection.md b/.changeset/deferrable-map-abort-unhandled-rejection.md deleted file mode 100644 index 2a5a4a11c7..0000000000 --- a/.changeset/deferrable-map-abort-unhandled-rejection.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Fix an unhandled promise rejection when the signal passed to `dataTracks.getDeferred()` aborts, even though the caller catches the rejected promise. diff --git a/.changeset/detach-audio-clear-srcobject.md b/.changeset/detach-audio-clear-srcobject.md deleted file mode 100644 index 06a56267d0..0000000000 --- a/.changeset/detach-audio-clear-srcobject.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Stop playing a remote audio track in Chrome once it is detached. diff --git a/.changeset/devicechange-room-leak.md b/.changeset/devicechange-room-leak.md deleted file mode 100644 index 05c6660f81..0000000000 --- a/.changeset/devicechange-room-leak.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Fix a memory leak where a `Room` was never garbage collected after the application dropped it. diff --git a/.changeset/e2ee-h264-pps-id.md b/.changeset/e2ee-h264-pps-id.md deleted file mode 100644 index 3c7acce3d0..0000000000 --- a/.changeset/e2ee-h264-pps-id.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"livekit-client": patch ---- - -Keep the H.264 PPS id readable in E2EE keyframes, so that Chrome no longer drops keyframes from encoders such as Intel Quick Sync diff --git a/.changeset/e2ee-receive-per-track.md b/.changeset/e2ee-receive-per-track.md deleted file mode 100644 index 6d15ce6a38..0000000000 --- a/.changeset/e2ee-receive-per-track.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -fix(e2ee): keep the encryption state of received tracks per track diff --git a/.changeset/e2ee-send-local-state.md b/.changeset/e2ee-send-local-state.md deleted file mode 100644 index 4da29e73ee..0000000000 --- a/.changeset/e2ee-send-local-state.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -fix(e2ee): track the local encryption state separately from remote participants diff --git a/.changeset/faster-write-rbsp.md b/.changeset/faster-write-rbsp.md deleted file mode 100644 index 1e3224b955..0000000000 --- a/.changeset/faster-write-rbsp.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Speed up the emulation prevention step for encrypted H.264 and H.265 frames. `writeRbsp` now returns the input unchanged when no byte needs escaping, and otherwise copies runs of bytes instead of building a JS array. The output does not change. diff --git a/.changeset/get-devices-no-kind-permissions.md b/.changeset/get-devices-no-kind-permissions.md deleted file mode 100644 index b5da67c7e1..0000000000 --- a/.changeset/get-devices-no-kind-permissions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Stop `Room.getLocalDevices()` without a kind from calling `getUserMedia` when every device is already listed with a label. diff --git a/.changeset/ignore-stale-participant-disconnect.md b/.changeset/ignore-stale-participant-disconnect.md deleted file mode 100644 index 820ba8253c..0000000000 --- a/.changeset/ignore-stale-participant-disconnect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Ignore a late participant update for an older session of a remote participant, so it no longer removes or replaces the participant's current session in `room.remoteParticipants`. diff --git a/.changeset/initial-connect-follows-restart.md b/.changeset/initial-connect-follows-restart.md deleted file mode 100644 index 3462d95367..0000000000 --- a/.changeset/initial-connect-follows-restart.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Follow a full reconnect that happens during the initial connection (e.g. after the server moves a client off dead UDP) instead of timing out on the closed transports and tearing down the recovered session. The room stays `Connecting` while a resume, a restart or a browser offline event happens inside `connect()` and emits no `SignalReconnecting`, `Reconnecting` or `Reconnected`. Also stop polling the transports after the connection timeout, and reject an already-aborted transport wait as cancelled instead of leaving it pending. diff --git a/.changeset/limit-open-incoming-data-streams.md b/.changeset/limit-open-incoming-data-streams.md deleted file mode 100644 index 17f23c854b..0000000000 --- a/.changeset/limit-open-incoming-data-streams.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Limit each remote participant to 500 concurrently open incoming data streams by default. Headers for new streams beyond the limit are dropped with an error log, so a participant can no longer exhaust a receiver's memory by opening streams it never closes. The limit can be changed with the `dataStream.maxOpenStreamsPerParticipant` room option. diff --git a/.changeset/negotiated-data-channels.md b/.changeset/negotiated-data-channels.md deleted file mode 100644 index 2318500bb9..0000000000 --- a/.changeset/negotiated-data-channels.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': minor ---- - -Create the publisher data channels as negotiated (fixed IDs) in single peer connection mode when the server supports it (protocol 18), saving the data channel open round trip. Falls back to in-band channels against older servers. diff --git a/.changeset/olive-cities-enjoy.md b/.changeset/olive-cities-enjoy.md deleted file mode 100644 index 22df7d9d65..0000000000 --- a/.changeset/olive-cities-enjoy.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Fixes an issue where if a data stream runs into a terminal error, any packets delivered afterwards will be treated as if the stream doesn't exist (and not throw a sync error) diff --git a/.changeset/pc-manager-connection-timeout.md b/.changeset/pc-manager-connection-timeout.md deleted file mode 100644 index 8bbffb2b4a..0000000000 --- a/.changeset/pc-manager-connection-timeout.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Apply the `peerConnectionTimeout` connect option to the negotiation deadline diff --git a/.changeset/preconnect-buffer-reads-publish-options.md b/.changeset/preconnect-buffer-reads-publish-options.md deleted file mode 100644 index 052d7435e3..0000000000 --- a/.changeset/preconnect-buffer-reads-publish-options.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Fix the microphone pre-connect buffer never starting when `preConnectBuffer` is passed via publish options. diff --git a/.changeset/published-types-skiplibcheck.md b/.changeset/published-types-skiplibcheck.md deleted file mode 100644 index f6f3bf3d3c..0000000000 --- a/.changeset/published-types-skiplibcheck.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"livekit-client": patch ---- - -fix published type declarations for consumers with `skipLibCheck: false` or `exactOptionalPropertyTypes` diff --git a/.changeset/quiet-ping-timeout-after-close.md b/.changeset/quiet-ping-timeout-after-close.md deleted file mode 100644 index 0bb85c9511..0000000000 --- a/.changeset/quiet-ping-timeout-after-close.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Stop a disconnected `SignalClient` from logging a spurious "ping timeout triggered" warning 15 s after `room.disconnect()`. diff --git a/.changeset/quiet-signal-read-close.md b/.changeset/quiet-signal-read-close.md deleted file mode 100644 index 1a278fea7a..0000000000 --- a/.changeset/quiet-signal-read-close.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Stop logging `error reading from signal stream` at error level when the signal socket was closed by the client or replaced; the read failure is now logged at debug level with the ignored close diff --git a/.changeset/redact-ratchet-key-log.md b/.changeset/redact-ratchet-key-log.md deleted file mode 100644 index 88b2e34c9a..0000000000 --- a/.changeset/redact-ratchet-key-log.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -The debug log for a ratcheted E2EE key no longer includes the ratchet result, so the chain key and the new key material stay out of the console and out of log extensions. diff --git a/.changeset/restart-buffered-events.md b/.changeset/restart-buffered-events.md deleted file mode 100644 index 395ec9dbc6..0000000000 --- a/.changeset/restart-buffered-events.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Keep `engine.pendingReconnect` accurate across reconnect attempts. A failed attempt no longer clears the handle of the retry it just scheduled (which made `pendingReconnect` read `false` while a retry was pending), and the flag now clears as soon as the reconnect timer is cleared. Buffered room events are also flushed when the engine finishes restarting if the room already reports connected. diff --git a/.changeset/restart-region-failover.md b/.changeset/restart-region-failover.md deleted file mode 100644 index 3101ef9a5f..0000000000 --- a/.changeset/restart-region-failover.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Emit `Reconnected` once and keep room metadata and recording changes when a full reconnect fails over to another region diff --git a/.changeset/rn-dynacast-encodings.md b/.changeset/rn-dynacast-encodings.md deleted file mode 100644 index da58e28f71..0000000000 --- a/.changeset/rn-dynacast-encodings.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Fix dynacast never pausing video layers on React Native: save sender encodings before skipping the stats monitor diff --git a/.changeset/room-extensions.md b/.changeset/room-extensions.md deleted file mode 100644 index 24f043c720..0000000000 --- a/.changeset/room-extensions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': minor ---- - -Split `Room` into `CoreRoom` plus extensions. `createRoom(options, [extensions])` from `livekit-client/core` builds a room with only the extensions an application needs; `e2ee`, `frameMetadata` and `dataStreams` take their options directly. `Room.dispose()` releases a room for good. Video publishing (camera, screen share, simulcast, SVC, backup codecs) is the `video` extension; receiving video stays in core. The new `livekit-client/core` entry (ESM only, experimental) exports `CoreRoom` and the extensions. `simulateParticipants` and the legacy chat messages are extensions too; the core entry does not offer legacy chat. diff --git a/.changeset/screen-share-first-frame-dimensions.md b/.changeset/screen-share-first-frame-dimensions.md deleted file mode 100644 index 19f2c6f8f7..0000000000 --- a/.changeset/screen-share-first-frame-dimensions.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Wait for the first frame of a screen share before reading its dimensions, so its simulcast layers are announced at the size the capture delivers instead of the requested resolution. diff --git a/.changeset/short-toys-push.md b/.changeset/short-toys-push.md deleted file mode 100644 index 07b12efbd5..0000000000 --- a/.changeset/short-toys-push.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Ignore signal messages received after the WebSocket is closed on React Native diff --git a/.changeset/skip-inactive-deferred-track.md b/.changeset/skip-inactive-deferred-track.md deleted file mode 100644 index 94151e103c..0000000000 --- a/.changeset/skip-inactive-deferred-track.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -fix(room): skip a deferred track the server stopped sending diff --git a/.changeset/stale-answer-mid-mapping.md b/.changeset/stale-answer-mid-mapping.md deleted file mode 100644 index 8bdc66d5e0..0000000000 --- a/.changeset/stale-answer-mid-mapping.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Keep the mid to track id mapping of the current publisher answer when an answer to an older offer or an answer with an empty mapping arrives in single peer connection mode, so remote tracks whose `track` event fires later are no longer dropped diff --git a/.changeset/stale-connect-engine.md b/.changeset/stale-connect-engine.md deleted file mode 100644 index f8fe2f1365..0000000000 --- a/.changeset/stale-connect-engine.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -If `room.disconnect()` runs during the signal join, the connection attempt now rejects as cancelled instead of with a `TypeError`. A stale connection attempt no longer closes the engine of a newer connection or disconnects the room. diff --git a/.changeset/token-source-cache-options.md b/.changeset/token-source-cache-options.md deleted file mode 100644 index 91a80e1b31..0000000000 --- a/.changeset/token-source-cache-options.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Fix `TokenSource` caching: a failed fetch no longer leaves the previous response cached under the new options, and `participantAttributes` is compared by content diff --git a/.changeset/video-quality-requested-doc.md b/.changeset/video-quality-requested-doc.md deleted file mode 100644 index faac099bf2..0000000000 --- a/.changeset/video-quality-requested-doc.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Document that `RemoteTrackPublication.videoQuality` returns the quality requested with `setVideoQuality()`. It does not show the layer that adaptive stream or network bandwidth selects. diff --git a/.changeset/ws-opened-close-before-open.md b/.changeset/ws-opened-close-before-open.md deleted file mode 100644 index 414f30f39a..0000000000 --- a/.changeset/ws-opened-close-before-open.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'livekit-client': patch ---- - -Reject `WebSocketStream.opened` when the socket closes before it opens, so that a failed, timed-out or aborted signal (re)connect on React Native no longer holds the connection lock. diff --git a/CHANGELOG.md b/CHANGELOG.md index dbc6568ac6..0da6c178f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,85 @@ # Change Log +## 2.24.0 + +### Minor Changes + +- Create the publisher data channels as negotiated (fixed IDs) in single peer connection mode when the server supports it (protocol 18), saving the data channel open round trip. Falls back to in-band channels against older servers. - [#2160](https://github.com/livekit/client-sdk-js/pull/2160) ([@lukasIO](https://github.com/lukasIO)) + +- Split `Room` into `CoreRoom` plus extensions. `createRoom(options, [extensions])` from `livekit-client/core` builds a room with only the extensions an application needs; `e2ee`, `frameMetadata` and `dataStreams` take their options directly. `Room.dispose()` releases a room for good. Video publishing (camera, screen share, simulcast, SVC, backup codecs) is the `video` extension; receiving video stays in core. The new `livekit-client/core` entry (ESM only, experimental) exports `CoreRoom` and the extensions. `simulateParticipants` and the legacy chat messages are extensions too; the core entry does not offer legacy chat. - [#2141](https://github.com/livekit/client-sdk-js/pull/2141) ([@lukasIO](https://github.com/lukasIO)) + +### Patch Changes + +- If the server disconnects the participant while `room.connect()` is still waiting for the transports (e.g. a `DUPLICATE_IDENTITY` leave), the connection attempt is now cancelled. Previously it kept waiting until `peerConnectionTimeout`, then failed over to another region and rejoined with the same token after the room had already emitted `Disconnected`; `room.disconnect()` could not stop it because the room already looked disconnected. - [#2177](https://github.com/livekit/client-sdk-js/pull/2177) ([@tobelesa](https://github.com/tobelesa)) + +- Cancel an incoming data stream when its reader stops early (an aborted `signal`, a `break` out of `for await`, or a read error), so the stream is unregistered and later packets for it are dropped instead of buffering until the trailer arrives. A reader can no longer resume a stream after leaving its iteration early. - [#2168](https://github.com/livekit/client-sdk-js/pull/2168) ([@1egoman](https://github.com/1egoman)) + +- Conform placeholder fmtp for codecs without an fmtp line - [#2182](https://github.com/livekit/client-sdk-js/pull/2182) ([@eleboucher](https://github.com/eleboucher)) + +- add datatrack data channel to sync state info - [#2159](https://github.com/livekit/client-sdk-js/pull/2159) ([@lukasIO](https://github.com/lukasIO)) + +- Fix data packet decryption after the sender ratchets its key: `DataCryptor` now retries with the ratcheted key instead of the stored one - [#2188](https://github.com/livekit/client-sdk-js/pull/2188) ([@ninglinLiu](https://github.com/ninglinLiu)) + +- Mark data track unpublished after republish fail - [#2170](https://github.com/livekit/client-sdk-js/pull/2170) ([@1egoman](https://github.com/1egoman)) + +- Fix an unhandled promise rejection when the signal passed to `dataTracks.getDeferred()` aborts, even though the caller catches the rejected promise. - [#2156](https://github.com/livekit/client-sdk-js/pull/2156) ([@Abhishek-B-R](https://github.com/Abhishek-B-R)) + +- Stop playing a remote audio track in Chrome once it is detached. - [#2234](https://github.com/livekit/client-sdk-js/pull/2234) ([@murilo-teleo](https://github.com/murilo-teleo)) + +- Fix a memory leak where a `Room` was never garbage collected after the application dropped it. - [#2222](https://github.com/livekit/client-sdk-js/pull/2222) ([@1egoman](https://github.com/1egoman)) + +- Keep the H.264 PPS id readable in E2EE keyframes, so that Chrome no longer drops keyframes from encoders such as Intel Quick Sync - [#2181](https://github.com/livekit/client-sdk-js/pull/2181) ([@lukasIO](https://github.com/lukasIO)) + +- fix(e2ee): keep the encryption state of received tracks per track - [#2246](https://github.com/livekit/client-sdk-js/pull/2246) ([@lukasIO](https://github.com/lukasIO)) + +- fix(e2ee): track the local encryption state separately from remote participants - [#2245](https://github.com/livekit/client-sdk-js/pull/2245) ([@lukasIO](https://github.com/lukasIO)) + +- Speed up the emulation prevention step for encrypted H.264 and H.265 frames. `writeRbsp` now returns the input unchanged when no byte needs escaping, and otherwise copies runs of bytes instead of building a JS array. The output does not change. - [#2184](https://github.com/livekit/client-sdk-js/pull/2184) ([@lukasIO](https://github.com/lukasIO)) + +- Stop `Room.getLocalDevices()` without a kind from calling `getUserMedia` when every device is already listed with a label. - [#2232](https://github.com/livekit/client-sdk-js/pull/2232) ([@RaphaelFakhri](https://github.com/RaphaelFakhri)) + +- Ignore a late participant update for an older session of a remote participant, so it no longer removes or replaces the participant's current session in `room.remoteParticipants`. - [#2229](https://github.com/livekit/client-sdk-js/pull/2229) ([@Brian-1812](https://github.com/Brian-1812)) + +- Follow a full reconnect that happens during the initial connection (e.g. after the server moves a client off dead UDP) instead of timing out on the closed transports and tearing down the recovered session. The room stays `Connecting` while a resume, a restart or a browser offline event happens inside `connect()` and emits no `SignalReconnecting`, `Reconnecting` or `Reconnected`. Also stop polling the transports after the connection timeout, and reject an already-aborted transport wait as cancelled instead of leaving it pending. - [#2135](https://github.com/livekit/client-sdk-js/pull/2135) ([@rafaelhutter](https://github.com/rafaelhutter)) + +- Limit each remote participant to 500 concurrently open incoming data streams by default. Headers for new streams beyond the limit are dropped with an error log, so a participant can no longer exhaust a receiver's memory by opening streams it never closes. The limit can be changed with the `dataStream.maxOpenStreamsPerParticipant` room option. - [#2214](https://github.com/livekit/client-sdk-js/pull/2214) ([@1egoman](https://github.com/1egoman)) + +- Fixes an issue where if a data stream runs into a terminal error, any packets delivered afterwards will be treated as if the stream doesn't exist (and not throw a sync error) - [#2167](https://github.com/livekit/client-sdk-js/pull/2167) ([@1egoman](https://github.com/1egoman)) + +- Apply the `peerConnectionTimeout` connect option to the negotiation deadline - [#2189](https://github.com/livekit/client-sdk-js/pull/2189) ([@ninglinLiu](https://github.com/ninglinLiu)) + +- Fix the microphone pre-connect buffer never starting when `preConnectBuffer` is passed via publish options. - [#2252](https://github.com/livekit/client-sdk-js/pull/2252) ([@1egoman](https://github.com/1egoman)) + +- fix published type declarations for consumers with `skipLibCheck: false` or `exactOptionalPropertyTypes` - [#2175](https://github.com/livekit/client-sdk-js/pull/2175) ([@lukasIO](https://github.com/lukasIO)) + +- Stop a disconnected `SignalClient` from logging a spurious "ping timeout triggered" warning 15 s after `room.disconnect()`. - [#2239](https://github.com/livekit/client-sdk-js/pull/2239) ([@Brian-1812](https://github.com/Brian-1812)) + +- Stop logging `error reading from signal stream` at error level when the signal socket was closed by the client or replaced; the read failure is now logged at debug level with the ignored close - [#2192](https://github.com/livekit/client-sdk-js/pull/2192) ([@ninglinLiu](https://github.com/ninglinLiu)) + +- The debug log for a ratcheted E2EE key no longer includes the ratchet result, so the chain key and the new key material stay out of the console and out of log extensions. - [#2213](https://github.com/livekit/client-sdk-js/pull/2213) ([@lukasIO](https://github.com/lukasIO)) + +- Keep `engine.pendingReconnect` accurate across reconnect attempts. A failed attempt no longer clears the handle of the retry it just scheduled (which made `pendingReconnect` read `false` while a retry was pending), and the flag now clears as soon as the reconnect timer is cleared. Buffered room events are also flushed when the engine finishes restarting if the room already reports connected. - [#2193](https://github.com/livekit/client-sdk-js/pull/2193) ([@1egoman](https://github.com/1egoman)) + +- Emit `Reconnected` once and keep room metadata and recording changes when a full reconnect fails over to another region - [#2165](https://github.com/livekit/client-sdk-js/pull/2165) ([@lukasIO](https://github.com/lukasIO)) + +- Fix dynacast never pausing video layers on React Native: save sender encodings before skipping the stats monitor - [#2163](https://github.com/livekit/client-sdk-js/pull/2163) ([@davidliu](https://github.com/davidliu)) + +- Wait for the first frame of a screen share before reading its dimensions, so its simulcast layers are announced at the size the capture delivers instead of the requested resolution. - [#2217](https://github.com/livekit/client-sdk-js/pull/2217) ([@CSantosM](https://github.com/CSantosM)) + +- Ignore signal messages received after the WebSocket is closed on React Native - [#2173](https://github.com/livekit/client-sdk-js/pull/2173) ([@davidliu](https://github.com/davidliu)) + +- fix(room): skip a deferred track the server stopped sending - [#2225](https://github.com/livekit/client-sdk-js/pull/2225) ([@lukasIO](https://github.com/lukasIO)) + +- Keep the mid to track id mapping of the current publisher answer when an answer to an older offer or an answer with an empty mapping arrives in single peer connection mode, so remote tracks whose `track` event fires later are no longer dropped - [#2196](https://github.com/livekit/client-sdk-js/pull/2196) ([@ninglinLiu](https://github.com/ninglinLiu)) + +- If `room.disconnect()` runs during the signal join, the connection attempt now rejects as cancelled instead of with a `TypeError`. A stale connection attempt no longer closes the engine of a newer connection or disconnects the room. - [#2151](https://github.com/livekit/client-sdk-js/pull/2151) ([@lukasIO](https://github.com/lukasIO)) + +- Fix `TokenSource` caching: a failed fetch no longer leaves the previous response cached under the new options, and `participantAttributes` is compared by content - [#2198](https://github.com/livekit/client-sdk-js/pull/2198) ([@ninglinLiu](https://github.com/ninglinLiu)) + +- Document that `RemoteTrackPublication.videoQuality` returns the quality requested with `setVideoQuality()`. It does not show the layer that adaptive stream or network bandwidth selects. - [#2220](https://github.com/livekit/client-sdk-js/pull/2220) ([@Brian-1812](https://github.com/Brian-1812)) + +- Reject `WebSocketStream.opened` when the socket closes before it opens, so that a failed, timed-out or aborted signal (re)connect on React Native no longer holds the connection lock. - [#2179](https://github.com/livekit/client-sdk-js/pull/2179) ([@sarankumar1325](https://github.com/sarankumar1325)) + ## 2.23.0 ### Minor Changes diff --git a/package.json b/package.json index 17922f3e80..53105971a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "livekit-client", - "version": "2.23.0", + "version": "2.24.0", "description": "JavaScript/TypeScript client SDK for LiveKit", "main": "./dist/livekit-client.umd.js", "unpkg": "./dist/livekit-client.umd.js",