docs(transport): declared-transport contract + @Html return contract

Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
chrnx committed 2026-07-10 16:02:36 -05:00
1 parent 4d1ff33f74
commit 535392baba
3 files changed
+21 -10

No files matched your search

+5
View File
@@ -34,6 +34,11 @@ green-tea uses calendar versioning: `YY.MM.PATCH`.
fields such as `req.socket` / `req.rawHeaders` are no longer available on
`ctx.req`; use `ctx.protocol` / `ctx.ip` / `ctx.query` / `ctx.headers`
instead — all still provided.
- **Breaking (pre-1.0): transport is now enforced by declaration.** A buffered route
(`@Get`/`@Post`/`@Put`/`@Patch`/`@Delete`) whose handler returns an `AsyncIterable`, or a streaming
route (`@Sse`/`@Ws`) whose handler returns a plain value, now fails with a 500 `TransportMismatchError`
instead of silently switching behavior. `@Stream` still negotiates both. Declare `@Sse`/`@Stream`/`@Ws`
to stream — a return value no longer changes a route's wire contract.
## [26.7.0-beta.0] - 2026-07-07