v0.330.4
Released on 13 October 2026 as v0.330.4, with the increments from v0.315.0 to v0.330.4. See Upgrading for what to change when you move to it.
| Version | Highlights |
|---|---|
| v0.330.4 | A diagnostic’s secondary label in another file of a multi-file unit (a duplicate’s “previously declared here”) renders in a snippet of that file in bynkc, and points at that file’s URI in the language server’s relatedInformation, instead of being drawn at the same offsets in the diagnostic’s own file |
| v0.330.3 | A service, agent or bodied provider can no longer share its name with a function, asset, type, event, or each other in the same unit (bynk.resolve.name_conflict), and a local declaration of any kind now shadows a uses-imported function or asset of its name, with a reference it cannot answer reported as bynk.uses.name_conflict: the checker accepted both, and the emitted TypeScript failed tsc (#1925) |
| v0.330.2 | Editor tooling for asset names: hover shows the declaration, where the platform serves the file (/_assets/<stem>.<hash>.<ext> or its at path) and its doc; completion offers asset names wherever they are in scope (a unit’s own and its usesd commons’) and url after one; go-to-definition, references, rename, doc links and the add-uses quick fix reach them; and asset names get their own asset semantic token (static assets) |
| v0.330.1 | An asset fetch in a suite (api.GET(style)) is target-scoped: only the target’s own assets are nameable, it works through a from http service only, and it is its own callee, so no route can be mistaken for it (static assets, review of slice 3) |
| v0.330.0 | A suite names its target’s assets and fetches one with api.GET(style), answered as the platform’s asset tier would (Raw(body, contentType), or NotFound); bynk.test.asset_address_method, bynk.test.principal_on_asset; a case now binds an HttpResult variant’s payload by its real field (Raw(body, ct), BadRequest(m)) (static assets, slice 3) |
| v0.329.0 | An asset may be served at a fixed path (asset favicon = "assets/favicon.ico" at "/favicon.ico"), checked against the Worker’s routes (bynk.asset.shadows_route, the warning bynk.asset.may_shadow_route, bynk.asset.path_conflict, bynk.asset.invalid_at_path); /_assets/ is a reserved route prefix; a Worker ships the hashed assets of the contexts it consumes (static assets, slice 2) |
| v0.328.1 | A build reads only the assets/ files an asset declaration names, so large undeclared media there no longer slow bynkc compile or each bynk dev rebuild; a declared file that cannot be read is the new bynk.asset.unreadable_file (static assets, #1883) |
| v0.328.0 | asset declarations build: each Worker serves its files from assets/ at a content-hashed .url, through an [assets] block and an immutable _headers; new bynk.asset.outside_assets_dir, bynk.asset.missing_file, bynk.asset.needs_project, and the bynk.asset.not_served warning for a deployable Bundle build (static assets, slice 1b) |
| v0.327.0 | A context or commons declares a static file with asset name = "path", a value of the new built-in type Asset whose .url is a String; declarations are checked, and a build refuses them with bynk.asset.not_yet_emitted until they can be emitted (static assets, slice 1a) |
| v0.326.2 | Build output can carry binary static assets, written byte-for-byte and pruned from a Worker’s compiler-owned assets directory (static assets, slice 0) |
| v0.326.1 | A nested list type is valid TypeScript (#1898). List[List[Int]] now emits readonly (readonly number[])[] instead of readonly readonly number[][], which tsc rejected (TS1354); a function-typed element (List[Int -> Int]) is parenthesised the same way. Covers both declared types and the List/Query kernel lowerings’ inline annotations. |
| v0.326.0 | One-line docs and member docs (#1888). A `— |
| v0.325.0 | Fetch.send sends extra request headers and returns the response’s: Request and Response gain headers: Map[String, String] (a required field — existing literals add headers: Map.empty()), and FetchError gains InvalidHeader for a request whose headers conflict with a typed slot, name a header the platform owns or are not legal headers, or whose contentType/authorization value is not a legal header value (#1886) |
| v0.324.0 | Module docs (#1885). A doc-block above a commons/context/adapter header is the unit’s module doc. A unit split across files carries at most one: two or more is bynk.project.duplicate_module_doc, naming every file that carries one. Hover on a unit name (its header, a uses target, a consumes target) shows the unit’s module doc, found in whichever of its files has it, and the documentation page merges every file of a multi-file unit under that doc. New guide: Document your code; spec §5.1a. |
| v0.323.1 | bynk fmt keeps the blank line between a standalone comment and the next top-level declaration, so the comment no longer reads as describing it (#1884) |
| v0.323.0 | Every generated wrangler.toml now carries compatibility_flags = ["global_fetch_strictly_public"], so a Fetch to a URL goes over the public internet even when the URL is another Worker on the same Cloudflare account; before, Cloudflare refused it (error 1042, or a fast 404 from a workers.dev sibling). bynk.toml gains a [workers] table whose compatibility_flags list is appended after the default: names pass through unchecked, a duplicate is dropped with a bynk.project.duplicate_compatibility_flag warning, and anything but a list of strings is an error. Every deployed Worker’s configuration changes on its next deploy (#1890) |
| v0.322.0 | An Option decodes from absent, null or a bare value (#1887). Decoding an Option[U] now accepts an absent key and null as None, and a bare value as Some, checked and refinement-checked as U, as well as Bynk’s tagged {"kind": "Some", "value": …} / {"kind": "None"}. It is the one Option codec, so the rule holds for Json.decode, HTTP request bodies, cross-context calls, agent-store rehydration and WebSocket frames. Encoding is unchanged, so contract hashes do not move and every payload Bynk wrote still decodes; a hand-written tagged object with extra keys, such as {"kind": "Some", "value": "d", "note": "x"}, is now read as a bare value. The tagged forms win where a value could be read both ways, so whatever the encoder writes decodes back to itself. |
| v0.321.0 | A doc-block’s closing marker must have as many dashes as its opening one (#1885), as with a Markdown code fence, so a ---- block can hold --- lines: a horizontal rule, front matter, or a Bynk example with its own doc-block. A doc-block whose content, outside Markdown code fences, parses as declarations is the new error bynk.parse.doc_block_contains_code; a pair of dash dividers around code no longer turns it into documentation silently. The bynk.lex.unclosed_doc_block note now says a line of dashes is a marker, not a divider. bynk fmt prints the shortest fence longer than any marker line in the doc. VS Code no longer maps Toggle Block Comment to ---, and the editor grammars pair markers by length |
| v0.320.0 | Resolves #1889: the List[T] kernel gains append(x: T) -> List[T] and concat(other: List[T]) -> List[T], both pure and non-mutating, so a fold or foldEff builds a list in order without prepend and reverse. They emit as the spreads [...xs, x] and [...xs, ...ys], and like prepend they pass an expected list type down to their receiver, so let xs: List[Int] = [].append(1) infers. Supersedes ADR 0036’s never-append clause. |
| v0.319.0 | A fault claim carries a call-site principal (#1812). expect api.POST("/orders", order) by User("bob") faults drives an identity-carrying handler as let r <- … by User("bob") does, so its fault path is testable; the principal is checked against the addressed handler (an absent by is still bynk.test.principal_required) and lowered around the claimed call. A fault claim driven by Nobody is bynk.test.faults_needs_in_process at any tier. Grammar (faults_expr), formatter and tree-sitter updated. |
| v0.318.0 | A test suite checks a type its target reaches only through an imported declaration (#1814). A unit suite’s view and a system case’s harness table each merged one level of uses, so t.model’s Run { repo: Repo } reached a suite over t.web (which uses t.model only) with repo typed by nothing: Run { repo: 42 } and an Int read of r.repo compiled. Each suite view is now closed over the types its imported declarations reach, as the unit’s own table is (#1807), and the same naming gate rejects a reached type a suite writes. A reached name a suite’s view already binds to another declaration is bynk.uses.name_conflict: in a system suite, a participant’s type of the same name as one the suite’s uses reaches; in a unit suite, a consumed context’s unexported type, which only the suite’s view merges. The generated test module imports each reached type from its owning commons, so a lowered case can spell it ((__x: Repo) => …, Repo.shout(…)) |
| v0.317.1 | A system suite against a context that consumes a unit only for its capabilities (consumes bynk { Clock }, an adapter) now runs (#1856). The suite stood up every unit in the target’s consumes closure as a participant Worker, so it imported ../workers/bynk/handlers.js, which is never emitted (TS2307), and wired it a Service Binding the deployment never has. Only a context is a participant now: a capability-only unit is provided in-process, as the Worker’s composition root provides it |
| v0.317.0 | Built for Workers, a context that requires a capability it declares (given Mailer) but has no provides Mailer = … for is now bynk.capability.not_provided (#1822). The Workers composition root passed {} where the capability was required, so the Worker failed tsc (TS2345) while the bundle build passed. The bundle target is unchanged: there the host may supply the capability through __makeSurface(deps) |
| v0.316.0 | A consumes clause repeated in another file of a context split across files is accepted (#1857), aliased (consumes shop.payment as Payment) or as a { Cap } selection; both were rejected, though the unaliased repeat was accepted, and the alias diagnostic’s “previously defined here” pointed at the wrong file. The same clause twice in one file is still an error. alias_conflict reports a true conflict, an alias naming two units or a unit consumed under two aliases (the latter newly rejected), labelling the earlier clause in the same file or naming its file in the message |
| v0.315.2 | A RehydrationViolation is now logged, as the docs said it was (#1827). The load-time gate threw it without a log line, unlike an InvariantViolation, and an HTTP or on call entry point then caught it. rehydrationViolation now logs RehydrationViolation <Agent> with the agent, the field path and the kind of failure (never the key or the offending value) wherever a gate builds it |
| v0.315.1 | A Worker that decodes a consumed context’s export now generates the codec of every type the export reaches, including one the callee does not export (#1846). Ticket.code, typed by t.vault’s unexported Code, was decoded through a __deserialise_Code that was neither generated nor imported (TS2552), and a consumer declaring its own Code would have reached its own codec instead. Such a type’s codecs and instantiations are generated under a callee-qualified name (__serialise_t_vault__Code, __serialise_Option_t_vault__Code), so they can’t collide with the consumer’s, while their TS type stays the callee’s (t_vault.Code) and a refined one still validates inline |
| v0.315.0 | A unit’s own type that shadows a directly used commons’ type is bynk.uses.name_conflict where a value crosses between the unit’s code and an imported declaration’s position of that type (Run { repo: 42 }, r.repo + 1, a method or function argument); passing one such position straight to another stays legal (#1824). Before, such a program passed check and failed tsc. The rule is conservative: a value routed between two such positions through a let, a shorthand field or an imported generic is rejected too, though its TypeScript was correct; pass it directly, or rename the local type |