---
title: "Discussion on \"Lessons Learned Migrating a Large Production Codebase from Zod v3 to v4\" | Hashnode"
description: "Discussion on \"Lessons Learned Migrating a Large Production Codebase from Zod v3 to v4\". The Problem: Inconsistent Email Validation Across the Codebase\nA frontend spike revealed that email validation logic between the backend and frontend was not consistent. The backend depended on a large Mailman regex with additional length checks, whi..."
url: "https://hashnode.com/posts/lessons-learned-migrating-a-large-production-codebase-from-zod-v3-to-v4-1/6990ef6e9682377a7b88cf35"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Lessons Learned Migrating a Large Production Codebase from Zod v3 to v4](https://blog.ruthmatieu.com/lessons-learned-migrating-a-large-production-codebase-from-zod-v3-to-v4-1?utm_source=hashnode&utm_medium=feed)

The Problem: Inconsistent Email Validation Across the Codebase A frontend spike revealed that email validation logic between the backend and frontend was not consistent. The backend depended on a large Mailman regex with additional length checks, whi...

Feb 14 · 4 min read · blog.ruthmatieu.com  
Read the article

-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#react-hook-form](https://hashnode.com/tag/react-hook-form)
-   [#zod](https://hashnode.com/tag/zod)
-   [#schema](https://hashnode.com/tag/schema)
-   [#form-validation](https://hashnode.com/tag/form-validation)

## Written by

[Alanna M.](https://hashnode.com/@alannacodes)

@alannacodes · Florida

  
[View profile](https://hashnode.com/@alannacodes)

Frontend Software Engineer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
