@stream-io/video-client 0.3.27 → 0.3.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -8357,8 +8357,9 @@ class CallState {
8357
8357
  };
8358
8358
  this.logger = getLogger(['CallState']);
8359
8359
  this.participants$ = this.participantsSubject.asObservable().pipe(
8360
- // TODO: replace with Array.toSorted once available
8361
- operators.map((ps) => [...ps].sort(this.sortParticipantsBy)), operators.shareReplay({ bufferSize: 1, refCount: true }));
8360
+ // maintain stable-sort by mutating the participants stored
8361
+ // in the original subject
8362
+ operators.map((ps) => ps.sort(this.sortParticipantsBy)), operators.shareReplay({ bufferSize: 1, refCount: true }));
8362
8363
  this.localParticipant$ = this.participants$.pipe(operators.map((participants) => participants.find(isStreamVideoLocalParticipant)), operators.shareReplay({ bufferSize: 1, refCount: true }));
8363
8364
  this.remoteParticipants$ = this.participants$.pipe(operators.map((participants) => participants.filter((p) => !p.isLocalParticipant)), operators.shareReplay({ bufferSize: 1, refCount: true }));
8364
8365
  this.pinnedParticipants$ = this.participants$.pipe(operators.map((participants) => participants.filter((p) => !!p.pin)), operators.shareReplay({ bufferSize: 1, refCount: true }));
@@ -13242,7 +13243,7 @@ class WSConnectionFallback {
13242
13243
  }
13243
13244
  }
13244
13245
 
13245
- const version = '0.3.27';
13246
+ const version = '0.3.29';
13246
13247
 
13247
13248
  const logger = getLogger(['location']);
13248
13249
  const HINT_URL = `https://hint.stream-io-video.com/`;