Andrew Jarrett's Avatar

Andrew Jarrett

@ahrjarrett

Working on https://github.com/traversable/schema

13
Followers
11
Following
14
Posts
18.01.2025
Joined
Posts Following

Latest posts by Andrew Jarrett @ahrjarrett

100 stars and 100,000 all-time downloads on the same weekend :)

A library is nothing without its users. Thank you for using my software πŸ™β€οΈ

28.09.2025 18:56 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

So close...

28.09.2025 13:58 πŸ‘ 0 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0

Here's are some resources on property testing/fuzz testing that I've been reading lately:

- Property testing in Elixir: propertesting.com
- How to identify properties/invariants: fsharpforfunandprofit.com/series/prope...
- Using fast-check with Cypress: www.youtube.com/watch?v=E42T...

Any others?

27.09.2025 17:44 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Preview
Monads are too powerful: The Expressiveness Spectrum Monads are a useful tool, but what costs do we pay for their expressive power?

Interesting article by @chrispenner.ca about why monads aren't the solution to everything, and a functor I've never crossed paths with called selective applicatives.

Still absorbing it, but great read as always. Check it out if that's your thing.

chrispenner.ca/posts/expres...

27.09.2025 12:55 πŸ‘ 3 πŸ” 1 πŸ’¬ 0 πŸ“Œ 0

This afternoon I was listening to @typescript.fm and was surprised to hear @​traversable/valibot mentioned 🀩

As a long time fan of the podcast, this was super fun.

25.09.2025 22:13 πŸ‘ 1 πŸ” 1 πŸ’¬ 1 πŸ“Œ 0
Preview
Our plan for a more secure npm supply chain GitHub is strengthening npm's security with stricter authentication, granular tokens, and enhanced trusted publishing.

This is great news! GitHub will require use of passkeys for 2FA when publishing to NPM. What a huge step up in security compared to other phishable 2FA methods that were historically supported πŸŽ‰

github.blog/security/sup...

23.09.2025 15:04 πŸ‘ 34 πŸ” 13 πŸ’¬ 0 πŸ“Œ 2
Video thumbnail

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/...

22.09.2025 23:49 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Documentation - TypeScript 5.3 TypeScript 5.3 Release Notes

Ah, I had more cases, but ended up removing most of them πŸ˜… this could probably be simplified to an if/else.

Glad you got something from it! TypeScript added support for narrowing in switch/true kinda recently:

www.typescriptlang.org/docs/handboo...

21.09.2025 00:16 πŸ‘ 1 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Post image

I also think the implementation is interesting. The workhorse here is the fold function – all 29 libraries are powered by the same abstraction.

20.09.2025 22:15 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Preview
GitHub - traversable/schema: TypeScript schema compiler, rewriter TypeScript schema compiler, rewriter. Contribute to traversable/schema development by creating an account on GitHub.

The library is github.com/traversable/.... Thanks for checking it out!

20.09.2025 21:55 πŸ‘ 2 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

Here's the encode step:

20.09.2025 21:54 πŸ‘ 0 πŸ” 0 πŸ’¬ 0 πŸ“Œ 0
Video thumbnail

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/zod@0.0.50.

Feedback welcome! cc @colinhacks.com

20.09.2025 21:54 πŸ‘ 3 πŸ” 0 πŸ’¬ 2 πŸ“Œ 0

@fast-check.dev cool! I can open a PR

20.09.2025 21:12 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
@traversable/valibot-test: vx.toString fuzz test - StackBlitz Motivating issue: https://discord.com/channels/1252985447273992222/1418183934541434891

Here's the sandbox:

stackblitz.com/edit/travers...

cc @fabianhiller.com

19.09.2025 22:10 πŸ‘ 2 πŸ” 0 πŸ’¬ 1 πŸ“Œ 0
Post image

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:

19.09.2025 22:09 πŸ‘ 14 πŸ” 5 πŸ’¬ 4 πŸ“Œ 0
Preview
Introducing: @traversable/valibot A few weeks ago I released a TypeScript library called @traversable/valibot. This post covers what...

This is one of the coolest @valibot.dev utility libraries around! πŸ”₯

It can convert Valibot schemas into stringified TypeScript types. It can also check schemas for equality and clone them. Great job, @ahrjarrett.bsky.social! πŸͺ„

Read the full article on @dev.to: dev.to/ahrjarrett/i...

16.09.2025 01:47 πŸ‘ 17 πŸ” 4 πŸ’¬ 2 πŸ“Œ 0