trails/apps/mobile
Ullrich Schäfer 0eea6f2047
Upgrade zod from 3 to 4
Mechanical bump across the three packages that pull zod directly:
- packages/api (8 schema files, ~300 lines)
- apps/journal (persona schema in demo-bot.server.ts, 5 API route
  handlers that introspect parsed.error.issues)
- apps/mobile (declared dep; no active imports yet)

No code changes required. The legacy methods we use (.url(), .uuid(),
.datetime() on strings) still parse identically in v4 via the compat
shim, and z.ZodIssueCode.custom retains its runtime value. Error-issue
introspection (parsed.error.issues.map(i => ...)) keeps the same shape
at the fields we read (path, message, code).

All 147 tests across journal + api + packages pass against zod 4.3.6.

Follow-ups out of scope for this PR:
- Modernise to top-level validator helpers (z.url(), z.iso.datetime()).
  The legacy string methods are deprecated but not removed.
- Consider migrating error introspection to the richer v4 shape (.path
  is now branded, .input is new) if we ever want structured error
  surfaces.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-19 11:35:39 +02:00
..
app Fix Android emulator dev server: use 10.0.2.2 instead of localhost 2026-04-15 01:22:50 +02:00
assets Initialize Expo mobile app with tab navigation and monorepo support 2026-04-12 23:05:57 +02:00
lib Consolidate Sentry config into shared package; fix inconsistencies 2026-04-18 00:30:09 +02:00
.gitignore Add local build scripts via Expo CNG/prebuild 2026-04-15 01:19:37 +02:00
app.config.ts Add local build scripts via Expo CNG/prebuild 2026-04-15 01:19:37 +02:00
eas.json Enable Sentry source map upload in EAS builds 2026-04-13 02:12:36 +02:00
index.ts Initialize Expo mobile app with tab navigation and monorepo support 2026-04-12 23:05:57 +02:00
metro.config.js Add Metro config for monorepo module resolution 2026-04-15 07:39:04 +02:00
package.json Upgrade zod from 3 to 4 2026-04-19 11:35:39 +02:00
tsconfig.json Implement mobile route editor with MapLibre and BRouter routing 2026-04-15 01:06:10 +02:00