Skip to content

Commit

Permalink
Release 13.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Jan 26, 2024
1 parent d416773 commit 172fdd0
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 1 deletion.
55 changes: 55 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,60 @@
# oak Change Log

## Version 13.0.0

- feat: align request body better to Fetch API (bb996fe)

**BREAKING CHANGE** Previous versions of oak had a request body API that was
fairly convoluted as oak evolved from the early days of Deno where there
wasn't a built in APIs for handling HTTP requests. The Fetch API `Request` and
`Response` have become the standard almost everywhere and make it easy to get
ahold of a request body in many forms.

Inspired by this the `ctx.request.body` aligns to this API for the most part,
but also still retains some of the advantages that oak provided like providing
a `ctx.request.body.type` to help figure out what sort of body you are looking
at as well as support for `ctx.request.body.form()`.

This also leverages native Fetch API where possible which resolved a lot of
issues with decoding multi-part forms. This does mean files that are uploaded
to oak become web standard `File`s that are entries in `FormData`. This means
`multipart.ts` has been removed from oak and the

- refactor: use Deno.serve() instead of Deno.serveHttp() (bbae544)

**BREAKING CHANGE** As of Deno 1.40.0, `Deno.serveHttp()` is deprecated and
will be removed in Deno 2.0. The Deno implementation of oak finally migrates
to `Deno.serve()`. While this should be transparent in most cases, it has
changed some of the options that can be used when using `app.listen()` to
align to the `Deno.serve()` options. Also, unlike unstable `Deno.serverHttp()`
`Deno.serve()` doesn't support HTTP/2, therefore it isn't currently possible
to support HTTP/2 in oak.

- fix: remove deprecated API, work around Deno bug (71a1d92)

There were a few other APIs that were deprecated in Deno 1.40.0 that did not
impact the oak APIs, as well as a regression that has been fixed in patch
releases that was worked around.

- fix: issues in current versions of node (43733a0)

Current versions of Node.js had some issues that were not present in Node.js
16. These were resolved.

- fix: application errors dispatched after default logic (f37796b)

Resolved #630

- tests: add descriptions to some tests (9fb56b3)
- chore: rework exports (4bb93fb)
- chore: fix exports (6e2d9b3)
- chore: remove unused dep (ebe6801)
- chore: migrate to oak commons 0.5.0 (d5752e6)
- chore: remove unstable tests (9dc5ca7)
- chore: remove unused import (09fd336)
- chore: update to std 0.212.0 (a854c72)
- chore: fix exports (d416773)

## Version 12.6.3

- chore: add jsr metadata (6c30bdf)
Expand Down
2 changes: 1 addition & 1 deletion deno.json
@@ -1,6 +1,6 @@
{
"name": "@oak/oak",
"version": "12.6.3",
"version": "13.0.0",
"exports": {
".": "./mod.ts",
"./application": "./application.ts",
Expand Down

0 comments on commit 172fdd0

Please sign in to comment.