@stream-io/video-client 0.4.10 → 0.5.0

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,17 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.5.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.4.10...@stream-io/video-client-0.5.0) (2023-11-29)
6
+
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * **react-native:** move to webrtc 118 (#1197)
11
+
12
+ ### Features
13
+
14
+ * **react-native:** move to webrtc 118 ([#1197](https://github.com/GetStream/stream-video-js/issues/1197)) ([8cdbe11](https://github.com/GetStream/stream-video-js/commit/8cdbe11de069fcb6eae5643f5cef5c9612f6c805))
15
+
5
16
  ### [0.4.10](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.4.9...@stream-io/video-client-0.4.10) (2023-11-27)
6
17
 
7
18
 
@@ -5829,6 +5829,15 @@ const createSignalClient = (options) => {
5829
5829
  return new SignalServerClient(transport);
5830
5830
  };
5831
5831
 
5832
+ /**
5833
+ * Checks whether we are using React Native
5834
+ */
5835
+ const isReactNative = () => {
5836
+ if (typeof navigator === 'undefined')
5837
+ return false;
5838
+ return navigator.product?.toLowerCase() === 'reactnative';
5839
+ };
5840
+
5832
5841
  // log levels, sorted by verbosity
5833
5842
  const logLevels = Object.freeze({
5834
5843
  trace: 0,
@@ -5846,6 +5855,11 @@ const logToConsole = (logLevel, message, ...args) => {
5846
5855
  logMethod = console.error;
5847
5856
  break;
5848
5857
  case 'warn':
5858
+ if (isReactNative()) {
5859
+ message = `WARN: ${message}`;
5860
+ logMethod = console.info;
5861
+ break;
5862
+ }
5849
5863
  logMethod = console.warn;
5850
5864
  break;
5851
5865
  case 'info':
@@ -6032,15 +6046,6 @@ function getIceCandidate(candidate) {
6032
6046
  }
6033
6047
  }
6034
6048
 
6035
- /**
6036
- * Checks whether we are using React Native
6037
- */
6038
- const isReactNative = () => {
6039
- if (typeof navigator === 'undefined')
6040
- return false;
6041
- return navigator.product?.toLowerCase() === 'reactnative';
6042
- };
6043
-
6044
6049
  let sdkInfo;
6045
6050
  let osInfo;
6046
6051
  let deviceInfo;
@@ -14032,7 +14037,7 @@ class StreamClient {
14032
14037
  });
14033
14038
  };
14034
14039
  this.getUserAgent = () => {
14035
- const version = "0.4.10" ;
14040
+ const version = "0.5.0" ;
14036
14041
  return (this.userAgent ||
14037
14042
  `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
14038
14043
  };