@stream-io/video-client 0.7.12 → 0.7.13

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.7.13](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.7.12...@stream-io/video-client-0.7.13) (2024-05-07)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * change log level of send stats SFU API to type debug ([#1338](https://github.com/GetStream/stream-video-js/issues/1338)) ([76e43ad](https://github.com/GetStream/stream-video-js/commit/76e43adbff1d54e1b0b5548dabf550cd9044d9dc))
11
+
5
12
  ### [0.7.12](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.7.11...@stream-io/video-client-0.7.12) (2024-05-03)
6
13
 
7
14
 
@@ -8885,7 +8885,7 @@ class StreamSfuClient {
8885
8885
  return retryable(() => this.rpc.updateSubscriptions({
8886
8886
  sessionId: this.sessionId,
8887
8887
  tracks: subscriptions,
8888
- }), this.logger);
8888
+ }), this.logger, 'debug');
8889
8889
  };
8890
8890
  this.setPublisher = async (data) => {
8891
8891
  return retryable(() => this.rpc.setPublisher({
@@ -8931,7 +8931,7 @@ class StreamSfuClient {
8931
8931
  return retryable(() => this.rpc.sendStats({
8932
8932
  ...stats,
8933
8933
  sessionId: this.sessionId,
8934
- }), this.logger);
8934
+ }), this.logger, 'debug');
8935
8935
  };
8936
8936
  this.startNoiseCancellation = async () => {
8937
8937
  return retryable(() => this.rpc.startNoiseCancellation({
@@ -9068,7 +9068,7 @@ const MAX_RETRIES = 5;
9068
9068
  * @param <I> the type of the request object.
9069
9069
  * @param <O> the type of the response object.
9070
9070
  */
9071
- const retryable = async (rpc, logger) => {
9071
+ const retryable = async (rpc, logger, level = 'error') => {
9072
9072
  let retryAttempt = 0;
9073
9073
  let rpcCallResult;
9074
9074
  do {
@@ -9077,10 +9077,9 @@ const retryable = async (rpc, logger) => {
9077
9077
  await sleep(retryInterval(retryAttempt));
9078
9078
  }
9079
9079
  rpcCallResult = await rpc();
9080
- logger('trace', `SFU RPC response received for ${rpcCallResult.method.name}`, rpcCallResult);
9081
9080
  // if the RPC call failed, log the error and retry
9082
9081
  if (rpcCallResult.response.error) {
9083
- logger('error', `SFU RPC Error (${rpcCallResult.method.name}):`, rpcCallResult.response.error);
9082
+ logger(level, `SFU RPC Error (${rpcCallResult.method.name}):`, rpcCallResult.response.error);
9084
9083
  }
9085
9084
  retryAttempt++;
9086
9085
  } while (rpcCallResult.response.error?.shouldRetry &&
@@ -14894,7 +14893,7 @@ class StreamClient {
14894
14893
  });
14895
14894
  };
14896
14895
  this.getUserAgent = () => {
14897
- const version = "0.7.12" ;
14896
+ const version = "0.7.13" ;
14898
14897
  return (this.userAgent ||
14899
14898
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
14900
14899
  };