Expand description
One binding model per build (back-half paydown 1C.1a, Decisions A to E of #4031).
WorkerBindings holds every binding each context’s Worker declares, in
the order its wrangler.toml lists them, and each Worker’s own list (its
members’ merged). It is derived once from the ComposePlan and the
checked unit tables by WorkerBindings::derive; nothing else computes
which bindings a Worker has.
The vocabulary (BindingSource, WorkerBinding) stays in
bynk-check, which needs it for the duplicate-binding diagnostics. The
model, its derivation and its order are the emitter’s. The order is a
stable sort by rank, one exhaustive match, so a new kind of binding
fails to compile until it is placed, rather than being silently left out of
wrangler.toml.
Structs§
- Worker
Binding - One binding a Worker declares: the name its
envfield and itswrangler.tomlentry share, and where that name came from. - Worker
Bindings - Every binding of every Worker in a build.
Enums§
- Binding
Source - What put a binding into a Worker’s
wrangler.toml: the source abynk.context.duplicate_bindingdiagnostic names.
Functions§
- service_
binding - The Service Binding to context
target’s Worker. - singleton_
binding - #3300: the binding of
bynk.cloudflare’s one-per-Worker capabilitycapability(Version→CF_VERSION_METADATA), by the registry’s fixed name. Its one TypeScript read is the default of its provider’sbindingparameter incloudflare.binding.ts.