v0.371.2
Released on 19 October 2026 as v0.371.2, with the increments from v0.330.5 to v0.371.2. See Upgrading for what to change when you move to it.
| Version | Highlights |
|---|---|
| v0.371.2 | Hover and completion on run.id see an is test’s bindings where the checker does: on the right of && and implies, and in an if’s else block for a negated test. bynk.test.remote_clock_dependent no longer warns when a match arm, a lambda parameter or an is binding rebinds a constant’s name to a run value (#2181) |
| v0.371.1 | run.id is fresh for every bynk test --against run, even with BYNK_TEST_RUN_ID left in the environment. bynk.test.remote_clock_dependent now follows run-derived instants through calls and checks every expect in a case, including those in if and match arms and after a let … else. Hover and completion on run.id respect every binder that shadows run (#2175) |
| v0.371.0 | A test case reads run.id, the run’s identity — "local" in process, fresh for each bynk test --against run — so data a case creates on a shared deployment doesn’t collide with an earlier run’s. Under --against, an expect comparing an Instant built from a constant warns (bynk.test.remote_clock_dependent). New guide, Testing against a running system (#2138) |
| v0.370.0 | Under bynk test --against, a failing expect is retried until it holds or --settle expires (default 5s, 0 for none). Before each retry, the runner re-runs the addresses since the last unsafe one (anything but GET, HEAD or OPTIONS); an unsafe address never runs twice. --format json reports each case’s retries (#2138) |
| v0.369.0 | bynk test --against dev runs the system suites, unchanged, against a local bynk dev it starts itself, one per distinct env. It applies each env and the declared secrets as -- --var, waits for the --ready-json file, accepts only loopback URLs, and stops each session by its own pid. bynkc test --against dev is refused, because only bynk can start bynk dev (#2138) |
| v0.368.0 | On an actor-sum route, the system driver now sends the credential of the member the case acts as (a token for a Bearer member, a signature for a Signature member, nothing for Visitor), instead of the primary member’s. A system case can now call a sum route as any member, and by Nobody, by Forged and by Stale work on a sum with a Signature member. bynk.test.signature_needs_in_process is retired, and a forged signature is now made with a secret derived from the real one (#2155) |
| v0.367.0 | bynk test --against <name> runs the system suites, unchanged, against a deployment named under [test.targets] in bynk.toml. Each Worker’s URL comes from the target, and its secrets come from the environment. A bare URL, an unknown name, a production = true target and a missing secret are refused before any request. A case a real runtime can’t honour, or whose env disagrees with the target’s vars, is refused with a bynk.test.remote_unsupported_* diagnostic, or skipped under --skip-unsupported. --format json gains transport, plus skipped when a case is skipped (#2138) |
| v0.366.0 | bynk dev --ready-json FILE writes { "<worker>": "<url>" } to FILE once every served context answers an HTTP probe, so a test runner or CI script waits for the file instead of looping on a warm-up request; the file is removed when the session starts and when it stops (#2138) |
| v0.365.0 | A system-tier case can now call a route whose actor is a Signature (HMAC webhook) actor. The driver signs each call as the actor declares, over exactly the bytes it sends, with the suite’s env entry for the secret or a fixed test secret, and the Worker’s real seam verifies it. by Nobody now also works on such a route, and the new reserved principals by Forged (a wrong secret) and by Stale (tolerance + 60 seconds old) drive the seam to Rejected(Unauthorized). New diagnostics bynk.test.forged_needs_signature_route, bynk.test.forged_needs_system and bynk.test.stale_needs_timestamp; bynk.test.signature_needs_in_process now covers only a Signature member of an actor sum (#2135) |
| v0.364.0 | A suite or case can give its participants variables and secrets with env { NAME = "value" … }. At system the entries go on each participant’s Worker env; at unit/integration they are what the Secrets double answers. A case’s env layers over its suite’s, and an entry naming a Bearer actor’s secret is the one the system driver signs with. New diagnostics bynk.suite.duplicate_env, bynk.suite.env_not_literal and bynk.suite.env_binding_clash (#2134) |
| v0.363.0 | A test case moves a harness clock with advance Clock by <Duration>. Each case’s clock starts at the epoch, the Clock double reads it at unit and integration, and at system every participant’s first-party Clock now reads it instead of wall-clock time, so a time-dependent case promotes unchanged. New diagnostics bynk.test.advance_outside_case, bynk.test.advance_not_clock and bynk.test.advance_not_duration (#2137) |
| v0.362.0 | A system-tier case runs a cron handler with svc.schedule(…) through the Worker’s real scheduled entry and delivers a queue message with q.message(m) through its real queue entry, after a JSON round trip; each address yields the handler’s own result, and a queue-only target now qualifies for system. bynk.test.schedule_needs_in_process and bynk.test.message_needs_in_process are retired, and the drivers of one system case now share its harness, so a later call reads what an earlier one wrote (#2136) |
| v0.361.3 | In vscode.dev and github.dev, the VS Code extension now analyses each workspace folder that has a bynk.toml as a whole project. It reads the folder through vscode.workspace.fs and runs the new bynk-wasm entry points bynk_analyze_project, bynk_hover_project and bynk_complete_project, which use bynk_emit::project::analyse_in_memory_project. A uses of a sibling unit resolves, every file’s diagnostics are published, and the status bar reads Bynk (web). A file outside any project is still analysed on its own (#2102). |
| v0.361.2 | Extract-function re-checks its edit before offering it, refuses a selection containing ?, and says why a capability-using selection can’t be extracted |
| v0.361.1 | A system-tier case that calls a route whose actor is Oidc-secured is now bynk.test.oidc_needs_in_process, instead of passing check and sending a request with no token that the seam can only refuse; the system driver has no Oidc token issuer yet, so call such a route from a unit or integration case |
| v0.361.0 | bynkc compile always writes out/package.json declaring "type": "module" (beside any adapter npm dependencies), so tsc -p out/tsconfig.json with emit on builds the output as ES modules rather than CommonJS: a declaration named require or (under TypeScript 7) Object no longer fails with TS2441, and a hand-written binding is checked under the ES-module rules Node runs it with, so an extensionless relative import is a tsc error (TS2835) instead of a run-time ERR_MODULE_NOT_FOUND (#2148) |
| v0.360.1 | A system-tier case that calls a route whose actor is Signature-secured is now bynk.test.signature_needs_in_process, instead of passing check and sending an unsigned request the seam can only refuse; the system driver has no Signature signer yet, so call such a route from a unit or integration case |
| v0.360.0 | The language server offers a generate-provider-stub action that scaffolds provides Cap = CapImpl { … } for a capability nothing in its context provides, with each operation’s body a typed default |
| v0.359.2 | bynkc test compiles the emitted TypeScript to ES modules, so a declaration named Object or require no longer fails tsc with TS2441 (“Compiler reserves name … in top level scope of a module”); tsc had been down-levelling the output to CommonJS, whose transform reserves those names (#2146) |
| v0.359.1 | The VS Code extension runs in vscode.dev and github.dev. A browser entry starts a web-worker language server over bynk-wasm’s bynk_analyze, bynk_hover and bynk_complete, giving diagnostics, hover and completion for each open .bynk file on its own (status bar Bynk (web, single-file)). Node-only commands carry !isWeb. The three wasm entry points take an optional platform name, and the web worker passes cloudflare, as bynkc-lsp analyses (#2102). |
| v0.359.0 | The language server offers an inline-variable refactor (refactor.inline) that replaces a pure let binding’s uses with its initialiser and deletes the let |
| v0.358.1 | The VS Code project sidebar and live model views catch up with a slow analysis round after a save or an external change. When no diagnostics arrive to signal the round, they re-check on a backing-off schedule for about 30 s. A file open in the editor that changes on disk now also counts as an external change |
| v0.358.0 | bynk test --coverage --format json lists each file’s covered_lines beside uncovered, and keeps paths project-relative under bynk test .; VS Code’s Testing view gains Run with Coverage |
| v0.357.0 | The language server offers a fill-match-arms quick fix for a non-exhaustive match, inserting each missing arm with a typed default body, and resolves its edit lazily through codeAction/resolve |
| v0.356.3 | VS Code: Bynk: Doctor shows the bynk doctor --format json readiness checklist with one-click remedies, and test, debug and dev-server failures on a missing tool offer Run Doctor |
| v0.356.2 | The VS Code extension has a Bynk project sidebar. An activity-bar view lists the project’s contexts, commons, adapters and tests, each expanding to its consumes edges in both directions and its declarations, every node click-to-source, with inline sequence-diagram and wire-contract actions on handlers. It is built from bynk/architectureModel and refreshes on the bynk.views.refresh trigger |
| v0.356.1 | VS Code: Bynk: Deploy… shows the bynk deploy --dry-run plan for a chosen environment and scope, then runs bynk deploy in a terminal with the driver’s own confirmation; Bynk: Show Deploy Plan previews only |
| v0.356.0 | bynk.toml gets editor support from a JSON Schema at https://bynk-lang.org/schemas/bynk.toml.json, generated from the manifest’s Rust types by cargo xtask manifest-schema and associated with bynk.toml by the VS Code extension, so a schema-aware TOML extension completes, documents and validates every table and key |
| v0.355.0 | The language server offers a fix-all source action (source.fixAll.bynk) that applies every machine-applicable diagnostic fix in a file, runnable on save through editor.codeActionsOnSave |
| v0.354.0 | bynk dev --format json writes one lifecycle event per line (serving with each context’s ports, rebuilding, rebuild_ok, rebuild_failed, stopped); VS Code gains Bynk: Start/Stop/Restart Dev Server, a bynk: dev task and a status-bar item with each context’s URL |
| v0.353.4 | A system-tier case that runs a cron handler with svc.schedule(…) or delivers a queue message with svc.message(…) is now bynk.test.schedule_needs_in_process or bynk.test.message_needs_in_process, even when the target also exposes an http service, instead of passing check and emitting TypeScript that tsc rejects; run such a case as integration |
| v0.353.3 | The VS Code model views (sequence diagram, documentation, architecture map, wire contract) are live. They refresh on save (bynk.views.refresh: onSave, onType or manual), the sequence and wire-contract views follow the cursor between handlers unless pinned, open views are restored after a window reload, and each view has an editor title-bar button and an opt-in Wire contract handler CodeLens (bynk.viewsCodeLens) |
| v0.353.2 | bynk test --inspect takes a free inspector port when Node’s default 9229 is already in use, instead of running the tests with no inspector; the VS Code extension’s Debug Tests no longer fails when another process holds 9229 |
| v0.353.1 | Renaming or moving a folder of .bynk files in the editor now updates the units it holds and every uses/consumes reference to them, as a single-file rename already did; a move into another project is left alone |
| v0.353.0 | The language server offers an organise uses/consumes source action (source.organizeImports), runnable on save through editor.codeActionsOnSave |
| v0.352.2 | VS Code: the bynk.testCodeLens setting now says Run Test and Debug Test each target just that case (bynk test --case); the messages semantic token gets a theme fallback (entity.name.type.struct) and the README lists all seven token types; and new snippets cover asset declarations (with and without at) and tiered suites and cases (`suite … as unit |
| v0.352.1 | The playground converts between editor (UTF-16) and compiler (UTF-8 byte) offsets, so hover, completion and diagnostic squiggles stay in place after non-ASCII text |
| v0.352.0 | A diagnostic with a curated explanation offers an Explain quick fix in VS Code that shows the installed compiler’s own explanation in a panel, offline, served by the new bynk/explain language-server request; Bynk: Explain Diagnostic Code… looks up any code |
| v0.351.2 | A Dev Container feature, ghcr.io/bynk-lang/features/bynk, installs bynk, bynkc and bynkc-lsp from one checksum-verified release plus wrangler@4 and TypeScript, and the repo ships a .devcontainer/ for contributors |
| v0.351.1 | The VS Code extension highlights bynk fenced code blocks (backtick or tilde fences) in Markdown files with the Bynk grammar; editor only, the built-in Markdown preview is unchanged |
| v0.351.0 | Bytes gains concat, slice (clamped like String.slice), compare (unsigned lexicographic, -1/0/1), toHex and toBase64Url, plus the partial statics Bytes.fromHex and Bytes.fromBase64Url. Bytes stays unorderable |
| v0.350.1 | A value of a consumed context’s record whose field is an unexported opaque type that another context also declares by name now crosses a consumed service’s boundary, instead of being refused with structural_mismatch |
| v0.350.0 | A call to a consumed context’s service whose signature names a type that context consumes (isDomestic(o: Order), Order from a third context) now checks and runs for every caller, system suites included. A caller must consume every context that a called service’s signature types reach (bynk.consumes.signature_type_unconsumed); this also refuses a call such as shop.order.place, returning shop.order’s own Order with a shop.base field, from a caller that does not consume shop.base. That call compiled on bundle but failed tsc on workers. The X-Bynk-Contract hash of every service whose signature names a consumed context’s type now describes that type’s shape, so it moves for services that already worked; redeploy both Workers of such a pair together, or the call answers ContractMismatch |
| v0.349.4 | On the bundle target, a cross-context argument at a generic parameter that names a user type, such as List[Line] or Map[String, Line], is cast to the callee’s type, so a caller’s own commons values pass tsc |
| v0.349.3 | On workers, a cross-context call argument of a named type is cast to the callee’s type, so a caller’s own commons values built into it, such as Map.empty() in a field of a consumed record, pass tsc |
| v0.349.2 | A test case’s Json.encode/Json.decode[T] on a consumed context’s type now runs, its generated codecs naming the type through that context, instead of failing tsc |
| v0.349.1 | A test case that names a consumed context’s nullary variant bare (Domestic for Region.Domestic) now runs, as the same name does in a handler, instead of failing tsc |
| v0.349.0 | A test case delivers an event to a from Events(E) service with svc.event(e) or svc.event(e, env), honouring its pattern filter and via schema(N) guard |
| v0.348.1 | A literal set on a consumed context’s refined field (Item { code: 1, … } for ev.store’s Code) is now cast to ev_store.Code under the namespace the module already imports, instead of a bare Code it never imported, which failed tsc with TS2304 |
| v0.348.0 | A refined literal in a field of a generic record passed to a cross-context call (Page { items: [250] } for a Page[Cents] parameter), or in a record literal that also has a shorthand field, is admitted against the callee’s own declaration, as other nested literals are, so it crosses from a caller with its own type of that name; a shorthand field is checked by its binding’s type |
| v0.347.1 | On workers, a context imports a consumed context’s types type-only (import { type Receipt }) and builds that context’s sum variants inline (({ tag: "Held", reason } as Status)), so the callee’s module stays out of the caller’s Worker bundle; a consumed type with attached methods still imports as a value |
| v0.347.0 | A refined literal nested in a cross-context argument, in an Option/Result payload, a list element or a record field (t.pay.maybe(Some(250))), is admitted against the callee’s own declaration, as a direct literal is, so it crosses from a caller with no uses of the declaring commons or with its own type of that name; an empty [], None, List.empty() or Map.empty() passed positionally takes its parameter’s type and crosses from such a caller too |
| v0.346.12 | The editor now reports a non-additive event change against the committed bynk.schema.lock as bynk.event.non_additive_schema_change, as bynk check does: the language server reads the lock read-only, caches it by its modification stamp, re-reads it when it changes (a new **/bynk.schema.lock file watcher), and passes it to bynk_ide::diagnose_project_with, whose new schema_lock argument bynk_check::analysis::analyse_project now also takes (#2081). |
| v0.346.11 | The formatter’s comment-slot test pins its refusal counts per fixture, in bynk-fmt/tests/comment_slots/, so adding a fixture adds its own pin file instead of editing one shared count |
| v0.346.10 | A non-additive event change now fails bynkc check and bynkc test (and bynk check/bynk test) with bynk.event.non_additive_schema_change, as it already failed bynkc compile, bynk dev and bynk deploy: both reconcile events against the committed bynk.schema.lock read-only and never write it, so an additive change passes and the next build records it (#2078). |
| v0.346.9 | A new Worker’s first bynk deploy now uploads its secrets with its code (wrangler deploy --secrets-file, from a 0600 temporary file deleted when the upload ends, even if bynk gets Ctrl-C or SIGTERM, with a SIGKILLed run’s file removed by the next deploy), so the Worker is never live without them; it used to set them about four seconds after the upload. A redeploy still sets them first with wrangler secret put. Each secret set now prints a bynk: set secret line naming it and the Worker (api-staging under --env staging), never its value, beside the “already set, skipping” line, and a wrangler older than 4.74.0 falls back to the old order and says so. A run that includes a new Worker refuses a -- --secrets-file passthrough (#2055). Test stand-in binaries are now written by a child process, which fixes intermittent Text file busy failures (#2064). |
| v0.346.8 | bynk deploy --context now also refuses a callee whose new build no longer provides the contract a live caller was compiled against (bynk.deploy.contract_skew), naming each caller, the service and both hashes, before the plan and under --dry-run; bynk.deploy.lock records each Worker’s expects beside what it provides, and a caller recorded before that is warned of, not refused (#2077). |
| v0.346.7 | A Worker’s fault handlers (fetch, which covers /_bynk/call/ and /_bynk/event/, and the queue consumer) log the error’s stack, `e instanceof Error ? (e.stack |
| v0.346.6 | The dev_inspect workerd test and the VS Code extension’s two workerd debug tests stop only the wrangler dev process group they started, instead of running pkill -f workerd. That command killed every workerd on the machine, while the wrangler it had started (and the workerd that one respawned) leaked. dev_inspect also asks the OS for free ports instead of deriving them from its pid (#2069). |
| v0.346.5 | A unit or integration test case whose agent or service handler emits now runs, and expect Events.emit called once observes the release (the test deps carry __eventsDispatch) |
| v0.346.4 | A test now pins that every internal path a Worker answers (/_bynk/call/, /_bynk/event/) checks the caller’s signature before anything else that can answer, so an unauthenticated request gets a bare 401 and never the 409 ContractMismatch body that names the expected hash; that body is unchanged (#2054). |
| v0.346.3 | Under bynk deploy --env staging, every command a deploy message suggests repeats the environment (bynk deploy --env staging, bynk deploy --env staging --force), where a plain bynk deploy would have deployed the default environment, and every deploy message that names a Worker (the contract-skew refusal, edge-key and secret notices, the progress line, a failed push, the foreign caller hand-off) names the deployed -staging Worker, as the plan does (#2047). |
| v0.346.2 | bynk deploy re-runs the cross-environment KV title check when it re-creates a namespace whose recorded id has gone from the account, and stops with the same message before wrangler kv namespace create, where the plan-time check could not see the re-create and wrangler failed with code 10014. At that deploy-time re-check only, another environment’s recorded namespace whose id has gone no longer holds its title unless the source still declares it there. The plan-time check still counts every recorded namespace: clear a stale orphan with bynk deploy --prune in its own environment, or by removing it from bynk.deploy.lock (#2059). |
| v0.346.1 | On workers, a consumed context’s type on a context’s own boundary (on call(b: Batch)) type-checks — handlers.ts re-exports it as export { type Batch } for compose.ts’s handlers.Batch and generates its codecs even when nothing calls the consumed context |
| v0.346.0 | A literal passed straight to a cross-context call is admitted to the parameter’s refined type, checked against the callee’s own declaration, so t.pay.charge(250) for cents: Cents checks in a system case and from a consuming context, with or without uses of the declaring commons, instead of failing as bynk.boundary.structural_mismatch; a literal outside the callee’s refinement is bynk.refine.literal_violates, and a plain Int or a caller’s own same-named type still does not cross |
| v0.345.2 | bynk deploy refuses, before the plan and under --dry-run too, a KV namespace it would create whose title another environment in bynk.deploy.lock already holds or would create (Worker shop’s bare namespace under --env staging and its capability Staging in the default environment are both shop-staging), naming both namespaces and both environments, where it compared titles within one environment only and left the clash to fail at wrangler kv namespace create (#2048). |
| v0.345.1 | Under bynk deploy --env staging, the --context refusal for a binding target that has never been deployed (now naming shop-orders-staging and shop-payment-staging) and a failed run’s N further contexts were not deployed list name each Worker as the plan does, -staging, where they printed the bare names; the deploy guide now says that --format json’s orphans.workers and orphans.queues hold account names while orphans.kv holds ledger keys (#2038). |
| v0.345.0 | In a test case, a route guarded by a refinement actor takes by Admin("root") with the base actor’s identity, and a system case signs the claims the refinement checks; a route guarded by an actor sum (`by who: User |
| v0.344.1 | Under bynk deploy --env <name>, the bare Kv namespace is created as <worker>-<name> (kv create shop-cart-staging), where it reused the default environment’s title shop-cart, which Cloudflare refuses as a duplicate on the same account. The default environment’s titles are unchanged, and a namespace whose id bynk.deploy.lock already records for the environment is reused, not recreated (#2037). |
| v0.344.0 | A stub in a system-tier case, or at the scope of a suite that runs system cases, is now bynk.stub.at_system instead of being accepted and ignored, since each context runs as the Worker it deploys as and builds its own capability providers; keep a case that needs a stubbed seam at unit or integration |
| v0.343.3 | On Workers, a context’s codec for a list, option, map or generic record of a commons type names the type unbranded (__CommonsLine), so a subscriber’s codec for an event like { lines: List[Line] }, or a caller’s codec for a consumed record with such a field, accepts the other context’s Line and passes tsc |
| v0.343.2 | bynk deploy --dry-run --env staging names the Workers, Service Binding targets and queues a staging deploy creates (deploy shop-orders-staging, order shop-payment-staging → shop-orders-staging, queue create job-intake-staging), in text and in --format json (order, each context’s worker, binds_to and queues, and orphaned queues and Workers), where it printed the bare names. The deploy itself already pushed -<env> Workers; it now states the Worker’s name in the generated [env.<env>] block, from the same function the plan uses, rather than leaving it to Wrangler’s default, which is the same name (#2028). |
| v0.343.1 | A test case’s let named like a service, agent or asset of the unit under test (let level <- Counter("a").bump() beside service level), or re-binding a property’s for all binder, now shadows it in the emitted test instead of redeclaring the runner’s own binding and failing tsc (TS2451) (#2024) |
| v0.343.0 | A context that declares a foreign caller now gets a typed TypeScript client, workers/<worker>/bynk-client.ts, which a Worker that is not Bynk imports to call it: one typed function per service its actor may call (connect({ caller: "Billing", binding: env.LEDGER, env }).lookup(id)), the boundary types as TypeScript types, and the contract hashes and wire version embedded, so a signature change, a call the actor is not admitted to, or a runtime package for another wire version fails tsc in the caller’s build. It signs as the declared foreign caller and encodes and decodes with the codec a Bynk caller uses, through the new runtime package @bynk/wire-client, which is bundled from the runtime’s own boundary modules and versioned with the wire format. bynk-contracts.json records, under foreign, the hashes each foreign caller may call the context at, and the deploy record keeps them. A project pins them per caller in bynk.foreign.toml, and bynk deploy refuses a build that breaks a pin (bynk.deploy.foreign_contract_skew) until the pin is updated. See TypeScript client and Adopt Bynk beside a TypeScript Worker |
| v0.342.1 | bynk.history.restates_invariant now also catches a history property whose predicate restates a declared transition or invariant written with is (e.g. run.all((s) => s.old.status is Closed implies s.new.status is Closed)), as ADR 0155 and the testing reference already said it did (#2018) |
| v0.342.0 | The checker refuses a ~> send in an agent handler, which checked clean and then failed tsc because an agent handler’s deps has no __exec: a store operation such as ~> count.update(f) is bynk.send.store_op, since a store write is part of the handler’s atomic commit (write do count.update(f)), and any other send, a capability call or another agent’s handler, is bynk.send.in_agent_handler (await it with let _ <- … or do …) |
| v0.341.0 | A context can admit on call callers that are not Bynk by declaring each as an actor with the new Foreign scheme, actor Ledger { auth = Foreign(secret = "LEDGER_CALL_KEY", worker = "ledger-svc") }, and naming it in a handler’s by clause, alone or in a sum such as `by who: Caller |
| v0.340.1 | The language server colours a local’s definition as a declaration, and find-references and rename no longer count a shadowing let as a use of the binding it shadows |
| v0.340.0 | Every cross-context call and event delivery is now signed with HMAC-SHA256 under a key one caller shares with one callee (BYNK_CALL_TO_<CALLEE> on the caller, BYNK_CALL_FROM_<CALLER> on the callee), replacing the shared BYNK_CALL_SECRET. A Worker refuses an internal request whose signature does not verify for the caller it names (401), or whose body is over 1 MiB (413), before anything else, so a context can claim only its own name. bynk deploy mints one key per edge and sets it on both ends; bynk dev and bynk test use a fixed local key. The wire format documents the signing input. Breaking for deployed projects: redeploy the whole project once (bynk deploy, not --context); BYNK_CALL_SECRET is no longer read and can be deleted |
| v0.339.0 | let <pattern> = value else { … } (and <- for an effect’s result) binds a pattern’s names for the rest of the block, and yields the else block, or the arms of else match { … }, when the value does not match, so a chain of fallible steps reads top to bottom with each failure handled beside its step |
| v0.338.0 | The cross-context call format is published as wire format version 1, generated from the compiler and versioned on its own, and callers now send X-Bynk-Wire: 1. A /_bynk/call/ request that is not a POST gets 405, malformed JSON gets 400 MalformedJson instead of a 500, and an unsupported X-Bynk-Wire gets 400 UnsupportedWireVersion. A record field’s inline refinement (qty: Int where Positive) is now checked when the record is decoded, at a call boundary or in an HTTP body, and is part of the contract hash; a Duration field must be a whole number of milliseconds, and sending a Duration or Instant outside the safe-integer range now faults in the sender (as an Int already did) instead of being passed on. Breaking for deployed projects: contracts with an inline field refinement change hash, so redeploy the whole project once. Tightening an inline field refinement later also makes stored records that break it fail to load |
| v0.337.0 | An as integration case runs a consumed adapter’s real binding, its own given capabilities taking the tier’s doubles and stubs; a suite on an adapter runs the binding at every tier; and a case can call a capability it reaches directly (let s <- Greeter.hello("ann")) |
| v0.336.0 | A test case’s service call is typed by its handler’s return type, so Ok(v) binds v with the handler’s result type and its methods check (#1934). A system-tier call with a Wire(…) argument, by Nobody, or a method with no handler yields the new HttpOutcome[T] (Rejected(…) before the handler ran, Handled(…) after), whose kinds are checked and whose body and path rejections carry a detail string. A queue verdict is matchable (Retry(reason)), and bynk.test.untyped_outcome is retired |
| v0.335.1 | Experimental bynk.cloudflare Service calls a Worker outside the project over a Service Binding, capability Billing = Service @worker("legacy-billing") (bound as SERVICE_BILLING); bynk deploy binds it without provisioning and warns when the Worker is missing from the account, and bynk dev binds a local stand-in unless --local-worker legacy-billing names it. bynk deploy --format json gains a per-context foreign_services list (additive) |
| v0.335.0 | Every cross-context call and event delivery now carries the deployment’s call secret BYNK_CALL_SECRET in an X-Bynk-Call-Secret header, and a Worker refuses a /_bynk/call/ or /_bynk/event/ request without it (401, before anything else), because those paths answered on the Worker’s public workers.dev address and anyone could call an on call service claiming any caller. bynk deploy mints the secret and sets it on every context, bynk dev and bynk test use a fixed local value. Breaking for deployed projects: redeploy the whole project once (bynk deploy, not --context), since until every Worker holds the secret, calls between old and new Workers fail |
| v0.334.0 | In a test case, a svc.call(…) outcome takes the handler’s declared type, so expect r == Ok("a") checks; a by c: Caller handler called without by Caller("…") is bynk.test.actor_identity_required; and a handler that sends with ~> runs at every tier, its sends awaited before the case’s expectations |
| v0.333.6 | A fold over a collected store map’s .entries no longer names an unimported MapEntry type, and .keys/.entries over a map keyed by an opaque or refined type now yield that branded key type, so both pass tsc |
| v0.333.5 | A SIGINT or SIGTERM sent to bynk dev itself now stops its wrangler and workerd processes before it exits, instead of leaving them running with their ports bound |
| v0.333.4 | A Worker binds only the contexts it calls, so an event subscriber that consumes its publisher for the event type no longer forms a Service Binding cycle that bynk deploy refuses; a subscriber that also calls its publisher is still refused, now with the cause named |
| v0.333.3 | bynk-secrets.json no longer claims a complete read list it does not have (closes #1976): literal Secrets.get names in provides bodies — including providers reached through given — and in agent handlers are collected into read, a Worker that composes an adapter provider given Secrets is marked read_complete: false because its TypeScript binding’s reads cannot be seen, and bynk deploy’s secrets incomplete line no longer blames a computed name for both |
| v0.333.2 | bynk dev with two or more contexts now starts without --inspect: each context gets its own inspector port instead of all racing for 9229, and a wrangler resolved via npx is installed once before the contexts start |
| v0.333.1 | An agent handler that calls a consumed context’s service (Alias.service(…)) or constructs another agent now works on the Workers target, reaching the Service Binding and the agent’s namespace through the Durable Object’s own env, instead of reading deps.surface and faulting with a TypeError |
| v0.333.0 | A field read on a value of a consumed context’s type is checked — rejected for an exports opaque type (bynk.context.opaque_inspection), typed against the providing context’s declaration for an unexported one, and rejected as bynk.boundary.ambiguous_type where two consumed contexts declare the name differently |
| v0.332.3 | A diagnostic’s secondary label into a standard-library unit (such as bynk.resolve.missing_field’s “field declared here” pointing at Request in bynk.bynk) renders in a snippet of that unit’s own source instead of underlining unrelated code in the user’s file, and a label in another file after non-ASCII text no longer gets a wrong header or panics the renderer |
| v0.332.2 | bynk deploy provisions, records and binds a KV namespace per derived capability (capability Sessions = Kv, titled shop-cart-sessions), and plans a removed or renamed instance as an orphan; bynk dev --remote binds every instance. Breaking (machine output): in bynk deploy --format json, a context’s kv is now a list of {binding, action, namespace} (empty, not null, without KV), and each orphans.kv entry is {worker, binding?} rather than a bare worker name. Ledgers and configs of projects with only the bare Kv are unchanged |
| v0.332.1 | An increment acknowledges a gated greenfield-status probe it moves in its pending file’s probes key, and the merge-time stamp rewrites design/greenfield-status.md, so parallel PRs no longer conflict on the table |
| v0.332.0 | A derived capability, capability Sessions = Kv, is a distinct instance of a platform resource with its own Worker binding (KV_SESSIONS); bynk deploy does not provision instances yet |
| v0.331.0 | Standard-library items are stable or experimental, with an [unstable] allow opt-in in bynk.toml; a match on the extensible FetchError or Method needs a wildcard |
| v0.330.16 | A system-tier suite stands up every subscriber to a participant’s events and gives each participant its own in-memory Kv namespace per case, so an emitted event is delivered and a Kv call works instead of faulting |
| v0.330.15 | Every place the compiler reads a Worker binding by name now gets the name from the binding’s constructor, and a test pins bynk.cloudflare’s env.KV read to KV_BINDING_NAME |
| v0.330.14 | A handler’s Workers deps.env type is built from the Worker’s binding list and names only consumed contexts with services, so a bare consumes bynk beside a cross-context call no longer fails tsc --strict |
| v0.330.13 | A value of a type a consumed context does not export can now be passed back to that context: let b <- shop.quote() then shop.take(b) was rejected as a bynk.boundary.structural_mismatch against its own declaration. A service or capability return that the caller’s own type of the same name cannot hold, because the shapes differ, is now rejected at the call with bynk.boundary.structural_mismatch, where before the caller’s type silently typed the value and its fields (#1941) |
| v0.330.12 | First-party units are injected from a registry in bynk-std, following each unit’s own uses/consumes; emitted output is unchanged |
| v0.330.11 | A Worker’s Env interface now declares exactly the bindings in its wrangler.toml, including the Service Bindings to its event subscribers |
| v0.330.10 | On the workers target, a context calling a service whose signature carries a commons type the caller does not uses, or a type the providing context does not export, now compiles: the caller imports the commons’ codecs or generates its own under the names the call uses. Both failed tsc before, though the checker and the bundle target accepted them (#1932) |
| v0.330.9 | The first-party standard-library sources move into a new data-only bynk-std crate; emitted output is unchanged |
| v0.330.8 | A Workers build reports two bindings with one name in a Worker’s wrangler.toml, such as an agent Kv and the bynk.cloudflare KV namespace (both KV), as bynk.context.duplicate_binding |
| v0.330.7 | A method on an asset’s url written on the chain (sheet.url.startsWith("/")) checks in a context and its test suites, as it already did in a commons. It was misread as a call into a context named sheet.url (bynk.resolve.unconsumed_context) (#1930) |
| v0.330.6 | In a test case, matching or testing a service call’s outcome binds the fixed type of a variant’s payload (Raw(body, contentType) binds Bytes and String, a message or redirect variant String), so its methods work. The match’s arms are now checked, and the match has their type when they agree, and a method on a payload of the handler’s result type is bynk.test.untyped_outcome instead of TypeScript that failed tsc (#1931) |
| v0.330.5 | A local function, asset, service, agent or provider named like a type the unit imports with uses hides that type: writing the type’s name, or constructing one of its variants bare, is bynk.uses.name_conflict, while its values still flow through; one named like a type a consumed context exports is bynk.consumes.name_conflict. The checker accepted both, and the emitted TypeScript failed tsc (#1927) |