colinhacks's profile picture. the Zod guy 🧙‍♀️ created zshy, co-created Standard Schema, tRPC  🦆 friendly neighborhood typescript nerd 💻 prev @ bun, edgedb 🏛️ mit

colinhacks/zod

@colinhacks

the Zod guy 🧙‍♀️ created zshy, co-created Standard Schema, tRPC 🦆 friendly neighborhood typescript nerd 💻 prev @ bun, edgedb 🏛️ mit

置頂

Introducing Zod 4.1 and its flagship feature: CODECS z.codec() is a new API for defining *bi-directional transformations* in Zod

colinhacks's tweet image. Introducing Zod 4.1 and its flagship feature: CODECS

z.codec() is a new API for defining *bi-directional transformations* in Zod

pro tip: always include `workflow_dispatch` in your workflow triggers this gives you a button inthe GitHub UI to manually trigger fresh runs (when your CI inevitably fails)

colinhacks's tweet image. pro tip: always include `workflow_dispatch` in your workflow triggers 

this gives you a button inthe GitHub UI to manually trigger fresh runs (when your CI inevitably fails)
colinhacks's tweet image. pro tip: always include `workflow_dispatch` in your workflow triggers 

this gives you a button inthe GitHub UI to manually trigger fresh runs (when your CI inevitably fails)

coming in the next version of the MCP SDK Zod 4 support

colinhacks's tweet image. coming in the next version of the MCP SDK 

Zod 4 support

ironically, my shark jokes were too dry (for github)

colinhacks's tweet image. ironically, my shark jokes were too dry (for github)

colinhacks/zod 已轉發

coming in ArkType 2.2... e(x)ec mode for regex literals🧑‍🍳

arktypeio's tweet image. coming in ArkType 2.2...

e(x)ec mode for regex literals🧑‍🍳

pretty sure github saw me try to merge this and self-destructed

i see a lot of bad PRs written by AI it's almost refreshing to see a bad PR written by a humans

colinhacks's tweet image. i see a lot of bad PRs written by AI

it's almost refreshing to see a bad PR written by a humans


the final version of zod-to-json-schema was just released, with support for Zod 3.25 h/t @StefanTerdell for his amazing work 🫡

colinhacks's tweet image. the final version of zod-to-json-schema was just released, with support for Zod 3.25 

h/t @StefanTerdell for his amazing work 🫡

i see a lot of bad PRs written by AI it's almost refreshing to see a bad PR written by a humans

colinhacks's tweet image. i see a lot of bad PRs written by AI

it's almost refreshing to see a bad PR written by a humans

is it me or has no one cracked a good end-to-end DX for nested form data? - DRY - clean initialization + resync w/ DB - a way to extract a "diff" (dirty fields only) - field arrays ("+ Add another") w/o re-renders - a way to upsert the (potentially nested) data into DB (hard)


one month later, minimal motion by the anthropic team. there's a standing PR (that I've personally reviewed) by a motivated contributor they are massively underestimating the amount of developer pain this is causing

TIL the official MCP TypeScript SDK still doesn't support Zod 4. it's the most upvoted issue by a wide margin, and multiple high-quality PRs have already been submitted addressing this. if you work on the MCP SDK at @AnthropicAI DM me and let's get this figured out 🤙

colinhacks's tweet image. TIL the official MCP TypeScript SDK still doesn't support Zod 4. it's the most upvoted issue by a wide margin, and multiple high-quality PRs have already been submitted addressing this. 

if you work on the MCP SDK at @AnthropicAI DM me and let's get this figured out 🤙


for the *really* lazy 👇 credit/blame to @hellotwlite

colinhacks's tweet image. for the *really* lazy 👇

credit/blame to @hellotwlite

how to impress your friends with a perfect "100% TypeScript" score on github

colinhacks's tweet image. how to impress your friends with a perfect "100% TypeScript" score on github


how to impress your friends with a perfect "100% TypeScript" score on github

colinhacks's tweet image. how to impress your friends with a perfect "100% TypeScript" score on github

this guy must be stopped

📢Introducing ArkRegex📢 a drop in replacement for new RegExp() with types ⬇️



Loading...

Something went wrong.


Something went wrong.