v0.307.0
Released on 6 October 2026 as v0.307.0, with the increments from v0.303.5 to v0.307.0. See Upgrading for what to change when you move to it.
| Version | Highlights |
|---|---|
| v0.307.0 | bynk fmt and bynkc fmt accept directories: a project root formats the files check reads (its [paths] include trees minus exclude), and any other directory is walked recursively, so fmt --check . covers what check . and test . see (#1753). The formatter no longer deletes a --- documentation block that attaches to no declaration (one separated from the next declaration by a blank line, or at the end of a file): it leaves the file unchanged and reports bynk.fmt.comment_loss, as it does for a comment it cannot place (#1664) |
| v0.306.2 | An is receiver that was not lifted to a temp before its bindings were gathered is now a compiler internal error, rather than a /* TODO: complex is-receiver */ placeholder in the emitted TypeScript that surfaced as a distant tsc error. No well-formed program reaches it (#1668) |
| v0.306.1 | When bynk dev stops, it no longer leaves wrangler and workerd processes running and holding their ports, which made the next bynk dev fail with bind(): Address already in use. Before, the leak happened when one context’s wrangler exited and the others were stopped: with wrangler resolved via npx, every context’s processes survived, and with any wrangler, the exited context’s workerds did. bynk dev now also stops whatever is still running in its worker directories (#1742) |
| v0.306.0 | In a project, a file with a syntax error no longer drops out of checking. bynkc check and the editor report the type errors in its declarations that did parse, and a reference to a declaration the syntax error broke (a usesd type, a consumed context’s service) is no longer reported as unknown in the files that can see it. A build still stops at the syntax error, and nothing is emitted (#1710) |
| v0.305.0 | Names the compiler generates from your declarations no longer collide with names you declare yourself. A capability’s token, a provider’s binding, a context’s surface factory and deps interface, a test’s deps and harness factories, and a message bundle’s tables are now __-prefixed (__ClockToken, __SystemClockProvider, __makeSurface, __DemoClockDeps, __makeTestDeps, __messagesLocales), and a bundle’s generated render reaches LocaleTag, Message, MessageArg and renderArg under private aliases, so a type ClockToken, a fn makeSurface or a bundle’s own type Message now compiles. An agent’s <Agent>State is a name its handlers can write, so a type of that name beside the agent is now bynk.agent.state_name_conflict instead of being silently replaced (#1697) |
| v0.304.0 | A unit or integration test case can’t reach another context, and now says so. A case (or a property, which always runs in-process) that calls another context’s service, directly or through a service or agent handler that calls one, is bynk.tier.cross_context_needs_system (#1737); it used to compile and then crash at runtime, since no consumed context runs in-process and stub doubles capabilities only. A suite that mixes system cases with lower-tier ones is bynk.tier.mixed_system_suite (#1738); it used to emit invalid TypeScript, because a system case addresses services by context path and one suite can’t be both. Keep each target’s in-process cases and its system cases in separate suites |
| v0.303.8 | A context can now call a consumed context’s service that takes or returns a generic type the other context exports, such as Envelope[Int]. The consumer’s Workers boundary codec now names the type through the other context’s namespace, where before it failed tsc with TS2304; generic sums get the same fix. Passing such a value as an argument no longer fails bynk.boundary.structural_mismatch against an identical type (#1736) |
| v0.303.7 | A test suite whose target declares a generic type, or uses one, now type-checks and runs; the generated test module aliases each generic type with its type parameters, where before every such suite failed tsc with TS2314 even if no case mentioned the type (#1703) |
| v0.303.6 | bynk doctor warns when your wrangler is too old to serve the compatibility date Bynk pins (currently it needs 4.107.0 or newer), and bynk dev says so before serving, rather than leaving wrangler to fail with “This Worker requires compatibility date …”. Deploying still works with an older wrangler, so doctor --only deploy doesn’t fail on it (#1732) |
| v0.303.5 | Generated wrangler.toml files now pin compatibility_date = "2026-07-01" (it was 2024-11-01), so deployed Workers run under current Workers runtime behaviour. Local bynk dev needs wrangler 4.107.0 or newer (July 2026); an older one refuses the date rather than falling back. The first review under the compatibility-date policy found no flag in between that changes how a Bynk program behaves |