From 27185bbd782273f6447b16e9e1b0ee403c5bb5f8 Mon Sep 17 00:00:00 2001 From: David Zhao Date: Thu, 14 Mar 2024 14:05:56 -0700 Subject: [PATCH] Export SubscriptionError (#1075) * Export SubscriptionError * changeset * revert test code --- .changeset/wicked-balloons-grin.md | 5 +++ src/index.ts | 59 +++++++++++++++--------------- 2 files changed, 35 insertions(+), 29 deletions(-) create mode 100644 .changeset/wicked-balloons-grin.md diff --git a/.changeset/wicked-balloons-grin.md b/.changeset/wicked-balloons-grin.md new file mode 100644 index 0000000000..d36202f42a --- /dev/null +++ b/.changeset/wicked-balloons-grin.md @@ -0,0 +1,5 @@ +--- +"livekit-client": patch +--- + +Export SubscriptionError from protocol diff --git a/src/index.ts b/src/index.ts index bec0e2a8ad..236153ec01 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,4 +1,4 @@ -import { DataPacket_Kind, DisconnectReason } from '@livekit/protocol'; +import { DataPacket_Kind, DisconnectReason, SubscriptionError } from '@livekit/protocol'; import { LogLevel, LoggerNames, getLogger, setLogExtension, setLogLevel } from './logger'; import DefaultReconnectPolicy from './room/DefaultReconnectPolicy'; import Room, { ConnectionState } from './room/Room'; @@ -31,55 +31,56 @@ import { } from './room/utils'; export * from './connectionHelper/ConnectionCheck'; +export * from './e2ee'; export * from './options'; export * from './room/errors'; export * from './room/events'; export * from './room/track/Track'; export * from './room/track/create'; -export * from './room/track/options'; export { facingModeFromDeviceLabel, facingModeFromLocalTrack } from './room/track/facingMode'; +export * from './room/track/options'; +export * from './room/track/processor/types'; export * from './room/track/types'; export type { DataPublishOptions, SimulationScenario } from './room/types'; export * from './version'; -export * from './e2ee'; -export * from './room/track/processor/types'; export { - setLogLevel, - setLogExtension, - getEmptyAudioStreamTrack, - getEmptyVideoStreamTrack, - isBrowserSupported, - supportsAdaptiveStream, - supportsDynacast, - supportsAV1, - supportsVP9, - createAudioAnalyser, - LogLevel, - LoggerNames, - getLogger, - Room, + ConnectionQuality, ConnectionState, + CriticalTimers, DataPacket_Kind, + DefaultReconnectPolicy, DisconnectReason, - Participant, - RemoteParticipant, - LocalParticipant, LocalAudioTrack, - LocalVideoTrack, + LocalParticipant, LocalTrack, LocalTrackPublication, - RemoteTrack, + LocalVideoTrack, + LogLevel, + LoggerNames, + Participant, RemoteAudioTrack, - RemoteVideoTrack, + RemoteParticipant, + RemoteTrack, RemoteTrackPublication, + RemoteVideoTrack, + Room, + SubscriptionError, TrackPublication, - ConnectionQuality, - DefaultReconnectPolicy, - CriticalTimers, + createAudioAnalyser, + getEmptyAudioStreamTrack, + getEmptyVideoStreamTrack, + getLogger, + isBrowserSupported, + setLogExtension, + setLogLevel, + supportsAV1, + supportsAdaptiveStream, + supportsDynacast, + supportsVP9, }; export type { - ElementInfo, - ParticipantTrackPermission, AudioAnalyserOptions, + ElementInfo, LiveKitReactNativeInfo, + ParticipantTrackPermission, };