@poolse/react 2.14.0 → 2.14.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,22 @@ All notable changes to `@poolse/react` are documented here. Format follows
4
4
  [Keep a Changelog](https://keepachangelog.com/en/1.1.0/); versions follow
5
5
  [semver](https://semver.org).
6
6
 
7
+ ## [2.14.1] — 2026-08-23
8
+
9
+ ### Added
10
+
11
+ - **`useCallRoom().refreshDevices`** — re-read the device list on
12
+ demand. Devices are already re-read on connect and on hardware
13
+ changes; this covers the case neither does, which is that a browser
14
+ only reveals device ids and labels once the page holds a matching
15
+ permission, and that moment is not subscribable. Call it when opening
16
+ a picker.
17
+
18
+ ### Fixed
19
+
20
+ - Device lists inherited the `MediaDeviceInfo` spread bug from
21
+ `@poolse/sdk`. See its 2.14.1 entry.
22
+
7
23
  ## [2.14.0] — 2026-08-23
8
24
 
9
25
  ### Added
package/dist/index.cjs CHANGED
@@ -1192,6 +1192,9 @@ function useCallRoom(conversationId, opts) {
1192
1192
  await room.switchCamera();
1193
1193
  setFacing(room.getFacingMode());
1194
1194
  }, [room]);
1195
+ const refresh = react.useCallback(() => {
1196
+ if (room) refreshDevices(room);
1197
+ }, [room, refreshDevices]);
1195
1198
  const selectDevice = react.useCallback(
1196
1199
  async (kind, deviceId) => {
1197
1200
  if (!room) return;
@@ -1212,6 +1215,7 @@ function useCallRoom(conversationId, opts) {
1212
1215
  alone,
1213
1216
  devices,
1214
1217
  activeDevices,
1218
+ refreshDevices: refresh,
1215
1219
  error,
1216
1220
  sfuAvailable,
1217
1221
  join,