feat: the trust release — observability, shutdown teardown, routing correctness and the docs split #41

Merged
chrnx merged 46 commits from feature/trust-release into develop 2026-08-17 23:17:14 +00:00
3 changed files with 37 additions and 3 deletions
Showing only changes of commit a0fd74da34 - Show all commits

No files matched your search

+31
View File
@@ -63,3 +63,34 @@ jobs:
- run: npm audit --prefix website
continue-on-error: true
- run: npm run docs:build
# Runs everywhere is the headline claim, so it gets tested rather than asserted. `npm test` is
# Node only: a change to shared code can pass it and still be broken on Deno or Bun, which is
# exactly why these suites exist separately. Leaving them out of CI meant the claim rested on
# whoever remembered to run them locally.
#
# Its own job, not more steps on `build`, for the reason the audit sits where it does: a Bun
# failure should read as a Bun failure instead of burying the Node lint output.
runtimes:
runs-on: ubuntu-latest
strategy:
# One runtime breaking must not cancel the others — which one else broke is the useful part
# of the answer, and a cancelled job reports as if it had never been asked.
fail-fast: false
matrix:
runtime: [deno, bun, edge]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
# All three need the dependency tree: the edge suite drives workerd from a Node process, and
# Deno and Bun resolve `reflect-metadata` out of node_modules like any other import.
- run: npm ci
- if: matrix.runtime == 'deno'
uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- if: matrix.runtime == 'bun'
uses: oven-sh/setup-bun@v2
- run: npm run test:${{ matrix.runtime }}
+1 -1
View File
@@ -25,7 +25,7 @@ npm run test:bun
npm run test:edge
```
Run the first four before proposing anything as finished. The runtime suites are separate on purpose — a change to shared code that passes `npm test` may still be broken on Deno or Bun.
Run the first four before proposing anything as finished. The runtime suites stay separate commands on purpose — a change to shared code that passes `npm test` may still be broken on Deno or Bun — but they are no longer optional: CI runs all three on every push and each one gates a merge. Run them yourself for anything touching `src/http/`, the adapters, or `src/mesh/`, rather than finding out from CI.
## Two forges
+5 -2
View File
@@ -256,7 +256,10 @@ green-tea is **beta**, on the road to a release candidate. Express and Fastify h
```bash
npm install
npm test # vitest (Node); test:deno / test:bun / test:edge for the other runtimes
npm test # vitest (Node only — CI additionally runs the three below on every push)
npm run test:deno # deno test } a change to shared code can pass `npm test`
npm run test:bun # bun test } and still be broken on one of these
npm run test:edge # workerd via miniflare
npm run typecheck # tsc --noEmit (includes the compile-time-guarantee type test)
npm run build # emit dist/ (tsup: dual ESM + CJS)
npm run bench # regenerate BENCHMARKS.md
@@ -270,7 +273,7 @@ npm run docs:dev # the documentation site (website/)
- ✅ **streams** — SSE / ndjson / WebSocket duplex over a multicast `AsyncIterable` channel, with backpressure and cleanup.
- ✅ **graph introspection** — `explain` / `graph` / `toMermaid` / `GET /__graph__`.
- ✅ **mesh (walking skeleton)** — `teapot`/`teacup` distributed DI over a secret-gated WS control channel. A BEAM/OTP-style cluster, *not* microservices.
- ✅ **runs everywhere** — Node, Deno, Bun, and Cloudflare Workers over web-standard `Request`/`Response`, with identical WebSocket behaviour on all four.
- ✅ **runs everywhere** — Node, Deno, Bun, and Cloudflare Workers over web-standard `Request`/`Response`, with identical WebSocket behaviour on all four. Every CI run exercises all four; the Deno, Bun, and workerd suites gate a merge exactly as the Node one does.
- ✅ **HTML** — `@Html` (string / file / template), a built-in template engine with a bring-your-own `viewEngine` hook, and `static` serving.
- ✅ **router completeness for beta** — safe constrained params, deterministic precedence, explicit/automatic HEAD and OPTIONS, strict path validation, and ambiguity checks across local and mesh routes.
- **next** — API freeze + first published release, mesh sub-specs (discovery, load-balancing, failover), official plugins, and a radix-tree matcher for very large route tables.