Skip to content
Playground(another site)

v0.303.4

Released on 5 October 2026 as v0.303.4, with the increments from v0.290.1 to v0.303.4. See Upgrading for what to change when you move to it.

VersionHighlights
v0.303.4The VS Code extension downloads its language server from the last published release, so a build from main can always provision one; a newer bynkc-lsp on PATH is no longer warned about or offered a download that would only fetch an older server (#1673)
v0.303.3bynk test now checks that the bynkc it runs matches bynk. A different minor version prints a warning; a different major version refuses to run unless you pass --allow-skew or set BYNK_ALLOW_SKEW=1. bynk check, bynk fmt, bynk dev and bynk deploy apply the same check when BYNK_BYNKC points them at a separate compiler, offering only the variable (#1675)
v0.303.2Bynk’s emitted TypeScript is now verified under both TypeScript 5 and TypeScript 7, the current major (CI previously checked only 5). bynk doctor checks your tsc version, warning below 5 and calling anything newer than 7 untested, and its install advice, like bynkc test’s, now names npm install -g typescript@7. The npx fallbacks provision TypeScript 7 (#1672)
v0.303.1Bynk’s minimum Node.js version is now 22, the oldest release still supported (it was 18, which reached end of life in April 2025). bynk doctor warns below it, so its ok now means bynkc test --inspect works too. CI runs its test suites on Node 22 and now fails, rather than silently skipping, if the type-stripping check that --inspect depends on can’t run (#1674, #1671)
v0.303.0An unknown name or call in a test case or property body is now an error, as it is everywhere else. Test bodies were exempt, so a typo slipped through bynkc check unreported, and in a history property it reached test-module emission and panicked the compiler. A program that relied on the exemption no longer compiles. A rejected for all binding no longer echoes as an unknown name in the body (#1708)
v0.302.0Diagnostics recover past an error instead of stopping at it. An unknown name in one declaration no longer hides type errors in the others, including service and agent handler bodies. bynkc check reports every syntax error in a file, not just the first, and checks the declarations that did parse. A declaration that fails to parse no longer cascades into a wave of unknown-name and unknown-type errors at every reference to it (one missing comma in a record went from 21 diagnostics to 1). A pattern or let that fails to check still binds its names, so their uses do not echo as unknown names. Nothing with an error is ever emitted (#1663)
v0.301.1A record literal of a uses-commons type built in a context, or in a test of one, now type-checks under tsc. So does a uses-commons record nested in another crossing a boundary. The context’s brand on a rebranded type is now optional, so a plain commons value fits it while another context’s brand is still rejected. event-log gains write-path tests (#1704)
v0.301.0A context that consumes platform capabilities can now be tested. Under bynkc test, each one (Clock, Random, Secrets, Locale, Logger, Events, Idempotency, Kv, Fetch) is a deterministic test double, fresh per case. A stub overrides just the operations it names, and observation (expect Logger.info called once) works on platform seams. A case-scoped stub now applies to its own case only; before, it leaked into every case of the suite. sessions, webhook-relay and event-log gain handler tests, and every example’s suite now runs in CI (#291)
v0.300.0A call to a generic function or method that compares a type parameter with == must instantiate it with an equality-supporting type, directly or through other generics and units (same(f, h) on two functions is now rejected, #1688). The cross-context visibility rules now hold in service and agent handlers, agent invariants and transitions, provider operations and function contracts, not only in free-function bodies, and a consumer may build a transparent export with record syntax, as the spec says (#1700)
v0.299.1The doc gate now checks every bynk block in the Book: an un-headed block must compile inside a synthetic unit, and one marked fragment must parse (#1661), which fixed rotted examples (an inline store refinement, ++, a missing consumes bynk { Events }, misplaced exports). Every diagnostic code the compiler can emit is now asserted by a test except four that no compiler test can reach, and the new gated probe diagnostic_coverage holds that floor (#1662). The registry test scans every workspace crate, so bynk explain now knows bynk.fmt.*, bynk.wasm.* and bynk.deploy.contract_skew. Five unreachable diagnostic codes were removed (bynk.consumes.in_commons, bynk.types.opaque_record_construction, bynk.tier.property_has_tier, bynk.observe.outside_case, bynk.observe.bad_count), as were the symbol table’s duplicates of the parser’s outside_context checks; seven phantom codes in the docs now name real ones, and three stale notes were corrected
v0.299.0Every unreachable match arm is now an error, not only one after a leading wildcard (Some(_) then Some(Red), a trailing _ after every variant, an or-pattern overlap; guarded arms never cover) (#1656). User names can no longer collide with emitted names (#1653): host globals are reached as globalThis.X, runtime imports and codec helpers carry a __ prefix (__JsonValue, __serialise_T), shadowing parameters and pattern bindings get fresh names, and a payload field tag becomes $tag in TypeScript. A payload field named kind (bynk.resolve.reserved_payload_field) and any declaration named globalThis (bynk.resolve.reserved_host_name) are rejected
v0.298.0An expected type now flows from the other operand of ==/!= (#1659): o == None, None == o, r == Ok(7) and r != Err("x") are accepted. They were cannot_infer_…, or inside a suite, an Ok/Err read an unrelated Result[(), ValidationError]. A let annotation now decides what Ok/Err builds over the enclosing return type, so let r: Result[Int, String] = Ok(1) in a handler returning HttpResult builds a Result. One type now always decides what a bare Ok builds, so bynk.types.ambiguous_constructor is withdrawn. Every diagnostic a suite or integration suite raises now carries its file, line and span; they used to render as a bare [code] message (#696). Separately, a store Set’s element and a store Map’s or Cache’s key must be value-keyable: String, Int, or a refined or opaque type over them (bynk.store.unkeyable_key, #1680), the rule value Map keys and @indexed fields already follow. A record there was accepted and then failed tsc, since a store collection is keyed by its key’s string form. The rule also rejects an enum, Bool, Float, Instant or Duration element or key; key by a String or Int instead.
v0.297.0is bindings now flow where their test is known to have matched (#1654, type-system §2.3.6): into the right operand of && and implies (o is Some(v) && v > 0), and into the else of a negated test (if !(o is Some(v)) { 0 } else { v }). Both shapes were rejected with unknown name. if n is Q && m is Q { … m … } (refined Q) was accepted and then failed tsc (__r1 used out of scope); it now compiles. One rule decides where a binding is in scope, and the resolver, the checker and the emitter all read it. Separately, a --target workers build is now tsc-clean in two cases that failed before (#1655): compose.ts imports the runtime types a service parameter names (Option, Result, …), and the build no longer writes unit test modules that imported the bundle layout. Integration suites, which target the workers layout, are still written.
v0.296.0An Effect value in an effectful body must now be awaited in order: bound with <-, sequenced with do, returned, or passed to a parameter that takes it (#1658). Building one in a value position is the new error bynk.effect.unbound_effect. That covers a plain let (let e = Counter("k").bump(), let _ = …, an Effect-annotated let), a list element, and the payload of Some/Ok/Err, a variant or a record field. Effectful calls translate to eager promises, so such a call still ran, unawaited and racing the statements after it, with no diagnostic. Separately, a type named in a service or agent handler signature, a from websocket/from events service header, an agent’s key or store field type, a capability or provider operation signature, or an actor’s identity must now resolve, as in a fn signature (#1679). on call(v: Bogus) and Effect[Unit] (Bynk’s unit is ()) were accepted, and the emitter wrote a /* unknown */ placeholder; they are now bynk.resolve.unknown_type.
v0.295.0An Int is a JS safe integer, ±(2^53 − 1), at every entry point (#1657). An integer literal past 2^53 − 1 is bynk.lex.integer_overflow; it was accepted up to the 64-bit range and rounded, so 9007199254740993 == 9007199254740992. The JSON boundary rejects a number that isn’t a safe integer (1e300) on decode, and faults instead of writing null when encoding an Int that isn’t one, so a state commit of such a value is refused with nothing persisted. Int.parse and Float.parse take a strict full-string decimal grammar: " 7 ", "0x10" and "0b11" are None, and for Int so are "1e3" and "5."; a leading + is accepted, and "-0" parses as 0. Int division by zero is a runtime fault instead of Infinity/NaN, and round/floor/ceil/truncate fault when the result isn’t a safe integer. A WebSocket on open parameter must be constructible from String (bynk.service.websocket_param_not_stringy); an Int there was a query-string value cast as number, so room + 1 gave "51". Overflow in + - * stays documented imprecision. An agent whose stored state holds an Int outside the range now faults with RehydrationViolation on load, and must have that value corrected or its storage cleared once.
v0.294.0On the workers target an agent call now carries its arguments and result through the boundary codec (#1678). A call Agent(key).m(args) crosses the Durable Object’s fetch, and it used raw JSON.stringify both ways. So Bytes arrived as {"0":104,"1":105}, a value Map as {}, a record or list holding Bytes corrupted, and b.length() on a received Bytes gave NaN. Each agent now emits a wire table of serialise_*/deserialise_* pairs for its handlers’ parameters and results, the same codec a cross-context call uses. The stub’s proxy and the DO’s fetch both encode and decode through it, and the codec closure now includes agent handler types on workers. A decode failure is an internal fault. A held Connection, function, Stream or Query passes through unencoded, as before. bundle is unchanged. Proved on real workerd by workers_runtime_smoke.rs::agent_calls_use_the_boundary_codec_on_workerd.
v0.293.0Store collection keys named after Object.prototype members now behave like any other key (#1685). A store Map, Set or Cache is a plain object at runtime, so items.put("__proto__", 1) was silently dropped (an object value reassigned the record’s prototype, adding phantom keys), and contains, get and upsert read an inherited name such as constructor or toString as present. Keys often come from request input. Membership now uses Object.hasOwn, and a write that may create a key defines it (Object.defineProperty). This applies to every store op, held connection maps, and @indexed posting lists, where a field value of constructor or __proto__ threw a TypeError. The query groupBy, joinOn and leftJoin helpers, which crashed on the same keys, now hash into null-prototype objects. The stored shape is unchanged. Proved at runtime by the behavioural fixture 1685_store_keys_prototype; the baseline fixture now has no expected failures.
v0.292.0A Matches pattern must now be safe to backtrack (#1651). The catastrophic_regex guard caught only nested quantifiers ((a+)+). Ambiguous alternation (`(a
v0.291.0== is structural: records, sums, Option, Result, List, value Map and Bytes (including opaque) compare by value, and == on a type containing a function, Effect, Query, Stream or held Connection anywhere inside is rejected (bynk.types.not_comparable). Agent state is stored in the wire shape and decoded on load, so a store holding an enum, Option, Result, Bytes or value Map no longer faults with RehydrationViolation on every reload after its first write. An agent already bricked by that fault holds the old in-memory shape and must have its storage cleared once.
v0.290.2Behavioural fixtures: a positive fixture’s suites now run when it carries an expected_run.txt (bynkc/tests/behaviour_fixtures.rs; 71 fixtures marked). A strict marker pins known defects as expected failures. The bundle runtime’s InMemoryStorage now copies stored data on put/get (sharing live connection handles), so bynkc test sees workerd’s copy semantics and a commit refused by an invariant no longer leaks an in-place store write (ADR 0109).
v0.290.1Brings the project and package READMEs and the published crates’ Cargo.toml descriptions up to date with the implementation — one shared, dependency-accurate crate-layering diagram across every library README; the bynk driver’s full command set; corrected bynkc/bynk-emit/bynk-grammar Rust examples; and fixes to the vscode-bynk, tree-sitter-bynk, playground, runtime, and examples READMEs