@stream-io/video-client 1.61.0 → 2.0.0-beta.1

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.
Files changed (52) hide show
  1. package/CHANGELOG.md +10 -10
  2. package/dist/index.browser.es.js +358 -611
  3. package/dist/index.browser.es.js.map +1 -1
  4. package/dist/index.cjs.js +357 -611
  5. package/dist/index.cjs.js.map +1 -1
  6. package/dist/index.es.js +358 -611
  7. package/dist/index.es.js.map +1 -1
  8. package/dist/src/Call.d.ts +3 -3
  9. package/dist/src/StreamVideoClient.d.ts +15 -21
  10. package/dist/src/store/CallState.d.ts +108 -266
  11. package/dist/src/store/ClientState.d.ts +62 -0
  12. package/dist/src/store/index.d.ts +1 -1
  13. package/dist/src/store/subjects.d.ts +15 -0
  14. package/dist/src/store/types.d.ts +22 -0
  15. package/dist/src/types.d.ts +3 -3
  16. package/package.json +2 -2
  17. package/src/Call.ts +14 -18
  18. package/src/StreamVideoClient.ts +40 -47
  19. package/src/__tests__/Call.autodrop.test.ts +4 -4
  20. package/src/__tests__/Call.getRingState.test.ts +2 -2
  21. package/src/__tests__/Call.lifecycle.test.ts +8 -8
  22. package/src/__tests__/Call.publishing.test.ts +2 -2
  23. package/src/__tests__/Call.ringSettled.test.ts +4 -4
  24. package/src/__tests__/Call.ringingLifecycle.test.ts +2 -2
  25. package/src/__tests__/StreamVideoClient.disconnect.test.ts +62 -0
  26. package/src/devices/__tests__/CameraManager.test.ts +2 -2
  27. package/src/devices/__tests__/DeviceManager.test.ts +2 -2
  28. package/src/devices/__tests__/DeviceManagerFilters.test.ts +2 -2
  29. package/src/devices/__tests__/MicrophoneManager.test.ts +2 -2
  30. package/src/devices/__tests__/MicrophoneManagerRN.test.ts +2 -2
  31. package/src/devices/__tests__/ScreenShareManager.test.ts +3 -3
  32. package/src/devices/__tests__/SpeakerManager.test.ts +4 -4
  33. package/src/events/__tests__/call.test.ts +3 -3
  34. package/src/helpers/__tests__/AudioBindingsWatchdog.test.ts +2 -2
  35. package/src/helpers/__tests__/DynascaleManager.test.ts +2 -2
  36. package/src/helpers/__tests__/ViewportTracker.test.ts +2 -2
  37. package/src/ringing/__tests__/RingStatePoller.test.ts +7 -7
  38. package/src/ringing/__tests__/RingTimeout.test.ts +4 -4
  39. package/src/ringing/__tests__/reconcileRingState.test.ts +3 -3
  40. package/src/rtc/__tests__/Call.reconnect.test.ts +5 -5
  41. package/src/store/CallState.ts +281 -551
  42. package/src/store/ClientState.ts +101 -0
  43. package/src/store/__tests__/CallState.test.ts +1 -1
  44. package/src/store/__tests__/ClientState.test.ts +35 -0
  45. package/src/store/__tests__/rxUtils.test.ts +67 -1
  46. package/src/store/index.ts +1 -1
  47. package/src/store/rxUtils.ts +8 -4
  48. package/src/store/subjects.ts +30 -0
  49. package/src/store/types.ts +45 -0
  50. package/src/types.ts +3 -3
  51. package/dist/src/store/stateStore.d.ts +0 -84
  52. package/src/store/stateStore.ts +0 -156
package/CHANGELOG.md CHANGED
@@ -2,25 +2,25 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
- ## [1.61.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.60.0...@stream-io/video-client-1.61.0) (2026-09-28)
5
+ ## [2.0.0-beta.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-2.0.0-beta.0...@stream-io/video-client-2.0.0-beta.1) (2026-09-28)
6
6
 
7
7
  ### Features
8
8
 
9
- - **rn:** add end-to-end encryption support ([#2427](https://github.com/GetStream/stream-video-js/issues/2427)) ([fcd9722](https://github.com/GetStream/stream-video-js/commit/fcd97225597c26ec14bde100b6a4ed14da0ccf93))
9
+ - **client:** identify the SDK and version on SFU RPCs ([#2425](https://github.com/GetStream/stream-video-js/issues/2425)) ([2312002](https://github.com/GetStream/stream-video-js/commit/2312002e455ecb0060c5393a0b0845eb16057322))
10
+ - **client:** poll ring state to reconcile a dropped ring outcome ([#2393](https://github.com/GetStream/stream-video-js/issues/2393)) ([73bfc98](https://github.com/GetStream/stream-video-js/commit/73bfc980560786790597dfb1b512e3835e316bfc))
11
+ - **client:** replace the two client state stores with a single ClientState ([#2422](https://github.com/GetStream/stream-video-js/issues/2422)) ([cd24816](https://github.com/GetStream/stream-video-js/commit/cd2481659483430af529042cc5603c9cd1fd0e44)), closes [#2419](https://github.com/GetStream/stream-video-js/issues/2419) [#2419](https://github.com/GetStream/stream-video-js/issues/2419)
12
+ - **rn:** add end-to-end encryption support ([#2427](https://github.com/GetStream/stream-video-js/issues/2427)) ([fd70b35](https://github.com/GetStream/stream-video-js/commit/fd70b3597beb5867b21f254c76fd6d4e6e2e731b))
10
13
 
11
14
  ### Bug Fixes
12
15
 
13
- - **client:** abandon retries when leave supersedes join ([#2441](https://github.com/GetStream/stream-video-js/issues/2441)) ([342bea6](https://github.com/GetStream/stream-video-js/commit/342bea6923aef8511228fc7f547a85e2191ca013)), closes [#2422](https://github.com/GetStream/stream-video-js/issues/2422)
14
- - **client:** never publish unencrypted media before the E2EE transform is attached ([#2460](https://github.com/GetStream/stream-video-js/issues/2460)) ([6d5d0bc](https://github.com/GetStream/stream-video-js/commit/6d5d0bc5085c20f1ab3e379a8e0e13cabe6c2ccc))
16
+ - **client:** abandon retries when leave supersedes join ([#2441](https://github.com/GetStream/stream-video-js/issues/2441)) ([1936cb5](https://github.com/GetStream/stream-video-js/commit/1936cb5dc0b9a5e81ebb2a1f92ff9ac57231c583))
17
+ - **client:** never publish unencrypted media before the E2EE transform is attached ([#2460](https://github.com/GetStream/stream-video-js/issues/2460)) ([2419b01](https://github.com/GetStream/stream-video-js/commit/2419b016341f345c8eff960f49bf7dee3b4e5a4e))
15
18
 
16
- ## [1.60.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.59.1...@stream-io/video-client-1.60.0) (2026-09-11)
19
+ ### Performance Improvements
17
20
 
18
- ### Features
19
-
20
- - **client:** identify the SDK and version on SFU RPCs ([#2425](https://github.com/GetStream/stream-video-js/issues/2425)) ([107ff39](https://github.com/GetStream/stream-video-js/commit/107ff390c706beca4417d4ef5e2c7ec9bbbc321d))
21
- - **client:** poll ring state to reconcile a dropped ring outcome ([#2393](https://github.com/GetStream/stream-video-js/issues/2393)) ([4605ac1](https://github.com/GetStream/stream-video-js/commit/4605ac1daf603382b7d3a6267e4852ac9fbfc0eb)), closes [#2422](https://github.com/GetStream/stream-video-js/issues/2422)
21
+ - **client:** one declaration site per CallState field, faster state reads ([#2419](https://github.com/GetStream/stream-video-js/issues/2419)) ([4c720ee](https://github.com/GetStream/stream-video-js/commit/4c720eea177e458c8a9e4f67906d286c4ec68c4b)), closes [#1095](https://github.com/GetStream/stream-video-js/issues/1095)
22
22
 
23
- ## [1.59.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.59.0...@stream-io/video-client-1.59.1) (2026-09-04)
23
+ ## [2.0.0-beta.0](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-client-1.59.0...@stream-io/video-client-2.0.0-beta.0) (2026-09-04)
24
24
 
25
25
  ### Bug Fixes
26
26