Zod utilities for Remix loaders and actions.
Full Changelog: https://github.com/rileytomasek/zodix/compare/v0.4.3...v0.4.4
Full Changelog: https://github.com/rileytomasek/zodix/compare/v0.4.2...v0.4.3
Full Changelog: https://github.com/rileytomasek/zodix/compare/v0.4.1...v0.4.2
Full Changelog: https://github.com/rileytomasek/zodix/compare/v0.4.0...v0.4.1
Full Changelog: https://github.com/rileytomasek/zodix/compare/v0.3.2...v0.4.0
ZodEffects
schemas using zx.parseFormSafe
by @mdoury in https://github.com/rileytomasek/zodix/pull/18
Full Changelog: https://github.com/rileytomasek/zodix/compare/v0.3.1...v0.3.2
Full Changelog: https://github.com/rileytomasek/zodix/compare/v0.3.0...v0.3.1
This release makes it easier to handle errors with Zodix.
parseParams()
/parseForm()
/parseQuery()
now throw a Response
object with a 400 status and statusMessage instead of a ZodError. This works better with the standard Remix flow for CatchBoundary. If you were catching and using the ZodErrors, check out the new safe parse functions.parseParamsSafe()
, parseFormSafe()
, and parseQuerySafe()
. These functions don't throw when parsing fails and are meant for custom error handling situations like forms with user input.See the error handling documentation for more details.
Full Changelog: https://github.com/rileytomasek/zodix/compare/v0.2.0...v0.3.0
Full Changelog: https://github.com/rileytomasek/zodix/compare/v0.1.0...v0.2.0