Skip to content

v0.9.0

Choose a tag to compare

@github-actions github-actions released this 19 Jul 04:43
· 17 commits to main since this release
4336e87

Minor Changes

  • #170 6df8dba Thanks @paveg! - typePrefix and defaultType now apply to errors thrown via problemDetails() / registry create() and to mapError results when no explicit type was set. Previously these handler options only affected HTTPException and unhandled errors, silently leaving about:blank on the library's primary API. An explicitly set type (including an explicit "about:blank") is never overridden.

Patch Changes

  • #169 0d5d8e4 Thanks @paveg! - The JSON body's status field is now clamped to the same 200-599 range as the HTTP response status. Previously problemDetails({ status: 9999 }) produced an HTTP 500 response whose body still said "status": 9999, contradicting RFC 9457's expectation that the body status mirrors the response status.