docs(runtimes): scope the parity claim to what the suite actually tests
CI / build (pull_request) Successful in 33s
CI / build (pull_request) Successful in 33s
The parity suite compares Node's listener against app.fetch inside Node
('Node is truth') — it does not exercise all four runtimes. Saying 'every
runtime ... enforced by a parity test suite' overstates it; the honest
version is that the others share the same app.fetch/app.upgrade core and
each has its own smoke tests. Also fixed the line crediting Node's
WebSocket support to serveDeno/serveBun — Node does it through listen().
Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
This commit is contained in:
1 file changed
+8
-5
@@ -22,12 +22,15 @@ Bun.serve({ fetch: app.fetch });
|
|||||||
export default { fetch: app.fetch };
|
export default { fetch: app.fetch };
|
||||||
```
|
```
|
||||||
|
|
||||||
**Node is the reference implementation** — every runtime returns the same status, headers,
|
**Node is the reference implementation.** A parity suite pins `app.fetch` to Node's native
|
||||||
and body for the same request (enforced by a parity test suite).
|
listener — identical status, headers, and body for the same request. The other runtimes drive
|
||||||
|
that *same* `app.fetch` / `app.upgrade` core, so they inherit that behaviour rather than
|
||||||
|
re-implementing it, and each carries its own smoke tests: Deno and Bun cover WebSocket and mesh,
|
||||||
|
and edge runs against real workerd (Miniflare).
|
||||||
|
|
||||||
**All four runtimes now have full WebSocket support:** Node, Deno, and Bun via `serveDeno` /
|
**All four runtimes now have full WebSocket support:** Node via `app.listen()`, Deno and Bun via
|
||||||
`serveBun`, and Cloudflare Workers / edge via `edgeHandler` (see below) — same graph, same
|
`serveDeno` / `serveBun`, and Cloudflare Workers / edge via `edgeHandler` (see below) — same graph,
|
||||||
`@Ws` handlers, same rooms/channels everywhere. `app.listen()`, TLS and per-request timeouts
|
same `@Ws` handlers, same rooms/channels everywhere. `app.listen()`, TLS and per-request timeouts
|
||||||
remain Node-only; on Deno/Bun/edge you get `app.fetch` + the runtime's adapter. **Mesh (alpha)
|
remain Node-only; on Deno/Bun/edge you get `app.fetch` + the runtime's adapter. **Mesh (alpha)
|
||||||
runs on Node, Deno and Bun** — teapot and teacup, in any combination — but not on edge.
|
runs on Node, Deno and Bun** — teapot and teacup, in any combination — but not on edge.
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user