Repository navigation
mppx@0.21.0
·
23 commits
to main
since this release
Minor Changes
- 7b47ff2: Fixed payment enforcement, stream handling, and excessive callback overhead in Express, and hardened subscription signing and CLI retries against chain mismatches and cleartext payment requests. Proxy replay now requires a stable, explicitly configured
replay.authority, shared only by replicas with identical payment policies and upstream permissions.
Patch Changes
- 1cb1c24: Validated the authority actually used to construct adapter request URLs. Returned HTTP 400 for malformed request targets in the x402 Express adapter.
- a7e84b7: Added optional exact host allowlists to Express and Node adapters, rejecting unapproved requests before payment or identity verification.
- d2d3fba: Fixed payment retries creating credentials after cancellation during approval.
- 58513ac: Changed challenges to accept only
Payment-Authorization(any case) as an explicitheader, keeping the received spelling so credentials echo it unchanged; clients skip a challenge that names any other credential header. Servers now throw when configured with another header (Authorizationstill means the default). - bf0bbcb: The CLI paid a new Challenge offered in a 402 after a Credential, such as the real charge after a zero-amount proof, instead of failing with
PAYMENT_REJECTED, and resent the same Credential when the same Challenge was offered again, as the client's fetch does. - c796e45: Preserved automatic-payment opt-outs through identity clients and session managers, and disabled payment during issuer key retrieval.
- 7300c80: Fixed stale payment cleanup removing a newer replay claim.
- b457436: Bound session credential sources to the funding payer while preserving delegated voucher signatures.
- c796e45: Prevented Persona issuer lookups from paying through identity wrappers and unpaid session requests from changing accounting or opening payment-driven streams.
- 6826a97: Added
headersfor x402 facilitators that need an API key: a flat record sent on every request, or an object keyed byverify,settleandsupported(the shapecreateAuthHeadersreturns in@x402/core), or a function returning either.x402.facilitatoraccepts{ url, headers }, andx402.headers,Facilitator.http(url, { headers })andevm.facilitatorPayTo(url, { headers })authenticate a URL facilitator. A non-2xx facilitator response now throwsErrors.FacilitatorResponseError(status and truncated body) and reaches the client as a 500 instead of a schema error. Clients withmaxAmountand nocurrenciesallowlist now read decimals and EIP-3009 metadata for assets mppx ships (such as Base USDC) from its registry. - c5c01a7: Added
x402.extratoevm.chargefor facilitators that read their own keys in a payment requirement'sextra, an optionalsupported()on x402 facilitator clients (GET /supported, implemented by the HTTP client), andevm.facilitatorPayTo()to read thepayToa facilitator publishes there as the charge'srecipient. - fa0388c: Added
extensionstoReceiptand to the result ofevm.charge'ssettleso a server reads theextensionsan x402 facilitator returns from/settle, and forwarded them unchanged in the x402PAYMENT-RESPONSEheader. Fixed the HTTP facilitator client rejecting/verifyand/settleresponses whoseextensionsvalues aren't{ info, schema }declarations. - 6629814: Fixed
tempo.chargeclients so thatmaxAmountandmaxAtomicAmountcover a Zone payment's withdrawal fee: the amount plus the fee must fit, checked before withdrawing. - 132e1b5: Fixed Zone payments so that a retry under a new Challenge no longer starts a second withdrawal:
tempo.chargeresumes the outstanding withdrawal for the same terms while it can still pay, and the fetch and MCP clients retry the original Challenge while it settles. Added thezoneCredentialGraceMsserver option, which accepts azoneCredential for up to 5 minutes after its Challenge expires when its withdrawal settled before the expiry; only Challenges issued with the option on get this grace. - 88e8810: Fixed
tempo.chargeservers accepting a Zone withdrawal's settlement as ahashCredential as well as azoneCredential. A transfer sent by a Zone portal now counts only through itszoneCredential, so one settlement pays once.