v0.314.23
Released on 10 October 2026 as v0.314.23, with the increments from v0.313.1 to v0.314.23. See Upgrading for what to change when you move to it.
| Version | Highlights |
|---|---|
| v0.314.23 | Extract-variable no longer hoists an expression out of the scope of the bindings it reads (#1819). In an expression-bodied match arm (Some(x) => x + 1), a lambda body ((v) => v * 2), the right of an is test’s && or implies (r is Ok(n) && n > 0) or an observation’s with predicate, the let it inserted above the statement read a name not bound there. Such a selection is now declined, as extract-function declines what it cannot lift soundly; one that reads none of those names, or sits in a block body where the let lands inside their scope, still extracts |
| v0.314.22 | Contract skew is now logged on both sides (#1826). A callee that refuses a mismatched X-Bynk-Contract logs ContractMismatch <context> call <service> with the service and both hashes before its 409 (the caller-supplied hash bounded to 16 characters, since nothing about the request is trusted yet), and the caller’s callService logs the mismatch before it throws BoundaryError: ContractMismatch. Before, neither side logged anything, and a skewed deployment looked like any other unexplained 500 |
| v0.314.21 | A Workers entry point now logs a fault before it answers 500 (#1825). An HTTP route, on call service, event delivery or WebSocket upgrade that faulted (an adapter that threw, a host exception, a failed cross-context call) was caught by a bare catch and left no log line, and being caught it was no uncaught exception the platform would record. The catch now runs console.error with the context, the dispatch (a route’s pattern, call <service>, event <service>, ws <service>) and the error, never the request, then answers the same 500. A boundary or rehydration fault’s payload is no longer an enumerable property of the error, so logging the error doesn’t print a callee’s response body or an offending value |
| v0.314.20 | A system suite’s case is lowered with its checked types, as a unit suite’s is (#1855). The emit path lowered it with an empty type table, so a literal at a refined record field (Line { sku: "o1", qty: 2 }) went to the codec unbranded and the test module failed tsc (TS2322) though check accepted it. The case is now typed on the emit path too, so such a literal is branded, and an expect over primitives compares with === rather than the structural __bynkEq, matching the unit tier |
| v0.314.19 | A Worker whose on call boundary carries a consumed adapter’s exported type now imports that adapter’s codecs (#1845). Its handlers.ts built __serialise_Result_Report_WeatherError from __serialise_Report and __serialise_WeatherError without importing either, so tsc failed with TS2304. An adapter’s types are recorded as a consumed context’s, which never lend their codecs; a consumed adapter’s now do, the same way a used commons’ do, since the adapter is linked into each Worker that consumes it |
| v0.314.18 | A variant pattern’s payload list must open on the variant’s line, as a call’s argument list does (#1858). A ( on the next line no longer continues the pattern: expect r is None above a () line is a nullary pattern followed by a unit tail, not None(). So bynk fmt’s output for a comment after such a statement reparses to the same tree, and formatting it again no longer refuses with bynk.fmt.comment_loss. No program in the corpus wrote a pattern’s ( on a later line |
| v0.314.17 | A context now imports every type a codec it emits names, including a used commons’ field type its own code never reads (#1829). A context whose agent stores, or whose code Json.encodes, a used commons’ Item emitted __serialise_Note(value: Note) for the unread item.note without importing Note, and a file of a context split across files did the same for a sibling file’s type, so tsc failed with TS2304 (under bynkc test and bynk dev, and on Workers for Json). Each type a module’s boundary or Json codec helpers name is now an implied import, kept when the emitted helpers spell it |
| v0.314.16 | bynk fmt no longer adds a blank line after a suite uses (#1808) or an agent store field (#1859) that carries an end-of-line comment: the comment ends the line, and the following line keeps the spacing it has without the comment. The remaining sites that ended a line with a trailing comment or a newline in two steps (an exports name, an enum variant, an actor’s auth and identity) now take the one-step form too, with no change to output (#1810) |
| v0.314.15 | A suite-scoped stub applies to its own suite’s runs only (#1860). Every suite targeting a unit is emitted into one test module, and a suite-scoped clause applied to every run in it: a case in one suite ran against another suite’s stub, silently. When a unit has more than one suite, each suite-scoped clause now applies only while its own suite’s cases and properties run; a case-scoped clause still applies to its case alone, ahead of its suite’s. A contract attack belongs to no suite, so with more than one suite it gets no suite’s stub. A unit’s only suite is unchanged: its clauses apply to every run, attacks included |
| v0.314.14 | A unit suite against a context that consumes another context for a capability builds and runs (#1863). Its test deps gave every consumed context a surface entry typed by that context’s __makeSurface, which a context with no services doesn’t export (TS2339), and never built the capability a handler is given from the consumed context (TS2345). Test deps now follow the composition root: only a consumed context with services contributes a surface; a capability from a consumed context (given Fees.Fees), given to a service or an agent, is that context’s provider, built with its own given capabilities and overlaid by a suite’s stub; and a provider the context declares is built with its given capabilities too, where it was constructed with none. A capability one provider is built over and the test deps also hold is built once, as a local, so a stub of it reaches every provider over it. A first-party capability named with a prefix (consumes bynk as B, given B.Clock) gets its test double, as the flattened form does, where it was undefined. The test module imports any further unit those providers name |
| v0.314.13 | A context split across files whose files use one usesd commons type builds again (#1820, review of #1852). Each such file exports the context’s rebrand of the type and re-exports its codecs, so the context’s barrel (handlers.ts on workers, <context>.ts on bundle, which every bundle build now emits) re-exported the name from two modules through export *, which tsc rejects as ambiguous (TS2308) and which drops the name at runtime. Each barrel now re-exports a name two or more files export from one of them, as type X when that module exports only a type (a plain record’s rebrand), which isolatedModules requires (TS1205) and which a Worker’s stripped JavaScript must not import as a value. On workers, a split context’s per-file module is named for its file’s stem, with no reserved name; and a build that includes a unit suite against a split context no longer also emits a bundle-layout <context>.ts re-exporting modules that don’t exist there (TS2307) |
| v0.314.12 | ExprKind::ConstructorCall is gone. The parser has not built it since grammar v0.2 (T.of(x) and T.Variant(x) parse as a MethodCall on an Ident receiver), so its arms in the resolver, checker, linearity, context checks, wire defaults, emitter, formatter, LSP and sequence diagrams never ran and are removed with it, as is the hand-built node the slot-coverage test (#1832) used to cover it. No behaviour changes |
| v0.314.11 | A context split across files builds and runs on the workers target (#1820). Each file used to be written to the Worker’s handlers.ts in turn, each overwriting the last, so the Worker kept only one file’s declarations and failed tsc. Each file is now its own module under workers/<context>/handlers/, and handlers.ts re-exports them, defining one __resetAgents over every file’s agents and re-exporting from one module each boundary codec two files both emit (TS2308). An agent’s Durable Object rebuilds its given providers from that deeper module, reaching its own context’s through handlers.ts; a handler’s deps.env names every agent of the context, not only its file’s; and a file constructing only a sibling’s agents imports the namespace type it names. On both targets, a file now imports, as a type, a capability a sibling file declares, and the capabilities of a sibling’s agents it calls are part of its deps (and, on bundle, its context’s deps type), where the output failed tsc (TS2304, TS2503, TS2345). On bundle, the context’s barrel (<context>.ts) is part of every build, not only a test build: the composition root imports it (TS2307) |
| v0.314.10 | Walks that skipped a match-arm guard or a call-site principal’s identity now reach them (#1832): an unknown name in a guard gets the resolver’s precise diagnostic (#1848); a by Nobody nested in a block still needs system (#1849); folding and selection ranges cover guards and observation predicates (#1850); extract-variable works inside a let … by Actor(id) (#1851). A test now proves expr_children reaches every child slot of every expression |
| v0.314.9 | CI checks that every name an emitted TypeScript module uses is imported or declared, without tsc (#1831): bynk_ts::unbound_names walks a module’s tree, and import_closure.rs runs it over every module the positive corpus emits, for both targets. It found two Workers-only missing-codec imports, #1845 and #1846 |
| v0.314.8 | A context split across files works on the bundle target when its files declare agents and services (#1820). A file constructing an agent another file declares now imports that file’s factory (__make<Agent>), where the output failed tsc (TS2304). And when two or more files declare agents, or services, the unit’s test barrel defines one __resetAgents, __makeSurface and context deps type over all of them, where each file’s own made the barrel ambiguous (TS2308) and left a test’s agent reset undefined. Multi-file contexts on the workers target are still unsupported (each file overwrites the same handlers.ts); that is tracked in #1820 |
| v0.314.7 | The LSP records each expression’s type once for a file whose check_record fails but whose later checks run on (#1663), instead of twice |
| v0.314.6 | bynkc compile, and the build behind bynk dev and bynk deploy, strip every suite, as the project-layout guide and ADR 0147 say (#1821). They used to type-check and emit the project’s suites into out/tests/, so the deployable carried test code, a broken suite failed the build, and a bundle build of a project with a system suite failed tsc (its test module imports the workers layout). bynkc test still compiles and runs them, and bynk check still checks them |
| v0.314.5 | The wire-contract hover’s response set now uses the checker’s recorded expression types — it matched spans including their FileId, which the editor’s reparse never carries, so it always fell back to the declared-return guess and dropped bare variants like NoContent |
| v0.314.4 | Extract-function is offered again, and editor consumers of recorded expression types read Ty::Error as no type — no -> <type error> signature or <type error> hover |
| v0.314.3 | The expr_types docs across bynk-check, bynk-emit, bynk-ide and bynk-lsp (receiver typing, completion, hover, extract-function) describe ADR 0094’s partial recording on error, not the retired clean-file ceiling |
| v0.314.2 | Workers builds import every commons codec they call, at the top of the module (#1815, #1823, #1817). A commons record whose field has a type from another commons, or from another file of the same commons, called that type’s codec without importing it (TS2552). A cross-context call whose argument or result type was a commons type appearing in none of the caller’s own signatures did the same (TS2304). A codec import was emitted after the agent wire table that used it, so a Worker whose agent handler took a commons type failed to load under a system test (ReferenceError: Cannot access … before initialization). Codecs of a multi-file commons are imported from the file that declares each type, where one import per commons named members another file exports (TS2305) |
| v0.314.1 | An agent handler can read its own key as self.<key> (#1818). It passed bynk check but never worked. The output cast the value to the key’s name (as id), which tsc rejected, and the value was not the key anyway: "[object Object]" on the bundle target and the Durable Object’s hex id on workers. Now an agent that reads its key is handed it: by its factory on the bundle target, and on workers with each call, encoded by the key type’s codec and decoded by the Durable Object. Agents that don’t read their key emit exactly as before |
| v0.314.0 | An imported declaration’s types now resolve where it was declared, so a type it reaches through its own uses is checked in the unit that imports it (#1807). If t.web uses t.model, and t.model uses t.core for type Run = { repo: Repo }, t.web used to type Run.repo by nothing: Run { repo: 42 }, "" for a NonEmpty field, and r.repo returned as an Int all compiled, and so did an imported fn returning Repo, even across consumes. The literal also went unbranded, so tsc rejected the output. Such a type is now resolvable but still not nameable: writing Repo in t.web is bynk.resolve.unknown_type, with a note to uses t.core. A unit’s own type that shares the name is bynk.uses.name_conflict, unless the unit uses that type’s commons directly. Programs that relied on the leniency stop compiling. Test suites still compose their own one-level view (#1814) |
| v0.313.1 | Five walks that skipped match-arm guards now visit them (#1800). An agent state write (:=) inside a guard was never committed: the handler got no commit wrapper, so the write was lost, whether or not the guard then passed. On the bundle target the output failed tsc. A function from another file used only inside a guard lost its import, and the output failed tsc. An effect (<-) in a guard inside a lambda was rejected as bynk.effect.bind_in_pure_context, where the same effect in an arm body made the lambda effectful. In the editor, extract-function now finds a run inside a guard, and no longer lifts a run whose guard holds a <- into a function returning (), or a run whose guard holds a := at all |