SharedDataStore.compact method
SharedDataStore › compact
Publishes a complete chunked snapshot and trims only this device's acknowledged journal segments. Retired devices rejoin by merging snapshots; tombstones remain in snapshots to prevent resurrection.Signature:
compact(): Promise<void>Returns: Promise<void> — A promise that resolves when compaction finishes.