@stream-io/video-client 1.2.2 → 1.2.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,13 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ### [1.2.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.2.2...@stream-io/video-client-1.2.3) (2024-06-05)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * catch error for user connect in constructor ([#1390](https://github.com/GetStream/stream-video-js/issues/1390)) ([9a69853](https://github.com/GetStream/stream-video-js/commit/9a69853bac33f70d62224e30a3df5e5383173940))
11
+
5
12
  ### [1.2.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.2.1...@stream-io/video-client-1.2.2) (2024-06-04)
6
13
 
7
14
 
@@ -15291,7 +15291,7 @@ class StreamClient {
15291
15291
  });
15292
15292
  };
15293
15293
  this.getUserAgent = () => {
15294
- const version = "1.2.2" ;
15294
+ const version = "1.2.3" ;
15295
15295
  return (this.userAgent ||
15296
15296
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
15297
15297
  };
@@ -15652,7 +15652,9 @@ class StreamVideoClient {
15652
15652
  const user = apiKeyOrArgs.user;
15653
15653
  const token = apiKeyOrArgs.token || apiKeyOrArgs.tokenProvider;
15654
15654
  if (user) {
15655
- this.connectUser(user, token);
15655
+ this.connectUser(user, token).catch((err) => {
15656
+ this.logger('error', 'Failed to connect', err);
15657
+ });
15656
15658
  }
15657
15659
  }
15658
15660
  }