Releases: rileytomasek/zodix
Releases · rileytomasek/zodix
v0.4.4
v0.4.3
v0.4.2
What's Changed
- Fix parseForm not throwing responses by @antoinechalifour in #34
- Run GH Actions with Node v18 for fetch support by @rileytomasek in #35
New Contributors
- @antoinechalifour made their first contribution in #34
Full Changelog: v0.4.1...v0.4.2
v0.4.1
What's Changed
- fix: exclude @remix-run/server-runtime from external deps to reduce bundle size by @OnurGvnc in #29
- New type assertion function, largely from current GH Issues by @abelsj60 in #33
New Contributors
Full Changelog: v0.4.0...v0.4.1
v0.4.0
v0.3.2
v0.3.1
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
v0.2.0
What's Changed
- Support passing FormData to zx.parseForm by @sergiodxa in #1
- Remove extra parenthesis in README by @tgdn in #3
- Support all Remix runtimes by @rileytomasek in #4
- Setup GitHub Actions by @rileytomasek in #9
New Contributors
- @sergiodxa made their first contribution in #1
- @tgdn made their first contribution in #3
- @rileytomasek made their first contribution in #4
Full Changelog: v0.1.0...v0.2.0
Initial release
v0.1.0 v0.1.0