v0.140.0
Released on 4 July 2026 as v0.140.0, with the increments from v0.132.1 to v0.140.0. See Upgrading for what to change when you move to it.
| Version | Highlights |
|---|---|
| v0.140.0 | Conditional caching for from http GET responses (emitter + runtime + a grammar/checker addition; ADR 0163). A from http GET carried no validator and no freshness signal (#492): every re-fetch of an unchanged resource transferred the whole body, and there was no way to say “this is fresh for five minutes”. Two behaviours, split along the line v0.131 drew for CORS — the compiler synthesises what it can derive, the author declares what only they know. (1) Automatic revalidation, on by default: every eligible GET (one returning the JSON Ok variant) now carries a synthesised weak ETag over its serialised body (FNV-1a, synchronous), and a matching If-None-Match is answered a synthesised 304 Not Modified (empty body, ETag + Cache-Control copied across). (2) Opt-in freshness: a **`@cache(maxAge: 5.minutes, scope: public |
| v0.139.0 | HTTP method correctness for from http services (emitter + runtime; ADR 0162). The entry router answered every non-matching request with 404, so a wrong-method request to a live route was indistinguishable from a missing one, no Allow header was ever emitted, and HEAD/OPTIONS — which every HTTP client and cache assumes — were unimplemented (#489, surfaced during the v0.131 CORS work). The router now answers the method contract derived from the declared routes: a wrong method to a live path is a 405 with Allow (the union of the path’s methods, + HEAD where GET exists, + OPTIONS); a plain (non-preflight) OPTIONS is a 204 with Allow; and a HEAD runs the GET handler and returns its status and headers with an empty body (a Streaming GET answered as HEAD is not drained — sseResponse is now lazy). An unknown path is still 404. The allow-method derivation is one shared table the CORS preflight now reads too (so a CORS service’s Access-Control-Allow-Methods gains HEAD); a real preflight (bearing Access-Control-Request-Method) is disambiguated from a bare discovery OPTIONS, and the synthesised 405/OPTIONS are CORS-stamped for CORS services. HEAD/OPTIONS are not author-declarable and nothing is configured — this is a router correctness fix that is always on, so every HTTP expected/workers/** fixture regenerates (the intended 404→405/OPTIONS/HEAD deltas). The closed HttpResult sum is untouched (HttpResult/HTTP_VARIANTS/HTTP_STATUS/httpResultToResponse byte-for-byte unchanged); the author-returnable MethodNotAllowed variant stays bodyless (ADR 0126 D4), its Allow a deferred payload shape. bynk-emit (workers_entry.rs) + one runtime helper (headResponse); no grammar, checker, or editor-surface change (ADR 0156). Closes #489. |
| v0.138.0 | bynk check / bynk fmt / bynk test — the everyday commands reach the driver (tooling; #487). The three most common day-to-day actions, previously only on bynkc, are now exposed through the bynk developer front-end, so an editor or developer goes through the one entry point that already knows how to find the compiler (the fix direction for #486/#484). bynk check and bynk fmt run the pipeline in-process — no separately-installed bynkc required, keeping cargo install bynk self-contained — routing single-file and project inputs exactly as bynkc does; bynk test delegates to the bynkc the driver resolves (BYNK_BYNKC → PATH → sibling-of-bynk), forwarding every flag, since it orchestrates external tsc/node regardless. All three mirror bynkc’s flag surfaces exactly (--format, --check, --no-run, --case, --inspect, --seed, -o) and honour the BYNK_BYNKC override the way bynk dev does (an override shells the pinned compiler). Additive — bynkc check/fmt/test are unchanged, so scripts, CI, and the VS Code extension keep working; bynk doctor is unchanged. Single-file compile/compile_with_warnings moved down into bynk-emit (the slice-7 precedent) so the driver checks a single file in-process without depending on bynkc; bynkc re-exports them, so its public API is unchanged. Closes #487. |
| v0.137.0 | Hover for the key/store agent-state surface (tooling; ADR 0161). Hovering key or store in an agent body produced no hover (#476): both are contextual keywords — lexed as identifiers, so absent from the reserved KEYWORDS registry and unseen by the keyword-hover path — and the state fields they declare are neither top-level declarations nor let/parameter locals, so every hover path fell through. Hovering key/store (or the field name each introduces) now renders the field’s signature — key id: String, store items: Map[String, Int] @indexed(by: id) @bounded(10000) (annotations through the formatter’s own renderer) — followed by a one-line doc. The key/store keyword and its field name render identically, matched by source span (never by name), so an identifier that merely reads id/items elsewhere is never mistaken for the declaration. A new parallel CONTEXTUAL_KEYWORDS registry names these words without adding them to the reserved list (which the keywords_reference drift guard pins to the lexer’s tokens), and a second mechanical coverage test extends ADR 0156’s hover floor from reserved to contextual keywords — the tooth that would have caught this. bynk-lsp + a public bynk-fmt::annotation_to_string; no grammar, checker, or emitter change. Closes #476. |
| v0.132.1 | A uses-imported refined type’s user-defined static methods reach the consumer (emitter fix). A context that uses a commons and calls a user-declared static method on one of the commons’ refined types — let r = Cents.fromInt(n) where the commons declares fn Cents.fromInt(n: Int) -> Result[Cents, ValidationError] — passed bynkc check but failed tsc (#481): the consumer rebrands the imported type to a nominal alias and re-exports a value-side const, but that const forwarded only the built-in of/unsafe, so Property 'fromInt' does not exist on the rebranded Cents. The rebrand now forwards every attached method (static and instance) by delegating to the value-imported __Commons<T> — the same delegation the of/unsafe forwarders already use, with an as unknown as cast bridging the commons brand to the context brand. Independent of file layout (single- or multi-file commons) and target (--target bundle and --target workers). Emit-only — no grammar, checker, or AST change; a consumer with no such call emits byte-for-byte identical output (the defect was latent, so no existing snapshot changed). Closes #481. |