Skip to content

v0.3.0

Compare
Choose a tag to compare
@rileytomasek rileytomasek released this 05 Nov 19:26
· 20 commits to master since this release

This release makes it easier to handle errors with Zodix.

Potentially Breaking Changes

  • 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.

New

  • Added 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.
  • 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