veritas-kanban/web
Brad Groux 112da181c8
fix(stability): Complete Zod 4 API migration (#162)
* fix(stability): complete Zod 4 API migration

BREAKING CHANGE: Migrated from Zod 3 to Zod 4 API patterns

Changes:
- Replace ZodError.errors with ZodError.issues (Zod 4 API)
- Update z.record(valueSchema) to z.record(z.string(), valueSchema)
- Fix env.ts schema defaults to use correct types (numbers/booleans)
- Replace required_error with message in Zod schemas

This resolves 50+ TypeScript compilation errors that were blocking
CI/CD and potentially causing runtime issues.

Fixes: type checking errors in server and web packages
Risk: Low - straightforward API migration with full test coverage

* fix(zod4): use string defaults for transform/pipe schemas

Zod v4 changed .default() to require the input type (string) rather
than the output type. Fixed PORT, VERITAS_AUTH_ENABLED,
VERITAS_AUTH_LOCALHOST_BYPASS, CSP_REPORT_ONLY, and RATE_LIMIT_MAX
to pass string defaults to their respective portSchema / booleanString
/ positiveIntString coercing schemas.

---------

Co-authored-by: BradGroux <super.seth.vos@gmail.com>
2026-03-01 13:52:49 -06:00
..
src fix(stability): Complete Zod 4 API migration (#162) 2026-03-01 13:52:49 -06:00
.env.example fix(security): remove .env from git, add .env.example 2026-01-28 12:05:17 -06:00
components.json feat: complete US-104 to US-108 (Kanban UI) 2026-01-26 02:54:25 -06:00
favicon.svg feat: add purple scales of justice favicon 2026-02-05 20:56:24 -06:00
index.html feat: add purple scales of justice favicon 2026-02-05 20:56:24 -06:00
package.json chore(release): v3.3.2 2026-03-01 13:08:51 -06:00
tailwind.config.js feat: complete US-104 to US-108 (Kanban UI) 2026-01-26 02:54:25 -06:00
tsconfig.json feat: initial project scaffolding 2026-01-26 02:34:54 -06:00
tsconfig.node.json feat: initial project scaffolding 2026-01-26 02:34:54 -06:00
vite.config.ts chore: bump tailwindcss from 3.4.19 to 4.2.1 (#149) 2026-02-28 09:20:52 -06:00
vitest.config.ts feat(web): add React error boundaries with graceful fallback UI 2026-01-29 04:39:30 -06:00