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 πβ€οΈ
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 πβ€οΈ
So close...
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?
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...
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.
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...
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/...
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...
I also think the implementation is interesting. The workhorse here is the fold function β all 29 libraries are powered by the same abstraction.
The library is github.com/traversable/.... Thanks for checking it out!
Here's the encode step:
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
@fast-check.dev cool! I can open a PR
Here's the sandbox:
stackblitz.com/edit/travers...
cc @fabianhiller.com
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:
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...