super-productivity/packages/sync-core/src
Mohamed Abdeltawab c2bf7b26a0
refactor(sync-core): drop shared-schema vector-clock compat re-export anda app enum (#8441)
* feat(sync-core): drop shared-schema vector-clock compat re-export and app enum

- Remove the shared-schema → sync-core compatibility re-export of
vector-clock types/functions; retarget app files
(vector-clock.ts,operation-log.const.ts) and the server (sync.types.ts)
to import from @sp/sync-core directly
- Add @sp/sync-core to super-sync-server/package.json deps (it was
load-bearing through the re-export)
- Convert VectorClockComparison from a bare type to an as const object +
derived type in sync-core,drop the app-side enum copy and the as cast
- Update spec imports and pa ckage-boundaries.md

* docs: remove stale shared-schema vector-clock references

- Update comments in vector-clocks.md, client vector-clock.ts, and
  server sync.types.ts to reference @sp/sync-core directly
- Remove @sp/sync-core dependency from shared-schema/package.json
- Regenerate package-lock.json to reflect the removed edge

* docs(sync): fix orphaned VectorClockComparison comment

The comment block describing VectorClockComparison was left dangling
above no declaration after the app-side enum was removed, and still
claimed 'Uses enum for client-side ergonomics'. Move it above the
re-export it documents and correct the wording.

---------

Co-authored-by: Johannes Millan <johannes.millan@gmail.com>
2026-06-17 16:21:26 +02:00
..
encryption fix(sync): harden encryption batching and SuperSync abort timer 2026-05-13 17:26:55 +02:00
apply.types.ts refactor(sync-core): configure full-state op classification 2026-05-11 20:36:48 +02:00
compression.ts refactor(sync-core): extract compression helpers 2026-05-11 21:41:02 +02:00
conflict-resolution.ts refactor(sync): post-extraction review cleanup of @sp/sync-core and @sp/sync-providers (#7595) 2026-05-14 13:06:08 +02:00
download-planning.ts refactor(sync): extract snapshot hydration planning 2026-05-12 00:52:50 +02:00
encryption.ts refactor(sync): post-extraction review cleanup of @sp/sync-core and @sp/sync-providers (#7595) 2026-05-14 13:06:08 +02:00
entity-frontier.ts refactor(sync): post-extraction review cleanup of @sp/sync-core and @sp/sync-providers (#7595) 2026-05-14 13:06:08 +02:00
entity-key.util.ts refactor(sync-core): prepare core boundary for providers 2026-05-12 16:37:12 +02:00
entity-registry.types.ts refactor(sync): post-extraction review cleanup of @sp/sync-core and @sp/sync-providers (#7595) 2026-05-14 13:06:08 +02:00
error.util.ts refactor(sync): extract sync file prefix helpers 2026-05-11 21:21:25 +02:00
full-state-op-types.ts refactor: remove dead SyncStateCorruptedError, compat exports, and 0 byte sync-providers barrel #8328 (#8396) 2026-06-15 14:16:14 +02:00
index.ts refactor(sync-core): drop shared-schema vector-clock compat re-export anda app enum (#8441) 2026-06-17 16:21:26 +02:00
lww-update-action-types.ts refactor(sync-core): prepare core boundary for providers 2026-05-12 16:37:12 +02:00
operation.types.ts refactor(sync): post-extraction review cleanup of @sp/sync-core and @sp/sync-providers (#7595) 2026-05-14 13:06:08 +02:00
ports.ts refactor: remove SyncConfigPort dead port and ConflictUiPort.notify is dropped (#8408) 2026-06-16 11:07:34 +02:00
remote-apply.ts refactor(sync-core): move remote apply coordinator behind ports 2026-05-11 23:17:13 +02:00
replay-coordinator.ts refactor(sync-core): prepare core boundary for providers 2026-05-12 16:37:12 +02:00
sync-file-prefix.ts refactor(sync): extract sync file prefix helpers 2026-05-11 21:21:25 +02:00
sync-import-filter.ts refactor(sync-core): extract sync import filter decision 2026-05-11 18:47:53 +02:00
sync-logger.ts refactor(sync): add sync-core boundary contracts 2026-05-11 10:09:15 +02:00
upload-planning.ts refactor(sync-core): extract upload planning helpers 2026-05-11 23:23:05 +02:00
vector-clock.ts refactor(sync-core): drop shared-schema vector-clock compat re-export anda app enum (#8441) 2026-06-17 16:21:26 +02:00
web-crypto-error.ts refactor(sync-core): extract encryption primitives 2026-05-13 17:26:55 +02:00