Skip to content

chore(release): version SDK packages - #31

Merged
akshitsinha merged 1 commit into
mainfrom
changeset-release/main
Aug 10, 2026
Merged

chore(release): version SDK packages#31
akshitsinha merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@cloudflare/flagship@0.5.0

Minor Changes

  • #30 6f75421 Thanks @akshitsinha! - Add an injectable fetch transport and caller AbortSignal propagation to FlagshipClient

    • FlagshipProviderOptions.fetch?: typeof globalThis.fetch sets the transport for a client. It defaults to globalThis.fetch, resolved at call time, and the SDK never assigns to the global — so routing evaluations through a Workers service binding or stubbing the transport in tests no longer requires mutating globalThis.fetch and exposing unrelated traffic in the same isolate.
    • evaluate(flagKey, context, { fetch?, signal? }) adds per-call overrides. signal is merged with the request timeout and with fetchOptions.signal (previously silently discarded), so a caller abort now aborts the in-flight HTTP request instead of only abandoning the promise. An already-aborted signal rejects without issuing a request.
    • New FlagshipErrorCode.ABORTED distinguishes caller cancellation from TIMEOUT_ERROR. Caller aborts interrupt in-flight requests and retry delays and are never retried; timeout aborts are still retried as before.
    • New FlagshipError.retryable reports whether a failure was transient. 408, 425, 429, 5xx, connection failures, timeouts, and malformed bodies are retryable; other non-2xx responses (400, 401, 403, 404, 422, …) and caller aborts are terminal. This lets consumers implement fail-closed-without-caching instead of guessing from NETWORK_ERROR alone.
    • FlagshipServerProvider and FlagshipClientProvider accept and forward fetch in HTTP mode; combining it with binding throws like the other HTTP-only options.

    Behaviour changes for existing callers, who are otherwise unaffected:

    • Previously every non-2xx except 400 and 404 was retried. Definitively terminal statuses such as 401, 403, and 422 are now propagated immediately.
    • The request timeout now also covers reading the response body, so a stalled body read no longer holds the request open past timeout.

@cloudflare/flagship-go@0.5.0

@cloudflare/flagship-python@0.5.0

@github-actions
github-actions Bot requested review from a team, akshitsinha, palashgo and roerohan as code owners August 10, 2026 10:40
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 33c9289 to 6c97ede Compare August 10, 2026 10:50
@pkg-pr-new

pkg-pr-new Bot commented Aug 10, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@cloudflare/flagship@31

commit: 6c97ede

@akshitsinha
akshitsinha merged commit f17848d into main Aug 10, 2026
23 checks passed
@akshitsinha
akshitsinha deleted the changeset-release/main branch August 10, 2026 10:57
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.

2 participants