super-productivity/packages/shared-schema/src
Johannes Millan 4f15df8f40 feat(supersync): persist full-state vector clock and add snapshot retry idempotency
Two related improvements to snapshot/full-state handling:

- Persist the incoming op's vector clock as `user_sync_state.latest_full_state_vector_clock`
  so downloads can skip the expensive aggregate scan when the snapshot clock is
  still valid; falls back to the legacy aggregate when missing or invalid.
- Treat retried snapshot uploads (same opId) as idempotent successes instead of
  409/DUPLICATE_OPERATION so a dropped response doesn't push clients into the
  download-and-merge path. Per-namespace request dedup keeps ops and snapshot
  caches isolated.
2026-05-13 17:01:39 +02:00
..
migrations fix(migrations): ensure unique IDs and prevent data loss in split operations 2026-01-20 17:07:23 +01:00
entity-types.ts feat: add sections in projects (#6066) 2026-04-29 15:02:33 +02:00
index.ts perf(super-sync): optimize status and conflict checks 2026-05-13 11:40:43 +02:00
migrate.ts feat: update migration functions to support splitting operations into multiple results 2026-01-19 13:58:27 +07:00
migration.types.ts feat: update migration functions to support splitting operations into multiple results 2026-01-19 13:58:27 +07:00
schema-version.ts fix: update CURRENT_SCHEMA_VERSION to 2 for upcoming migration 2026-01-19 13:16:48 +07:00
supersync-http-contract.ts feat(supersync): persist full-state vector clock and add snapshot retry idempotency 2026-05-13 17:01:39 +02:00
vector-clock.ts refactor(sync): move vector clocks to sync-core 2026-05-11 15:21:08 +02:00