Skip to content

Finish zod 4 and dotenv 18 migrations - #419

Merged
aamoghS merged 1 commit into
devfrom
rebase/deps-major
Sep 25, 2026
Merged

aamoghS merged 1 commit into
devfrom
rebase/deps-major

Conversation

@github-actions

@github-actions github-actions Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to the dependency upgrades (#411/#414).

What

  • zod 4: ZodError#flatten() is deprecated; the tRPC errorFormatter now uses z.flattenError(). Same { formErrors, fieldErrors } shape, so clients reading data.zodError are unaffected.
  • dotenv 18: since 17, every config() call logs ◇ injected env (N) from ...; 16 was silent. drizzle.config.ts (runs on every deploy via drizzle-kit push) and the db scripts pass quiet: true to keep output unchanged.

Verification

Merge result (dev + this branch), clean frozen install: pnpm typecheck 9/9, pnpm lint 8/8, pnpm test 828 passing.

- tRPC errorFormatter: ZodError#flatten() is deprecated in zod 4; use
  z.flattenError(). Same { formErrors, fieldErrors } shape for clients.
- dotenv 17+ logs "injected env (N) from ..." on every config() call;
  dotenv 16 was silent. Pass quiet: true in drizzle.config.ts and the db
  scripts to keep deploy and script output unchanged.
@github-actions
github-actions Bot requested a review from aamoghS as a code owner September 25, 2026 01:18
@aamoghS aamoghS changed the title Feature: rebase/deps-major to dev Finish zod 4 and dotenv 18 migrations Sep 25, 2026
@aamoghS
aamoghS merged commit 44fc988 into dev Sep 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant