@stream-io/video-react-sdk 1.32.1 → 1.32.3

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 CHANGED
@@ -2,6 +2,24 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [1.32.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.32.2...@stream-io/video-react-sdk-1.32.3) (2026-02-16)
6
+
7
+ ### Dependency Updates
8
+
9
+ - `@stream-io/video-client` updated to version `1.42.3`
10
+ - `@stream-io/video-react-bindings` updated to version `1.13.7`
11
+
12
+ ### Bug Fixes
13
+
14
+ - guard from parallel accept/reject invocations ([#2127](https://github.com/GetStream/stream-video-js/issues/2127)) ([621218f](https://github.com/GetStream/stream-video-js/commit/621218f4ab6b4623370fd66f1b02b8cb7cb1baad))
15
+
16
+ ## [1.32.2](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.32.1...@stream-io/video-react-sdk-1.32.2) (2026-02-13)
17
+
18
+ ### Dependency Updates
19
+
20
+ - `@stream-io/video-client` updated to version `1.42.2`
21
+ - `@stream-io/video-react-bindings` updated to version `1.13.6`
22
+
5
23
  ## [1.32.1](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-react-sdk-1.32.0...@stream-io/video-react-sdk-1.32.1) (2026-02-10)
6
24
 
7
25
  ### Dependency Updates
package/dist/index.cjs.js CHANGED
@@ -1083,8 +1083,14 @@ const AcceptCallButton = ({ disabled, onAccept, onClick, }) => {
1083
1083
  onClick(e);
1084
1084
  }
1085
1085
  else if (call) {
1086
- await call.join();
1087
- onAccept?.();
1086
+ try {
1087
+ await call.join();
1088
+ onAccept?.();
1089
+ }
1090
+ catch (err) {
1091
+ console.error(`Failed to accept call`, err);
1092
+ onAccept?.(err);
1093
+ }
1088
1094
  }
1089
1095
  }, [onClick, onAccept, call]);
1090
1096
  return (jsxRuntime.jsx(IconButton, { disabled: disabled, icon: "call-accept", variant: "success", "data-testid": "accept-call-button", onClick: handleClick }));
@@ -1526,7 +1532,7 @@ const SpeakerTest = (props) => {
1526
1532
  const audioElementRef = react.useRef(null);
1527
1533
  const [isPlaying, setIsPlaying] = react.useState(false);
1528
1534
  const { t } = videoReactBindings.useI18n();
1529
- const { audioUrl = `https://unpkg.com/${"@stream-io/video-react-sdk"}@${"1.32.1"}/assets/piano.mp3`, } = props;
1535
+ const { audioUrl = `https://unpkg.com/${"@stream-io/video-react-sdk"}@${"1.32.3"}/assets/piano.mp3`, } = props;
1530
1536
  // Update audio output device when selection changes
1531
1537
  react.useEffect(() => {
1532
1538
  const audio = audioElementRef.current;
@@ -1713,8 +1719,14 @@ const CancelCallConfirmButton = ({ onClick, onLeave, }) => {
1713
1719
  onClick(e);
1714
1720
  }
1715
1721
  else if (call) {
1716
- await call.leave();
1717
- onLeave?.();
1722
+ try {
1723
+ await call.leave();
1724
+ onLeave?.();
1725
+ }
1726
+ catch (err) {
1727
+ console.error(`Failed to leave call`, err);
1728
+ onLeave?.(err);
1729
+ }
1718
1730
  }
1719
1731
  }, [onClick, onLeave, call]);
1720
1732
  const handleEndCall = react.useCallback(async (e) => {
@@ -1722,8 +1734,14 @@ const CancelCallConfirmButton = ({ onClick, onLeave, }) => {
1722
1734
  onClick(e);
1723
1735
  }
1724
1736
  else if (call) {
1725
- await call.endCall();
1726
- onLeave?.();
1737
+ try {
1738
+ await call.endCall();
1739
+ onLeave?.();
1740
+ }
1741
+ catch (err) {
1742
+ console.error(`Failed to end call`, err);
1743
+ onLeave?.(err);
1744
+ }
1727
1745
  }
1728
1746
  }, [onClick, onLeave, call]);
1729
1747
  return (jsxRuntime.jsx(MenuToggle, { placement: "top-start", ToggleButton: CancelCallToggleMenuButton, children: jsxRuntime.jsx(EndCallMenu, { onEnd: handleEndCall, onLeave: handleLeave }) }));
@@ -1736,8 +1754,14 @@ const CancelCallButton = ({ disabled, caption, onClick, onLeave, }) => {
1736
1754
  onClick(e);
1737
1755
  }
1738
1756
  else if (call) {
1739
- await call.leave();
1740
- onLeave?.();
1757
+ try {
1758
+ await call.leave();
1759
+ onLeave?.();
1760
+ }
1761
+ catch (err) {
1762
+ console.error(`Failed to leave call`, err);
1763
+ onLeave?.(err);
1764
+ }
1741
1765
  }
1742
1766
  }, [onClick, onLeave, call]);
1743
1767
  return (jsxRuntime.jsx(IconButton, { disabled: disabled, icon: "call-end", variant: "danger", title: caption ?? t('Leave call'), "data-testid": "cancel-call-button", onClick: handleClick }));
@@ -2240,7 +2264,9 @@ const RingingCallControls = () => {
2240
2264
  const buttonsDisabled = callCallingState !== videoClient.CallingState.RINGING;
2241
2265
  return (jsxRuntime.jsx("div", { className: "str-video__pending-call-controls", children: call.isCreatedByMe ? (jsxRuntime.jsx(CancelCallButton, { disabled: buttonsDisabled })) : (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(AcceptCallButton, { disabled: buttonsDisabled }), jsxRuntime.jsx(CancelCallButton, { onClick: () => {
2242
2266
  const reason = call.isCreatedByMe ? 'cancel' : 'decline';
2243
- call.leave({ reject: true, reason });
2267
+ call.leave({ reject: true, reason }).catch((err) => {
2268
+ console.error(`Failed to reject`, err);
2269
+ });
2244
2270
  }, disabled: buttonsDisabled })] })) }));
2245
2271
  };
2246
2272
 
@@ -3246,7 +3272,7 @@ const checkCanJoinEarly = (startsAt, joinAheadTimeSeconds) => {
3246
3272
  return Date.now() >= +startsAt - (joinAheadTimeSeconds ?? 0) * 1000;
3247
3273
  };
3248
3274
 
3249
- const [major, minor, patch] = ("1.32.1").split('.');
3275
+ const [major, minor, patch] = ("1.32.3").split('.');
3250
3276
  videoClient.setSdkInfo({
3251
3277
  type: videoClient.SfuModels.SdkType.REACT,
3252
3278
  major,