rspace-online/shared/local-first
Jeff Emmett 53c757e68e fix: comprehensive memory leak and performance fixes across 44 files
Browser-side:
- Fix switchSpace() to LRU-evict idle space WebSocket connections (cap: 3)
- Add runtime.unsubscribe() to disconnectedCallback in 24 components
- Fix DocSyncManager.unsubscribe() to clean up syncStates, timers, listeners
- Fix 14 components leaking RAF loops, ResizeObservers, MutationObservers,
  document/window listeners, setIntervals, MapLibre WebGL contexts, and
  AbortControllers on disconnect
- Deduplicate Automerge WASM: module builds now use global shim from
  shell-offline instead of bundling ~2.5MB each (8 modules affected)

Server-side:
- Add LRU eviction to SyncServer.#docs (cap: 500, evicts idle docs with
  no subscribers, persists to disk before eviction)
- registerWatcher() now returns unsubscribe function

Data:
- Cap unbounded CRDT arrays: rexchange chatMessages (200), rcart events (200)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-10 22:26:24 -04:00
..
backup.ts feat: layered local-first data architecture — encrypted backup, relay persistence, at-rest encryption 2026-03-02 17:09:07 -08:00
change-message.ts feat: history panel with author attribution + settings gear relocation 2026-03-09 19:24:27 -07:00
compute.ts Add 7-layer local-first data infrastructure 2026-02-23 01:12:06 +00:00
crypto.ts perf: parallelize local-first init — batch IDB loads, cache crypto keys, preload sync states 2026-03-03 14:18:55 -08:00
document.ts feat: history panel with author attribution + settings gear relocation 2026-03-09 19:24:27 -07:00
encryptid-bridge.ts feat: layered local-first data architecture — encrypted backup, relay persistence, at-rest encryption 2026-03-02 17:09:07 -08:00
index.ts feat: wire offline-first Automerge sync to all 13 rSpace modules 2026-03-04 19:07:59 -08:00
memory-card.ts Add 7-layer local-first data infrastructure 2026-02-23 01:12:06 +00:00
query.ts Add 7-layer local-first data infrastructure 2026-02-23 01:12:06 +00:00
runtime.ts fix: comprehensive memory leak and performance fixes across 44 files 2026-04-10 22:26:24 -04:00
storage-quota.ts feat: wire offline-first Automerge sync to all 13 rSpace modules 2026-03-04 19:07:59 -08:00
storage.ts fix: IDB transaction error and sidebar push desync 2026-03-06 20:02:18 -08:00
sync.ts fix: comprehensive memory leak and performance fixes across 44 files 2026-04-10 22:26:24 -04:00