Skip to content

Commit

Permalink
Release 0.12.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Jun 14, 2024
1 parent 8a29360 commit ea4830c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# @oak/commons Change Log

## Version 0.12.0

- feat: add `asResponse()` method to HTTP errors (36f8232)

HTTP errors now supports the method `.asResponse()` which allows HTTP errors
to be more easily sent to a client. When a request is supplied as an option to
the method, content negotiation will be used to determine the format of the
response body, with the `prefer` option given preference to a format during
negotiation.

**BREAKING CHANGE** Because of this, previously HTTP errors took the `headers`
option on construction as well as instances had a `.headers` property. This
has been removed, and a `headers` option can be instead passed to the
`.asResponse()` method.

- chore: update `@std/bytes` version (8a29360)

## Version 0.11.0

- feat: add forwarded parser (6fb5752)
Expand Down
2 changes: 1 addition & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@oak/commons",
"version": "0.11.0",
"version": "0.12.0",
"exports": {
"./cookie_map": "./cookie_map.ts",
"./form_data": "./form_data.ts",
Expand Down

0 comments on commit ea4830c

Please sign in to comment.