Skip to content

Version Packages - #45

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 5, 2026 •

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

radius-sdk@0.4.0

Minor Changes

  • bdd6d76: Accept payments from any HTTP stack, not just Hono. New radius-sdk/server entry point:

    • radiusPayments() is a web-standard handler (Request in, Response out) for Cloudflare Workers without a framework, Bun, Deno, Node 18+, and Next.js / SvelteKit / Remix route handlers. Paid handlers receive the settled receipt as a second argument.
    • createRadiusServer() exposes the Radius x402 resource server and a routes() builder that plug straight into the upstream adapters: paymentMiddleware(radius.routes({ … }), radius.server) with @x402/express, @x402/next or @x402/hono.
    • onSettled is registered on the resource server, so it fires whichever adapter served the request (it receives the x402 request context; requestOf(context) returns the Request for the SDK's own adapters). Errors thrown by onSettled are logged by x402 core instead of failing the request.
    • Paid responses stream through in the default settle: 'before' flow instead of being buffered (the previous Hono middleware buffered every paid response, stalling SSE and token streams).
    • Breaking: radius-sdk/hono is now a thin wrapper over the web-standard handler with the same options. RadiusHonoAdapter is removed; RequestAdapter from radius-sdk/server (an x402 HTTPAdapter over a web-standard Request) replaces it.
    • @x402/core / @x402/evm bumped to 2.27.0 (the version line the upstream adapters require).
    • New examples: examples/worker-plain (no framework), examples/express-seller (@x402/express) and examples/astro-seller (validate before charging in an Astro API route).

Patch Changes

  • 23f73d6: radiusPayments accepts facilitators that list the eip3009 transfer method for exact. Previously every paid route answered 500 once the facilitator's /supported named eip3009 before permit2.
  • 5a915b2: radiusPayments answers 502 (facilitator_error) when a facilitator call fails without the facilitator's own answer, such as a dropped connection or an error page from a gateway. These were reported as 402, which a buyer reads as "rejected, nothing moved", although a settle may have reached the chain. The facilitator's own rejections are still 402.

radius-cli@0.3.1

Patch Changes

  • Updated dependencies [23f73d6]
  • Updated dependencies [5a915b2]
  • Updated dependencies [bdd6d76]
    • radius-sdk@0.4.0

@github-actions
github-actions Bot force-pushed the changeset-release/main branch 2 times, most recently from 3092d27 to 88042db Compare October 7, 2026 14:36
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 88042db to 84881d4 Compare October 7, 2026 15:53
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.

0 participants