docs: changelog for app.fetch + provider memoization, runtimes body-size note
Record the app.fetch Web-Standards handler and the app-scope provider memoization behaviour change in the changelog, and note on the runtimes guide that app.fetch reads oversized bodies fully before rejecting them (unlike Node's mid-stream abort) so non-Node deployments should also bound request size at the platform layer. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
2 files changed
+12
-1
No files matched your search
+8
-1
@@ -7,7 +7,14 @@ green-tea uses calendar versioning: `YY.MM.PATCH`.
|
||||
|
||||
## [Unreleased]
|
||||
|
||||
_Nothing yet._
|
||||
### Added
|
||||
- **`app.fetch(request): Promise<Response>`** — a Web-Standards handler so the
|
||||
same app runs HTTP and SSE on Deno/Bun/edge runtimes via the Fetch API
|
||||
(WebSocket and mesh remain Node-only).
|
||||
|
||||
### Changed
|
||||
- App-scope providers now boot exactly once (memoized): a second `app.listen()`
|
||||
call no longer re-runs provider factories or their side effects.
|
||||
|
||||
## [26.7.0-beta.0] - 2026-07-07
|
||||
|
||||
|
||||
@@ -28,3 +28,7 @@ and body for the same request (enforced by a parity test suite).
|
||||
**Not yet on non-Node runtimes:** WebSocket (`@Ws`) and mesh — Node-only for now; cross-runtime
|
||||
WebSocket is on the roadmap. `app.listen()` and TLS are Node-only; on Deno/Bun/edge you get
|
||||
`app.fetch`.
|
||||
|
||||
**Body-size enforcement differs slightly:** on `app.fetch`, an oversized body is read in full
|
||||
before the `413` is returned, whereas Node aborts mid-stream once the limit is hit — so on
|
||||
non-Node runtimes, also bound request size at the platform/runtime layer.
|
||||
Reference in new issue
Block a user