@stream-io/video-client 0.0.19 → 0.0.20

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.20](https://github.com/GetStream/stream-video-js/compare/client0.0.19...client0.0.20) (2023-06-21)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * proper media stream disposal for rn webrtc ([#682](https://github.com/GetStream/stream-video-js/issues/682)) ([8879bac](https://github.com/GetStream/stream-video-js/commit/8879bac82080232928b78316fdb452bbc3c79fbc))
11
+
5
12
  ### [0.0.19](https://github.com/GetStream/stream-video-js/compare/client0.0.18...client0.0.19) (2023-06-20)
6
13
 
7
14
 
@@ -11079,7 +11079,7 @@ class StreamClient {
11079
11079
  }
11080
11080
  getUserAgent() {
11081
11081
  return (this.userAgent ||
11082
- `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.18"}`);
11082
+ `stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${"0.0.19"}`);
11083
11083
  }
11084
11084
  setUserAgent(userAgent) {
11085
11085
  this.userAgent = userAgent;
@@ -11724,6 +11724,11 @@ const disposeOfMediaStream = (stream) => {
11724
11724
  track.stop();
11725
11725
  stream.removeTrack(track);
11726
11726
  });
11727
+ // @ts-expect-error release() is present in react-native-webrtc and must be called to dispose the stream
11728
+ if (typeof stream.release === 'function') {
11729
+ // @ts-expect-error
11730
+ stream.release();
11731
+ }
11727
11732
  };
11728
11733
 
11729
11734
  const DETECTION_FREQUENCY_IN_MS = 500;