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

colinhacks/zod

@colinhacks

the Zod guy 🧙‍♀️ created zshy, co-created Standard Schema, tRPC 🦆 friendly neighborhood typescript nerd 👼🏻 investor 💻 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

or my personal favorite... symlinking everything to README.md

colinhacks's tweet image. or my personal favorite...

symlinking everything to README.md

Hear me out: We should standardize rules files as... CONTRIBUTING.md Not CLAUDE.md, .cursorrules, copilot-instructions.md and all that BS



colinhacks/zod 已轉發

In the latest beta of @vitest_dev v4, you can now use any standard schema library for your assertions I worked on a PR to integrate schema matching directly using `expect.schemaMatching(schema)` It's based on the standard schema spec, that means it works with Zod, Valibot,…

zirkelc_'s tweet image. In the latest beta of @vitest_dev v4, you can now use any standard schema library for your assertions 

I worked on a PR to integrate schema matching directly using `expect.schemaMatching(schema)` 

It's based on the standard schema spec, that means it works with Zod, Valibot,…

What if we can turn `expect(url).toMatch(/^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/)` into `expect(url).toMatchSchema(z.url())`? I created a custom matcher for @vitest_dev to validate data against any schema

zirkelc_'s tweet image. What if we can turn 

`expect(url).toMatch(/^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$/)` 

into

`expect(url).toMatchSchema(z.url())`?

I created a custom matcher for @vitest_dev to validate data against any schema


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 🤙

who's gonna fork biome and call it Trome

One annoying thing about upgrading to React 19.2 is Biome doesn't have support for the new rule of hooks yet, so I was thinking of switching to Oxlint (which does) but they don't have a formatter yet - still yet to experience the Utopia of "rewrite it in rust" 😭



forty thousand! 🫶


every so often I'm reminded that the whole typescript ecosystem is just gibberish I've memorized

colinhacks's tweet image. every so often I'm reminded that the whole typescript ecosystem is just gibberish I've memorized

hell is other language ecosystems


colinhacks/zod 已轉發

Hey @ryanflorence and @mjackson, you guys have a great opportunity with @remix_run v3. One more thing to ruffle the feathers of `let` haters etc...

petition to switch the JS ecosystem to snake_case naming when



petition to switch the JS ecosystem to snake_case naming when

readable code is simple - you have primary functions that compose together a bunch of smaller functions when i wrote elixir this was natural to do i've realized after years in ts my habits eroded for the following reasons 1. extracting out logic into a function is more…



colinhacks/zod 已轉發

Announcing our $13M seed to put AI Agents in the hands of every team (code or no-code). So far, we've worked with top companies like Anthropic, Midjourney, Clay, PostHog and tons more to power their customer-facing AI assistants. Today, we’re launching Inkeep Agents: a platform…


colinhacks/zod 已轉發

The composability of Zod codecs (via pipes) is insanely powerful 🤯 base64 ↔ bytes buffer ↔ JSON ↔ Object ht/ @colinhacks, y'all cooked hard. 🫡

nuqs47ng's tweet image. The composability of Zod codecs (via pipes) is insanely powerful 🤯

base64 ↔ bytes buffer ↔ JSON ↔ Object

ht/ @colinhacks, y'all cooked hard. 🫡

Loading...

Something went wrong.


Something went wrong.