@stream-io/video-client 1.18.6 → 1.18.7
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 +8 -0
- package/dist/index.browser.es.js +7 -6
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +7 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7 -6
- package/dist/index.es.js.map +1 -1
- package/dist/src/coordinator/connection/types.d.ts +2 -2
- package/dist/src/rtc/BasePeerConnection.d.ts +1 -1
- package/package.json +1 -1
- package/src/Call.ts +5 -2
- package/src/coordinator/connection/types.ts +2 -2
- package/src/rtc/BasePeerConnection.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.18.7](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.18.6...@stream-io/video-client-1.18.7) (2025-03-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* rename `toJSON` to `asJSON` ([#1729](https://github.com/GetStream/stream-video-js/issues/1729)) ([0d7d074](https://github.com/GetStream/stream-video-js/commit/0d7d074dac1032690b5f4af4d6ba5fcdd56dfaa2))
|
|
11
|
+
* update call reject reasons ([#1730](https://github.com/GetStream/stream-video-js/issues/1730)) ([100ed6b](https://github.com/GetStream/stream-video-js/commit/100ed6b9323b66e86123917abf4fc2973a677fca))
|
|
12
|
+
|
|
5
13
|
## [1.18.6](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.18.5...@stream-io/video-client-1.18.6) (2025-03-13)
|
|
6
14
|
|
|
7
15
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -5247,7 +5247,7 @@ class BasePeerConnection {
|
|
|
5247
5247
|
this.logger('debug', 'null ice candidate');
|
|
5248
5248
|
return;
|
|
5249
5249
|
}
|
|
5250
|
-
const iceCandidate = this.
|
|
5250
|
+
const iceCandidate = this.asJSON(candidate);
|
|
5251
5251
|
this.sfuClient
|
|
5252
5252
|
.iceTrickle({ peerType: this.peerType, iceCandidate })
|
|
5253
5253
|
.catch((err) => {
|
|
@@ -5259,7 +5259,7 @@ class BasePeerConnection {
|
|
|
5259
5259
|
/**
|
|
5260
5260
|
* Converts the ICE candidate to a JSON string.
|
|
5261
5261
|
*/
|
|
5262
|
-
this.
|
|
5262
|
+
this.asJSON = (candidate) => {
|
|
5263
5263
|
if (!candidate.usernameFragment) {
|
|
5264
5264
|
// react-native-webrtc doesn't include usernameFragment in the candidate
|
|
5265
5265
|
const segments = candidate.candidate.split(' ');
|
|
@@ -7432,7 +7432,7 @@ const aggregate = (stats) => {
|
|
|
7432
7432
|
return report;
|
|
7433
7433
|
};
|
|
7434
7434
|
|
|
7435
|
-
const version = "1.18.
|
|
7435
|
+
const version = "1.18.7";
|
|
7436
7436
|
const [major, minor, patch] = version.split('.');
|
|
7437
7437
|
let sdkInfo = {
|
|
7438
7438
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -10403,7 +10403,7 @@ class Call {
|
|
|
10403
10403
|
}
|
|
10404
10404
|
if (callingState === CallingState.RINGING && reject !== false) {
|
|
10405
10405
|
if (reject) {
|
|
10406
|
-
await this.reject(
|
|
10406
|
+
await this.reject('decline');
|
|
10407
10407
|
}
|
|
10408
10408
|
else {
|
|
10409
10409
|
// if reject was undefined, we still have to cancel the call automatically
|
|
@@ -10433,6 +10433,7 @@ class Call {
|
|
|
10433
10433
|
this.initialized = false;
|
|
10434
10434
|
this.hasJoinedOnce = false;
|
|
10435
10435
|
this.ringingSubject.next(false);
|
|
10436
|
+
this.cancelAutoDrop();
|
|
10436
10437
|
this.clientStore.unregisterCall(this);
|
|
10437
10438
|
this.camera.dispose();
|
|
10438
10439
|
this.microphone.dispose();
|
|
@@ -10571,7 +10572,7 @@ class Call {
|
|
|
10571
10572
|
*
|
|
10572
10573
|
* @param reason the reason for rejecting the call.
|
|
10573
10574
|
*/
|
|
10574
|
-
this.reject = async (reason) => {
|
|
10575
|
+
this.reject = async (reason = 'decline') => {
|
|
10575
10576
|
return this.streamClient.post(`${this.streamClientBasePath}/reject`, { reason: reason });
|
|
10576
10577
|
};
|
|
10577
10578
|
/**
|
|
@@ -13071,7 +13072,7 @@ class StreamClient {
|
|
|
13071
13072
|
this.getUserAgent = () => {
|
|
13072
13073
|
if (!this.cachedUserAgent) {
|
|
13073
13074
|
const { clientAppIdentifier = {} } = this.options;
|
|
13074
|
-
const { sdkName = 'js', sdkVersion = "1.18.
|
|
13075
|
+
const { sdkName = 'js', sdkVersion = "1.18.7", ...extras } = clientAppIdentifier;
|
|
13075
13076
|
this.cachedUserAgent = [
|
|
13076
13077
|
`stream-video-${sdkName}-v${sdkVersion}`,
|
|
13077
13078
|
...Object.entries(extras).map(([key, value]) => `${key}=${value}`),
|