[PR #4890] [CLOSED] chore: backport for zod 3 #22541

Closed
opened 2026-04-15 21:07:13 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4890
Author: @jippi
Created: 9/24/2025
Status: Closed

Base: canaryHead: patch-4


📝 Commits (4)

  • 4d4b965 chore: more zod 3 fixes
  • fa7b862 Merge branch 'canary' into patch-4
  • 1a63bc2 Merge branch 'canary' into patch-4
  • cabaa0b Merge branch 'canary' into patch-4

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/api/routes/reset-password.ts (+1 -0)

📄 Description

Maybe the project should add some testing for successfully compiling under Zod3?


Summary by cubic

Fix Zod v3 compatibility in the reset-password endpoint by defining the email field as z.string().email(). This prevents compile-time errors and ensures correct validation.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/4890 **Author:** [@jippi](https://github.com/jippi) **Created:** 9/24/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `patch-4` --- ### 📝 Commits (4) - [`4d4b965`](https://github.com/better-auth/better-auth/commit/4d4b96508d90f37936ed19ca4e5c718c7499fd47) chore: more zod 3 fixes - [`fa7b862`](https://github.com/better-auth/better-auth/commit/fa7b8627eefc15c55f9678bb849393829fca5d02) Merge branch 'canary' into patch-4 - [`1a63bc2`](https://github.com/better-auth/better-auth/commit/1a63bc208c4bd5af8f503644ab232ca43e0f15b6) Merge branch 'canary' into patch-4 - [`cabaa0b`](https://github.com/better-auth/better-auth/commit/cabaa0b607475df3a9ff8c35bb4d58b0b4b4ab4f) Merge branch 'canary' into patch-4 ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/reset-password.ts` (+1 -0) </details> ### 📄 Description Maybe the project should add some testing for successfully compiling under Zod3? <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fix Zod v3 compatibility in the reset-password endpoint by defining the email field as z.string().email(). This prevents compile-time errors and ensures correct validation. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 21:07:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#22541