by jmull · 1y ago · 0 comments
v3 didn't last four years. Can we expect much different from v4?
If you're migrating your zod 3 code, I'd migrate to something more stable and long-lived than v4 is likely to be -- unless you want to be going through it all again in a few years (and yet again a few years after that, etc).
I don't blame the maintainers (I assume they don't have a fat support and maintenance contract)
But developers need to go in with their eyes open when it comes to adopting these throw-away libraries and frameworks.
> I don't blame the maintainers (I assume they don't have a fat support and maintenance contract)
What's the implication here?
In fact, zod is one of the leading forces behind this: https://github.com/standard-schema/standard-schema
A major version increase in four years doesn’t exactly scream “throw-away” to me.
I don't know of any software that doesn't have these problems. Either you snapshot a thing and never do updates or you continually update it and have things change.
The update causes almost 0 breaking changes. I don't think this classifies as a "throwaway" library.
For contrast: My entire company is less than 4 years old and any code from 6 months ago feels old because things (in a business requirements sense) change so fast. Zod lasting 3 years is fine.
Although I do wish v4 came a little sooner because we just started using Zod a few months ago.
Of course the bigger question here for most is how large are the breaking changes, not if there is a decade between them.
4 years in JavaScript land is actually pretty long. Zod has a pretty good maintenance record. I don't see how a statement like yours can be made without snark. Calling it a "throw-away" library is pretty brash.
This looks like a good update that sticks to the formula.
For non-JS developers to get a sense of how long this is, companies have probably migrated from React to Vue to Svelte to Solid and then back to React in this time.