Skip to content

Commit 7418ff3

Browse files
committed
Release 12.3.0
1 parent df5ea26 commit 7418ff3

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

CHANGELOG.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,44 @@
11
# oak Change Log
22

3+
## Version 12.3.0
4+
5+
- feat: add `MiddlewareObject` (#589)
6+
7+
Middleware can be registered as a middleware function or a `MiddlewareObject`
8+
which is an object which has a `handleRequest()` method and optionally an
9+
`init()` which will be called when the application starts listening.
10+
11+
- feat: add `"close"` event to Application (f564e38)
12+
13+
The `Application` now emits a `"close"` event when it has stopped handling
14+
requests.
15+
16+
- feat: add `Router.prototype.add` to allow specifying methods (b8d0e80)
17+
18+
The `.add()` method can be used on router instances to register middleware
19+
with arbitrary sets of HTTP methods. This allows usage of uncommon HTTP
20+
methods as well as potentially procedural configuration of the router.
21+
22+
- feat: add type guard (#502)
23+
24+
The `isNativeRequest()` type guard is added which makes it easier to detect if
25+
a request is a Deno native request in order to be able to safely access the
26+
original request.
27+
28+
- fix: cleanup SSE and web socket on application close (11e4172)
29+
30+
Previously, if the application stopped listening (closed), it would not close
31+
down SSE or socket connections, therefore making it difficult to shutdown
32+
cleanly. Now it should.
33+
34+
- fix: set body and headers when init'ing SSE (8685c7a)
35+
36+
oak 12.2.0 did not properly convert over to the std libraries SSE target. It
37+
now handles this properly.
38+
39+
- docs: add "The response is not writable." to FAQs (be310ee)
40+
- docs: add "early eof" to FAQs (6d21b7a)
41+
342
## Version 12.2.0
443

544
- feat: remove experimental support for Deno flash server (d9f8829)

0 commit comments

Comments
 (0)