fix(sync): handle data validation errors and improve client ID management

- Separate JsonParseError and SyncDataCorruptedError handlers in sync wrapper
- Handle corrupted remote data gracefully instead of throwing
- Add getOrGenerateClientId() as unified entry point, eliminating dual injection
  of ClientIdService + CLIENT_ID_PROVIDER in snapshot-upload, file-based-encryption,
  and sync-hydration services
- Use crypto.getRandomValues() instead of Math.random() for client ID generation
- Warn user when stored client ID is invalid and must be regenerated
- Fix flaky e2e supersync tests (premature waitForURL match on daily-summary URL)
This commit is contained in:
Johannes Millan 2026-04-15 22:29:32 +02:00
parent 81788143b6
commit 0e9218bd68
87 changed files with 1875 additions and 3372 deletions

View file

@ -230,7 +230,7 @@
"cross-env": "^7.0.3",
"detect-it": "^4.0.1",
"dotenv": "^17.3.1",
"electron": "41.2.0",
"electron": "37.10.3",
"electron-builder": "^26.7.0",
"eslint": "^9.39.2",
"eslint-config-prettier": "^10.1.8",
@ -282,7 +282,7 @@
},
"overrides": {
"app-builder-lib": {
"minimatch": "10.2.5"
"minimatch": "10.1.1"
}
},
"optionalDependencies": {