@cloudflare/realtimekit-react 0.5.0-staging.119 → 0.5.0-staging.120

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/dist/index.es.js CHANGED
@@ -21819,11 +21819,7 @@ const jc = (im = class {
21819
21819
  var o, c, d;
21820
21820
  if (((d = (c = (o = this.context.getValue("connectionHandler")) == null ? void 0 : o.mediaState) == null ? void 0 : c.recv) == null ? void 0 : d.state) !== "connected")
21821
21821
  return;
21822
- if (a(this, _i)) {
21823
- v(this, jn, true);
21824
- return;
21825
- }
21826
- v(this, _i, true), v(this, jn, false);
21822
+ v(this, jn, false);
21827
21823
  const [s, t] = jc.mapDiff(
21828
21824
  a(this, Hn),
21829
21825
  this.participants.videoSubscribed
@@ -21847,7 +21843,18 @@ const jc = (im = class {
21847
21843
  ...this.mapPeerIdsToProducers(t, ["video"]),
21848
21844
  ...this.mapPeerIdsToProducers(r, ["audio"])
21849
21845
  ];
21850
- i.length === 0 && n.length === 0 || (yield this.updateConsumers(i, n), v(this, _i, false), a(this, jn) && this.syncConsumers());
21846
+ if (!(i.length === 0 && n.length === 0)) {
21847
+ if (a(this, _i)) {
21848
+ v(this, jn, true);
21849
+ return;
21850
+ }
21851
+ try {
21852
+ v(this, _i, true), yield this.updateConsumers(i, n);
21853
+ } finally {
21854
+ v(this, _i, false);
21855
+ }
21856
+ a(this, jn) && this.syncConsumers();
21857
+ }
21851
21858
  });
21852
21859
  }
21853
21860
  static mapDiff(s, t) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloudflare/realtimekit-react",
3
- "version": "0.5.0-staging.119",
3
+ "version": "0.5.0-staging.120",
4
4
  "description": "A real-time video and audio SDK for building custom, collaborative communication experiences.",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "module": "./dist/index.es.js",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "private": false,
19
19
  "dependencies": {
20
- "@cloudflare/realtimekit": "0.5.0-staging.119"
20
+ "@cloudflare/realtimekit": "0.5.0-staging.120"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "react": ">=16.8.6"