Skip to content

feat(worker): add Flagship binding#979

Open
connyay wants to merge 1 commit intocloudflare:mainfrom
connyay:cjh-fun-with-flags
Open

feat(worker): add Flagship binding#979
connyay wants to merge 1 commit intocloudflare:mainfrom
connyay:cjh-fun-with-flags

Conversation

@connyay
Copy link
Copy Markdown
Contributor

@connyay connyay commented Apr 20, 2026

Adds first-class support for the Flagship feature-flag binding announced on 2026-04-17. Users can now evaluate flags via env.flagship("FLAGS") with a fluent EvaluationContext builder and typed EvaluationDetails<T> responses.

  • worker-sys: raw wasm_bindgen externs for all 9 Flagship JS methods
  • worker: Flagship wrapper, EvaluationContext builder, EvaluationDetails
  • test: mini-flagship miniflare mock + 10 handlers + 16 vitest specs
  • examples/flagship: runnable worker demoing value/details/context usage

Adds first-class support for the Flagship feature-flag binding announced
on 2026-04-17. Users can now evaluate flags via `env.flagship("FLAGS")`
with a fluent `EvaluationContext` builder and typed `EvaluationDetails<T>`
responses.

- worker-sys: raw wasm_bindgen externs for all 9 Flagship JS methods
- worker: Flagship wrapper, EvaluationContext builder, EvaluationDetails<T>
- test: mini-flagship miniflare mock + 10 handlers + 16 vitest specs
- examples/flagship: runnable worker demoing value/details/context usage
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant