Skip to content

dsh-all-usage v1.0.8

Choose a tag to compare

@ParticleLight ParticleLight released this 24 Aug 00:40
· 31 commits to main since this release

dsh-all-usage v1.0.8

Added

  • Restart read-avoidance: on startup the plugin now uses the persisted log revision (via sessionPersistence.listSnapshots() — a header-line + stat read, no full-log parse) as a per-session change signal. Sessions whose log is unchanged since the last ledger write are applied straight from the durable ledger without reading their full event log; only changed or new sessions are read (incrementally).
  • The durable ledger now stores each session's log revision (lastRevision); existing rows without it are re-read once and backfilled, so the upgrade is backward compatible.

Fixed

  • Eliminated the per-session full-event read at restart for unchanged persisted sessions — DSH restarts no longer re-read every session's history from scratch.

Verification

  • npm test 31/31 (incl. restart-skip with zero reads, revision-change re-read, and old-row backfill tests).
  • node --check Host + Client, npm pack --dry-run, git diff --check all pass; hot-reload and a real DSH restart both verified.