oak Change Log
Version 7.1.0
feat: enable server-sent events for native HTTP bindings (#293)
Server-sent events now work on both the
std/http
and the native HTTP server with Deno.refactor: make connection optional for app.handle() (#294)
This was required to support Deno Deploy.
refactor: add fallback for structured clone when core unavailable (#295)
This was also required to support Deno Deploy, as it currently doesn’t expose the low level APIs required to do structured cloning.
Version 7.0.0
feat: context.state is cloned from app.state (1590ac9)
This is also a breaking change, but in a way that is consistent with general expectations about how state works, in that
Context::state
is no longer global.feat: add etag support (2a38d15)
The
etag.ts
module provides middleware and other tools to supportETag
s.feat:
.send()
supports ETag and If-None-Match automatically (be80283)Using
.send()
to send files in responses will automatically handle setting and validatingETag
s from clients to deal with determining if files have changed.feat: Support Deno’s native HTTP server (59e7a00)
As of Deno 1.9.0, Deno supports a native HTTP server and now oak supports both the
std/http
server and the native one. It does this transparently to the user, so if the new native APIs are available, they will be used.Currently to have the APIs available, you have to start Deno with the
--unstable
flag.refactor: support native HTTP request on request body (96373ac)
Using the
Request::body
is fully supported with the native HTTP server and because of this the request body type of"stream"
is supported, which will return the body as aReadableStream<Uint8Array>
.This also makes a breaking change where the
"raw"
body type was renamed"bytes"
to better reflect what is occurring.This also works around an issue with Deno where when reading the response body, the response fails.
refactor: minor refactors and removal of deprecated Deno APIs (993efa7)
chore: remove unused import (33f7463)
chore: remove unused lint rule (0ff0574)
chore: chore: update to Deno 1.9.0, std 0.93.0, media_types 2.8.1 (ac5c426)
Version 6.5.1
- chore: Update to Deno 1.8.3, std 0.92.0, media_types 2.8.0
- chore: add code coverage and badge to README
- chore: migrate CI to official Deno actions
- docs: minor type fixes
- docs: add this CHANGELOG