Files
scrypted/server/src
merritt925 2c1ccfbca7 fix: restore null-tolerance lost in strictNullChecks migration (#2060)
Two runtime regressions from the strict-mode migration (range 125db2e..c6be722) where a real runtime guard was replaced by a non-null assertion:

- services/cluster-fork.ts: findPluginDevice(...)!._id threw and aborted fork() when the plugin device was not found. Restored ?._id so options.id stays undefined (it is only a worker-affinity hint).
- plugin/plugin-host-api.ts: onDevicesChanged() coerced a missing optional 'devices' field to [], turning a fail-safe throw into mass (cascading) removal of all of a provider's devices. Restored fail-fast on missing devices.

Both compile under strictNullChecks.

Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-01 15:09:47 -07:00
..
2025-03-18 19:08:34 -07:00
2022-06-03 13:59:27 -07:00
2022-05-05 15:43:58 -07:00
2024-09-11 12:53:01 -07:00
2024-08-04 00:24:57 -07:00
2024-08-20 20:49:23 -07:00
2021-08-24 21:22:41 -07:00