rspace-online/server/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
..
migration feat: add ViewHistory for in-app back navigation, rename rWork to rTasks 2026-03-11 14:04:13 -07:00
backup-routes.ts feat(ipfs): add IPFS integration for backups and generated files 2026-04-02 14:24:39 -07:00
backup-store.ts feat(ipfs): add IPFS integration for backups and generated files 2026-04-02 14:24:39 -07:00
compute-server.ts Add 7-layer local-first data infrastructure 2026-02-23 01:12:06 +00:00
doc-persistence.ts fix(persistence): flush docs on shutdown, fix eviction race, mobile flush 2026-04-16 08:45:01 -04:00
encryption-utils.ts feat: layered local-first data architecture — encrypted backup, relay persistence, at-rest encryption 2026-03-02 17:09:07 -08:00
sync-server.ts fix(persistence): flush docs on shutdown, fix eviction race, mobile flush 2026-04-16 08:45:01 -04:00