Skip to content

v0.74.0

Latest
Compare
Choose a tag to compare
@joshmossas joshmossas released this 30 Jan 11:26
· 2 commits to master since this release

What's Changed

  • bugfix: fix failing kotlin integration tests against go server by @joshmossas in #142
  • [ts-schema] refactor: no longer throws by default by @joshmossas in #143
  • [ts-schema] feature: ability to compile coerce fn by @joshmossas in #145

Full Changelog: v0.73.0...v0.74.0

Typescript

Since we are pre-1.0 I thought now was a good time to do a major refactor to change the default behavior of the TS schema validation library. Now all parsing and serialization functions will never not throw errors by default. Instead they return a Result<T>.

@arrirpc/schema

  • [BREAKING] parse, coerce, and serialize no longer throw a ValidationError they instead return a Result<T>
  • [BREAKING] parseSafe and coerceSafe have been removed as not throwing is now the default behavior
  • parseUnsafe, coerceUnsafe, and serializeUnsafe have been added.
  • [BREAKING] ValidationError has been renamed to ValidationException
  • a.compile() now also compiles a highly optimized coerce function. When running on my Macbook the compile version of coerce is 25x faster than the non-compiled versions.
image

@arrirpc/server

  • RPCs registered using the GET HTTP method now use the compiled version of coerce() when parsing URL query params.

Swift

  • update async-http-client to version 1.24.2