super-productivity/packages/shared-schema/src
Johannes Millan 861425fd28 refactor(sync): improve vector clock implementation quality
- Replace O(N) Prisma findMany with PostgreSQL SQL aggregate
  (jsonb_each_text + GROUP BY + MAX) for snapshot vector clock
  computation, avoiding loading all ops' clocks into Node.js memory
- Add defensive regex filter (^[0-9]+$) for non-numeric JSONB values
- Fix || to ?? for nullish coalescing in vector clock value lookups
- Remove unreachable CONCURRENT check in compareVectorClocks
- Remove unused VectorClockMetrics interface and measureVectorClock
- Add 7 new unit tests for SQL aggregate path verification
- Add 10 integration tests running actual SQL against PostgreSQL
2026-03-17 13:59:40 +01: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 fix(sync): multi-tab vector clock staleness + shared code extraction 2026-01-03 18:05:11 +01:00
index.ts fix(sync): prevent infinite LWW auto-resolve loop for TAG:TODAY 2026-01-30 18:24:29 +01: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
vector-clock.ts refactor(sync): improve vector clock implementation quality 2026-03-17 13:59:40 +01:00