By @Nicolas, October 22, 2025

<aside> ℹ️

This document was publicly shared here: https://github.com/get-convex/convex-helpers/pull/818

</aside>

TL;DR

This is a proposal on how to update our Convex + Zod integration in helpers to support Zod 4 and Zod Codecs.

Why is it useful to have a Convex + Zod integration?

There’s three reasons why our users might want to convert Zod validators to/from Convex validators:

Goals

Support Zod 4

The first step will be to start supporting Zod 4 alongside with Zod 3, without any significant API changes. More precisely: