Reframe README around the graph-as-clarity philosophy; add 'what's different and why', a batteries-included section for the beta features (TLS/CORS/security, Standard Schema validation, uploads, graceful shutdown), and the honest benchmark headline (fastest high-level framework in 3/4 scenarios). Bump status alpha->beta, add CalVer versioning note, seed CHANGELOG. Signed-off-by: Diego Resendez <diego.resendez@zero-oneit.com>
2.1 KiB
2.1 KiB
Changelog
All notable changes to @green-tea/core are documented here.
The format follows Keep a Changelog.
green-tea uses calendar versioning: YY.MM.PATCH.
Unreleased
Beta on the road to a release candidate. No published release yet; the version below is a placeholder until the API freeze.
Added
- Transport security — native TLS termination (https/wss), CORS with a
guarded preflight and credentials-safe origins, secure-by-default response
headers (nosniff, X-Frame-Options, Referrer-Policy, HSTS-when-secure), and
proxy-aware
trustProxyexposingctx.protocol/ctx.ip. - Input validation —
@body/@query/@param/@headersaccept any Standard Schema (zod / valibot / arktype); the parsed value is passed to the handler, invalid input returns422with per-field issues. Core stays dependency-free. - Body parsing — JSON,
application/x-www-form-urlencoded, andmultipart/form-datafile uploads (@body()→{ fields, files }), with a configurable repeated-field policy (bodyDuplicates, per-route overridable) and amaxPartsDoS bound. - Streams — SSE / ndjson / WebSocket duplex over a multicast
AsyncIterablechannel, with backpressure and cleanup;roomsbroadcast hubs. - Graph introspection —
app.explain(route),app.graph(),app.toMermaid()/toDOT(), and an opt-inGET /__graph__dev endpoint. - Operational hardening — request body/size limits (
413), request and keep-alive timeouts, andapp.close()graceful shutdown (drains in-flight requests, closes live streams and mesh links). - Testing ergonomics —
createApp({ overrides })swaps any provider/step by token in one line. - Mesh (walking skeleton) —
teapot/teacupdistributed dependency injection over a secret-gated WebSocket control channel. Experimental. - Benchmarks — reproducible
npm run benchharness vs Express 5, Fastify 5, NestJS, and rawhttp; results in BENCHMARKS.md.