Zod v4 support
I tried upgrading to the latest version of Zod v4 (4.0.8) and was thrown errors around the schema property not matching types.
Is the latest version of Zod supported?
Hey @searledan this will be available on chanfana 3.0.0 soon
Will the zod v4 support still rely on zod-to-openapi or would this be a good opportunity to assess a switch to https://github.com/samchungy/zod-openapi as well? It's making much better use of the new zod v4 features like native registries and json schema support.
Hey @searledan this will be available on chanfana 3.0.0 soon
Hi, wonder know when will chanfana 3.0.0 come out.
Hey @searledan this will be available on chanfana 3.0.0 soon
Hi, wonder know when will chanfana 3.0.0 come out.
soon™
This is now available for testing thanks to @ndisidore
right now is up for testing using this command:
npm i https://pkg.pr.new/cloudflare/chanfana@next
Here are some notes on what changed: https://github.com/cloudflare/chanfana/blob/next/docs/migration-zod-v4.md
An official version for this will be released once we find it stable Please report any issues you might find Thanks