rspace-online/shared/local-first
Jeff Emmett fec934b8a3 fix(persistence): flush docs on shutdown, fix eviction race, mobile flush
- Add saveDocImmediate() for synchronous awaitable saves (no debounce)
- Add SyncServer.flushAll() to iterate all in-memory docs
- Fix eviction race: onDocEvict now uses saveDocImmediate instead of
  debounced saveDoc (which could fire after doc deleted from memory)
- Add SIGTERM/SIGINT handlers with 10s timeout safety net
- Add visibilitychange flush on client (reliable on mobile/bfcache)
- Flush pending IDB saves in DocSyncManager.disconnect()

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-16 08:45:01 -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(persistence): flush docs on shutdown, fix eviction race, mobile flush 2026-04-16 08:45:01 -04:00