v0.3.0
This release makes it easier to handle errors with Zodix.
Potentially Breaking Changes
parseParams()
/parseForm()
/parseQuery()
now throw aResponse
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.
New
- Added
parseParamsSafe()
,parseFormSafe()
, andparseQuerySafe()
. These functions don't throw when parsing fails and are meant for custom error handling situations like forms with user input. - Added an example Remix app with full examples of common usage patterns
See the error handling documentation for more details.
Full Changelog: v0.2.0...v0.3.0