OmniBytes / pi-hub

Smart Display for Raspberry Pi
https://hub.omnibytes.io
MIT License
3 stars 0 forks source link

refactor: replace zod with valibot #38

Closed funkstyr closed 8 months ago

funkstyr commented 9 months ago

Describe the feature you'd like to request

This will be spike-ish.

Valibot is a more lite weight validator.

Describe the solution you'd like to see

Replace all instances of zod with valibot schemas.

Additional information

funkstyr commented 8 months ago

Will need to keep zod around for @t3-oss/env-nextjs as it only supports zod but they do have a roadmap item for other vaildator: https://github.com/t3-oss/t3-env?tab=readme-ov-file#roadmap

It is also more straight to use zod with trpc; I think we should just keep using only zod and not have 2 validators within the apps.