@stream-io/video-client 1.18.0 → 1.18.1

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,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.18.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.18.0...@stream-io/video-client-1.18.1) (2025-02-28)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * prevent reconnecting state when offline ([#1703](https://github.com/GetStream/stream-video-js/issues/1703)) ([aeac90d](https://github.com/GetStream/stream-video-js/commit/aeac90d8b7b14820e3e0e30282e51fc7824f8bf8))
11
+
5
12
  ## [1.18.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.17.1...@stream-io/video-client-1.18.0) (2025-02-26)
6
13
 
7
14
 
@@ -7463,7 +7463,7 @@ const aggregate = (stats) => {
7463
7463
  return report;
7464
7464
  };
7465
7465
 
7466
- const version = "1.18.0";
7466
+ const version = "1.18.1";
7467
7467
  const [major, minor, patch] = version.split('.');
7468
7468
  let sdkInfo = {
7469
7469
  type: SdkType.PLAIN_JAVASCRIPT,
@@ -10624,8 +10624,13 @@ class Call {
10624
10624
  statsOptions = joinResponse.stats_options;
10625
10625
  }
10626
10626
  catch (error) {
10627
- // restore the previous call state if the join-flow fails
10628
- this.state.setCallingState(callingState);
10627
+ // prevent triggering reconnect flow if the state is OFFLINE
10628
+ const avoidRestoreState = this.state.callingState === CallingState.OFFLINE &&
10629
+ callingState === CallingState.RECONNECTING;
10630
+ if (!avoidRestoreState) {
10631
+ // restore the previous call state if the join-flow fails
10632
+ this.state.setCallingState(callingState);
10633
+ }
10629
10634
  throw error;
10630
10635
  }
10631
10636
  }
@@ -13088,7 +13093,7 @@ class StreamClient {
13088
13093
  this.getUserAgent = () => {
13089
13094
  if (!this.cachedUserAgent) {
13090
13095
  const { clientAppIdentifier = {} } = this.options;
13091
- const { sdkName = 'js', sdkVersion = "1.18.0", ...extras } = clientAppIdentifier;
13096
+ const { sdkName = 'js', sdkVersion = "1.18.1", ...extras } = clientAppIdentifier;
13092
13097
  this.cachedUserAgent = [
13093
13098
  `stream-video-${sdkName}-v${sdkVersion}`,
13094
13099
  ...Object.entries(extras).map(([key, value]) => `${key}=${value}`),