Colin McDonnell

Results 423 comments of Colin McDonnell

Here's a dedicated guide for library authors that answers some common questions: https://v4.zod.dev/library-authors 1. Best practices around peer dependencies 2. How to support Zod v3 and Zod v4 simultaneously 3....

Fixed, apologies for the inconvenience. Upgrade to latest (`zod@^3.25.17`) for that fix. It's been whack-a-mole trying to fix some very obscure module resolution bugs. I'm working on better tests for...

I've looked into this a bit. My findings: 1) The error in your codesanbox replicates with 5.0.1 2) The code you pasted into your issue above doesn't error with either...

Here's a dedicated guide for library authors that answers some common questions: https://v4.zod.dev/library-authors 1. Best practices around peer dependencies 2. How to support Zod v3 and Zod v4 simultaneously 3....

Oh wow. Embarrassingly I wasn't aware of `Symbol.hasInstance` and it is such a game changer. I've seen multiple issues relating to dual package issues and for Zod 4 I was...

> I'm posting this issue to all the libraries currently listed in the Ecosystem section of Zod's README. Apologies for the spam! Zod 4 is a big release and it's...

Here's a dedicated guide for library authors that answers some common questions: https://v4.zod.dev/library-authors 1. Best practices around peer dependencies 2. How to support Zod v3 and Zod v4 simultaneously 3....

Just merged https://github.com/colinhacks/zod/pull/4367 which fixes the breakage from Zod 3 and adds some other goodies: optional `protocol` and `hostname` regex params. Merged in the latest betas. Note that you'll need...