@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.es.js CHANGED
@@ -8337,8 +8337,9 @@ class CallState {
8337
8337
  };
8338
8338
  this.logger = getLogger(['CallState']);
8339
8339
  this.participants$ = this.participantsSubject.asObservable().pipe(
8340
- // TODO: replace with Array.toSorted once available
8341
- map$1((ps) => [...ps].sort(this.sortParticipantsBy)), shareReplay({ bufferSize: 1, refCount: true }));
8340
+ // maintain stable-sort by mutating the participants stored
8341
+ // in the original subject
8342
+ map$1((ps) => ps.sort(this.sortParticipantsBy)), shareReplay({ bufferSize: 1, refCount: true }));
8342
8343
  this.localParticipant$ = this.participants$.pipe(map$1((participants) => participants.find(isStreamVideoLocalParticipant)), shareReplay({ bufferSize: 1, refCount: true }));
8343
8344
  this.remoteParticipants$ = this.participants$.pipe(map$1((participants) => participants.filter((p) => !p.isLocalParticipant)), shareReplay({ bufferSize: 1, refCount: true }));
8344
8345
  this.pinnedParticipants$ = this.participants$.pipe(map$1((participants) => participants.filter((p) => !!p.pin)), shareReplay({ bufferSize: 1, refCount: true }));
@@ -13222,7 +13223,7 @@ class WSConnectionFallback {
13222
13223
  }
13223
13224
  }
13224
13225
 
13225
- const version = '0.3.27';
13226
+ const version = '0.3.29';
13226
13227
 
13227
13228
  const logger = getLogger(['location']);
13228
13229
  const HINT_URL = `https://hint.stream-io-video.com/`;