Andrew Jarrett
ahrjarrett.bsky.social
Andrew Jarrett
@ahrjarrett.bsky.social
So close...
September 28, 2025 at 1:58 PM
What if deep object comparisons were 10x more performant than they've ever been in JavaScript?

Just re-use your Valibot, ArkType, Zod, or TypeBox schema. It even works with JSON Schema.

Run the benchmarks yourself:
bolt.new/~/mitata-ej4...

Library:
github.com/traversable/...
September 22, 2025 at 11:49 PM
I also think the implementation is interesting. The workhorse here is the fold function – all 29 libraries are powered by the same abstraction.
September 20, 2025 at 10:15 PM
Here's the encode step:
September 20, 2025 at 9:54 PM
Just shipped a zod transformer that turns a zod schema into a recursive to/from snake/camel case codec.

This release also allows users to provide their own key to/from transforms.

Available in @​traversable/[email protected].

Feedback welcome! cc @colinhacks.com
September 20, 2025 at 9:54 PM
Writing tests is hard, and I'm lazy. I'd rather write a few invariants, and let fast-check fuzz test the rest.

That's why I built @​traversable/valibot-test.

Here it is in action:
September 19, 2025 at 10:09 PM