It's a great day for form validation! With the 2.27.0 release of Superforms for SvelteKit by @sveltejs, the super-trio of validation is ready for you: Zod 4 and Zod Mini by @colinhacks, Arktype 2.0 by @arktypeio and Valibot 1.0 by @valibot. Try it out at superforms.rocks!
Superforms 2.22.0 brings you a a PR from the creator of Zod himself, @colinhacks, and feature from the very latest SvelteKit (thanks as always, @sveltejs), so now you can send any type of data with the form. 🎄 Merry Christmas! 🎄
Replying to @Tylopilus
This pretty much explains it: youtube.com/watch?v=Uo3cL4nr…
Opened a JS project today that I hadn't touched for three whole months, in other words ancient. Horribly outdated packages, incorrect Node version, outdated tsconfig settings, incorrect Python version for gyp, needed major ESLint upgrade due to end-of-life support, etc etc.
Fortunately I found a great utility for slashing through this horribly tangled JS jungle. With a simple:
> pnpx taze major
I was up to speed again with the latest dependencies. Thanks @antfu7 for such a simple and useful tool!
Regexp/validation tip:
Validating a string with only min length is usually not enough, since it will accept whitespace and punctuation. But it's quite easy to validate against letters with a unicode regexp:
More info, reference and some pitfalls at regular-expressions.info/uni…
Replying to @adamsilverhq
Can be quite useful in a backend for nullable values (as it can also hide the fields).








