Closed scottrippey closed 9 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
I added like a hundred more commits :) I had a lot of things on the mind to fix and improve!
@scottrippey not sure if this is the right format but using Zod for all validation will certainly slow down the editors and possibly noticable runtime validations as queries become complex.
Added a bit context in #261 but after using Groqd for >10 production projects we are scrambling for an option as developer experience has become intolerable.
I'd love to discuss! For our next major release, we've made zod optional, so maybe that will help with your performance issues. However, we've added a lot more TypeScript in order to enable auto completion too.
I'd love to hear more about the kind of performance issues you've experienced. Are these run time issues? Or TypeScript + IDE performance issues?
What
Ensures full compatibility with Zod.
Ditches the "lite validation" that I had implemented. If Zod is not used, it can still be tree-shaken with this approach, so it's still an "optional" dependency.
Additional changes:
validationRequired: true
flag, for enforcing runtime validation if desired$
fromq.conditional$
andq.select$
methods; these are now justq.conditional
andq.select
| null
types