super-productivity/packages/super-sync-server/src
Johannes Millan cbeecfd39a fix(sync): multi-tab vector clock staleness + shared code extraction
Bug fix:
- Fix vector clock cache staleness in multi-tab scenarios by clearing
  cache when acquiring operation write lock. Each browser tab has its
  own in-memory cache, so Tab B's cache could be stale if Tab A wrote
  while Tab B was waiting for the lock.

Shared code extraction (client/server consistency):
- Extract vector clock comparison to @sp/shared-schema
  - Client wraps shared impl with null handling
  - Server imports directly from shared
- Extract entity types to @sp/shared-schema
  - Single source of truth for ENTITY_TYPES array
  - Removes duplicated "must match" comments

Files:
- packages/shared-schema/src/vector-clock.ts (new)
- packages/shared-schema/src/entity-types.ts (new)
- src/app/op-log/store/operation-log-store.service.ts (cache clear)
- src/app/op-log/capture/operation-log.effects.ts (call cache clear)
2026-01-03 18:05:11 +01:00
..
sync fix(sync): multi-tab vector clock staleness + shared code extraction 2026-01-03 18:05:11 +01:00
api.ts feat(sync-server): replace password auth with passkey + magic link 2026-01-02 16:52:48 +01:00
auth.ts feat(sync-server): replace password auth with passkey + magic link 2026-01-02 16:52:48 +01:00
config.ts fix(security): address critical and high severity vulnerabilities 2025-12-31 12:15:56 +01:00
db.ts refactor(sync): remove tombstone system 2025-12-28 12:08:28 +01:00
email.ts feat(sync-server): replace password auth with passkey + magic link 2026-01-02 16:52:48 +01:00
index.ts feat(syncServer): implement JWT authentication and user registration/login functionality 2025-12-12 20:46:04 +01:00
logger.ts feat(super-sync-server): Add basic monitoring tool 2025-12-12 20:48:40 +01:00
middleware.ts fix(sync-server): resolve TypeScript errors in route handler types 2025-12-12 20:47:40 +01:00
pages.ts fix(sync-server): use v13 API format in passkey recovery page 2026-01-03 12:14:47 +01:00
passkey.ts fix(sync-server): fix double encoding of passkey credential ID 2026-01-03 13:32:37 +01:00
server.ts fix(security): address critical and high severity vulnerabilities 2025-12-31 12:15:56 +01:00
test-routes.ts feat(sync): handle auth errors for account deletion scenarios 2026-01-02 15:48:17 +01:00