@stream-io/video-client 0.0.43 → 0.0.44

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
+ ### [0.0.44](https://github.com/GetStream/stream-video-js/compare/client0.0.43...client0.0.44) (2023-07-14)
6
+
7
+
8
+ ### Features
9
+
10
+ * SDK version header ([#790](https://github.com/GetStream/stream-video-js/issues/790)) ([6c662db](https://github.com/GetStream/stream-video-js/commit/6c662db59321db4060b5499d8eaad8a18b1eaf6c))
11
+
5
12
  ### [0.0.43](https://github.com/GetStream/stream-video-js/compare/client0.0.42...client0.0.43) (2023-07-12)
6
13
 
7
14
 
@@ -11330,6 +11330,8 @@ class WSConnectionFallback {
11330
11330
  }
11331
11331
  }
11332
11332
 
11333
+ const version = '0.0.43';
11334
+
11333
11335
  class StreamClient {
11334
11336
  /**
11335
11337
  * Initialize a client.
@@ -11787,7 +11789,7 @@ class StreamClient {
11787
11789
  };
11788
11790
  this.getUserAgent = () => {
11789
11791
  return (this.userAgent ||
11790
- `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.42"}`);
11792
+ `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
11791
11793
  };
11792
11794
  this.setUserAgent = (userAgent) => {
11793
11795
  this.userAgent = userAgent;
@@ -12122,6 +12124,11 @@ class StreamVideoClient {
12122
12124
  }
12123
12125
  else {
12124
12126
  this.streamClient = new StreamClient(apiKeyOrArgs.apiKey, Object.assign(Object.assign({ persistUserOnConnectionFailure: true }, apiKeyOrArgs.options), { logLevel, logger: this.logger }));
12127
+ const sdkInfo = getSdkInfo();
12128
+ if (sdkInfo) {
12129
+ this.streamClient.setUserAgent(this.streamClient.getUserAgent() +
12130
+ `-video-${SdkType[sdkInfo.type].toLowerCase()}-sdk-${sdkInfo.major}.${sdkInfo.minor}.${sdkInfo.patch}`);
12131
+ }
12125
12132
  this.user = apiKeyOrArgs.user;
12126
12133
  this.token = apiKeyOrArgs.token || apiKeyOrArgs.tokenProvider;
12127
12134
  if (this.user) {