super-productivity/packages/shared-schema
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
..
src refactor(sync): improve vector clock implementation quality 2026-03-17 13:59:40 +01:00
tests test(sync): add vector clock pruning edge case tests (#6506) 2026-02-13 12:42:36 +01:00
.gitignore feat(sync): add shared schema versioning package for frontend/backend 2025-12-12 20:47:44 +01:00
package.json fix(shared-schema): use tsup for dual ESM/CJS build 2026-01-11 14:05:23 +01:00
tsconfig.json fix(shared-schema): fix module resolution for bundler compatibility 2026-01-11 13:20:16 +01:00
tsup.config.ts fix(shared-schema): use tsup for dual ESM/CJS build 2026-01-11 14:05:23 +01:00
vitest.config.ts feat(sync): add shared schema versioning package for frontend/backend 2025-12-12 20:47:44 +01:00