@stream-io/video-client 1.39.3 → 1.40.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 +6 -0
- package/dist/index.browser.es.js +11 -2
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +11 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +11 -2
- package/dist/index.es.js.map +1 -1
- package/dist/src/Call.d.ts +12 -1
- package/dist/src/gen/coordinator/index.d.ts +450 -16
- package/package.json +1 -1
- package/src/Call.ts +22 -0
- package/src/gen/coordinator/index.ts +448 -16
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [1.40.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.39.3...@stream-io/video-client-1.40.0) (2026-01-09)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
- Call Stats Map ([#2025](https://github.com/GetStream/stream-video-js/issues/2025)) ([6c784f0](https://github.com/GetStream/stream-video-js/commit/6c784f0acacce3d23d0f589ff423d6a0d04c1e95))
|
|
10
|
+
|
|
5
11
|
## [1.39.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.39.2...@stream-io/video-client-1.39.3) (2025-12-30)
|
|
6
12
|
|
|
7
13
|
### Bug Fixes
|
package/dist/index.browser.es.js
CHANGED
|
@@ -6060,7 +6060,7 @@ const getSdkVersion = (sdk) => {
|
|
|
6060
6060
|
return sdk ? `${sdk.major}.${sdk.minor}.${sdk.patch}` : '0.0.0-development';
|
|
6061
6061
|
};
|
|
6062
6062
|
|
|
6063
|
-
const version = "1.
|
|
6063
|
+
const version = "1.40.0";
|
|
6064
6064
|
const [major, minor, patch] = version.split('.');
|
|
6065
6065
|
let sdkInfo = {
|
|
6066
6066
|
type: SdkType.PLAIN_JAVASCRIPT,
|
|
@@ -13754,6 +13754,15 @@ class Call {
|
|
|
13754
13754
|
},
|
|
13755
13755
|
});
|
|
13756
13756
|
};
|
|
13757
|
+
/**
|
|
13758
|
+
* Retrieves the call stats for the current call session in a format suitable
|
|
13759
|
+
* for displaying in map-like UIs.
|
|
13760
|
+
*/
|
|
13761
|
+
this.getCallStatsMap = async (params = {}, callSessionId = this.state.session?.id) => {
|
|
13762
|
+
if (!callSessionId)
|
|
13763
|
+
throw new Error('callSessionId is required');
|
|
13764
|
+
return this.streamClient.get(`${this.streamClient.baseURL}/call_stats/${this.type}/${this.id}/${callSessionId}/map`, params);
|
|
13765
|
+
};
|
|
13757
13766
|
/**
|
|
13758
13767
|
* Sends a custom event to all call participants.
|
|
13759
13768
|
*
|
|
@@ -15081,7 +15090,7 @@ class StreamClient {
|
|
|
15081
15090
|
this.getUserAgent = () => {
|
|
15082
15091
|
if (!this.cachedUserAgent) {
|
|
15083
15092
|
const { clientAppIdentifier = {} } = this.options;
|
|
15084
|
-
const { sdkName = 'js', sdkVersion = "1.
|
|
15093
|
+
const { sdkName = 'js', sdkVersion = "1.40.0", ...extras } = clientAppIdentifier;
|
|
15085
15094
|
this.cachedUserAgent = [
|
|
15086
15095
|
`stream-video-${sdkName}-v${sdkVersion}`,
|
|
15087
15096
|
...Object.entries(extras).map(([key, value]) => `${key}=${value}`),
|