timdeschryver / zod-fixture

Creating fixtures based on zod schemas
https://zod-fixture.timdeschryver.dev/
MIT License
121 stars 10 forks source link

fix: provide a fix for mangled names #97

Open timdeschryver opened 4 months ago

timdeschryver commented 4 months ago

WIP.

This is a breaking change, TODO: document the change.

Closes #95

vercel[bot] commented 4 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
zod-fixture ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 13, 2024 5:18pm
dxlbnl commented 4 months ago

This is necessary I think to make zod-compare work properly too. I'll try to run this version in my codebase when I have spare cycles. But I don't see any issues.

THEtheChad commented 4 months ago

I'll take a glance at this as well.

The reason we had the hackery was to facilitate not bundling the entirety of zod into our package, especially since it's a peer dependency (and will probably already be in the project).

Granted, in order to do this, we had to provide parity with some of zod's internals without implementing the entirety of it. Obviously something was missed (or changed).