@stream-io/video-client 1.42.2 → 1.42.3

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/CHANGELOG.md CHANGED
@@ -2,6 +2,12 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.42.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.42.2...@stream-io/video-client-1.42.3) (2026-02-16)
6
+
7
+ ### Bug Fixes
8
+
9
+ - guard from parallel accept/reject invocations ([#2127](https://github.com/GetStream/stream-video-js/issues/2127)) ([621218f](https://github.com/GetStream/stream-video-js/commit/621218f4ab6b4623370fd66f1b02b8cb7cb1baad))
10
+
5
11
  ## [1.42.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.42.1...@stream-io/video-client-1.42.2) (2026-02-13)
6
12
 
7
13
  ### Bug Fixes
@@ -6231,7 +6231,7 @@ const getSdkVersion = (sdk) => {
6231
6231
  return sdk ? `${sdk.major}.${sdk.minor}.${sdk.patch}` : '0.0.0-development';
6232
6232
  };
6233
6233
 
6234
- const version = "1.42.2";
6234
+ const version = "1.42.3";
6235
6235
  const [major, minor, patch] = version.split('.');
6236
6236
  let sdkInfo = {
6237
6237
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -12446,6 +12446,7 @@ class Call {
12446
12446
  this.hasJoinedOnce = false;
12447
12447
  this.deviceSettingsAppliedOnce = false;
12448
12448
  this.initialized = false;
12449
+ this.acceptRejectConcurrencyTag = Symbol('acceptRejectTag');
12449
12450
  this.joinLeaveConcurrencyTag = Symbol('joinLeaveConcurrencyTag');
12450
12451
  /**
12451
12452
  * A list hooks/functions to invoke when the call is left.
@@ -12860,8 +12861,10 @@ class Call {
12860
12861
  * Unless you are implementing a custom "ringing" flow, you should not use this method.
12861
12862
  */
12862
12863
  this.accept = async () => {
12863
- this.tracer.trace('call.accept', '');
12864
- return this.streamClient.post(`${this.streamClientBasePath}/accept`);
12864
+ return withoutConcurrency(this.acceptRejectConcurrencyTag, () => {
12865
+ this.tracer.trace('call.accept', '');
12866
+ return this.streamClient.post(`${this.streamClientBasePath}/accept`);
12867
+ });
12865
12868
  };
12866
12869
  /**
12867
12870
  * Marks the incoming call as rejected.
@@ -12873,8 +12876,10 @@ class Call {
12873
12876
  * @param reason the reason for rejecting the call.
12874
12877
  */
12875
12878
  this.reject = async (reason = 'decline') => {
12876
- this.tracer.trace('call.reject', reason);
12877
- return this.streamClient.post(`${this.streamClientBasePath}/reject`, { reason: reason });
12879
+ return withoutConcurrency(this.acceptRejectConcurrencyTag, () => {
12880
+ this.tracer.trace('call.reject', reason);
12881
+ return this.streamClient.post(`${this.streamClientBasePath}/reject`, { reason });
12882
+ });
12878
12883
  };
12879
12884
  /**
12880
12885
  * Will start to watch for call related WebSocket events and initiate a call session with the server.
@@ -15596,7 +15601,7 @@ class StreamClient {
15596
15601
  this.getUserAgent = () => {
15597
15602
  if (!this.cachedUserAgent) {
15598
15603
  const { clientAppIdentifier = {} } = this.options;
15599
- const { sdkName = 'js', sdkVersion = "1.42.2", ...extras } = clientAppIdentifier;
15604
+ const { sdkName = 'js', sdkVersion = "1.42.3", ...extras } = clientAppIdentifier;
15600
15605
  this.cachedUserAgent = [
15601
15606
  `stream-video-${sdkName}-v${sdkVersion}`,
15602
15607
  ...Object.entries(extras).map(([key, value]) => `${key}=${value}`),