@stream-io/video-client 0.7.6 → 0.7.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 +7 -0
- package/dist/index.browser.es.js +5 -3
- package/dist/index.browser.es.js.map +1 -1
- package/dist/index.cjs.js +5 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -3
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
- package/src/Call.ts +4 -2
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.7](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.7.6...@stream-io/video-client-0.7.7) (2024-04-23)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **feedback:** Collect user feedback ([#1324](https://github.com/GetStream/stream-video-js/issues/1324)) ([b415de0](https://github.com/GetStream/stream-video-js/commit/b415de0828e402f8d3b854553351843aad2e8473))
|
|
11
|
+
|
|
5
12
|
### [0.7.6](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-0.7.5...@stream-io/video-client-0.7.6) (2024-04-23)
|
|
6
13
|
|
|
7
14
|
|
package/dist/index.browser.es.js
CHANGED
|
@@ -12637,12 +12637,14 @@ class Call {
|
|
|
12637
12637
|
if (rating < 1 || rating > 5) {
|
|
12638
12638
|
throw new Error('Rating must be between 1 and 5');
|
|
12639
12639
|
}
|
|
12640
|
-
const userSessionId = this.sfuClient?.sessionId;
|
|
12641
12640
|
const callSessionId = this.state.session?.id;
|
|
12642
|
-
if (!callSessionId
|
|
12641
|
+
if (!callSessionId) {
|
|
12643
12642
|
throw new Error('Feedback can be submitted only in the context of a call session');
|
|
12644
12643
|
}
|
|
12645
12644
|
const { sdkName, sdkVersion, ...platform } = getSdkSignature(getClientDetails());
|
|
12645
|
+
// user sessionId is not available once the call has been left
|
|
12646
|
+
// until we relax the backend validation, we'll send N/A
|
|
12647
|
+
const userSessionId = this.sfuClient?.sessionId ?? 'N/A';
|
|
12646
12648
|
const endpoint = `${this.streamClientBasePath}/feedback/${callSessionId}`;
|
|
12647
12649
|
return this.streamClient.post(endpoint, {
|
|
12648
12650
|
rating,
|
|
@@ -14480,7 +14482,7 @@ class StreamClient {
|
|
|
14480
14482
|
});
|
|
14481
14483
|
};
|
|
14482
14484
|
this.getUserAgent = () => {
|
|
14483
|
-
const version = "0.7.
|
|
14485
|
+
const version = "0.7.7" ;
|
|
14484
14486
|
return (this.userAgent ||
|
|
14485
14487
|
`stream-video-javascript-client-${this.node ? 'node' : 'browser'}-${version}`);
|
|
14486
14488
|
};
|