💎 Zod is my favorite library (after React Query) Version 4.6 is out 👇 Here is what I am excited about in the update from @colinhacks.com
Post
3️⃣ z.withParser() — z.compile() builds its fast parser with new Function, which a strict Content Security Policy blocks So the fastest path in Zod was off limits in the apps that care most about security. withParser() lets you generate the parser at build time and plug it in under the same contract.
Upgrade with npm install zod@latest. Read the full blog zod.dev/blog/zod-4-6 #TypeScript #Zod #JavaScript #WebDevelopment #React
zod.devZod 4.6Zod 4.6 is now available, with .validate() for boolean validation, .properties() on z.instanceof(), and six more JSON Schema keywords.
neciudan.devSubscribe to Neciu Dan's NewsletterGet the latest articles, insights, and exclusive content delivered straight to your inbox.
0 reposts1 like
No replies yet.