Skip to content

v0.22.0

Choose a tag to compare

@tempo-github-sts tempo-github-sts released this 09 Nov 21:57
· 20 commits to main since this release
Immutable release. Only release title and notes can be modified.
f645ce6

Minor Changes

  • Made Mpp, Tempo and EVM charges, tempo.session and x402 payment_middleware raise RuntimeError at startup in production (MPP_ENV=production, or platforms such as AWS Lambda, Fly or Vercel) when they would fall back to an in-memory replay store; pass a shared store such as RedisStore or SQLStore with store= or Mpp(store=...), or an explicit MemoryStore() to keep instance-local protection, as mppx does. Made EVM claims in an explicitly passed MemoryStore expire after the authorization's validBefore. (by @brendanjryan, #413)
  • Added rpc_url_for_chain as a new public function in mpp.methods.tempo. Added an optional http_request parameter to Mpp.validate_credential and Mpp.broadcast_credential to enforce route scope binding, and enriched ChargeIntent settlement details with payer_verified, transaction_hash, and valid_before fields. (by @brendanjryan, #414)

Patch Changes

  • Added SQLStore, an atomic key-value store on Postgres or SQLite with single-statement writes, as mppx's Store.sql() does. Added the postgres extra (asyncpg). (by @brendanjryan, #405)
  • Relay validation now reported the payload's settlement details instead of an empty details dict. Deeply nested keychain signatures no longer overflowed the stack in _canonical_signature. (by @brendanjryan, #415)
  • Fixed sponsorship slot tracking to reserve daily capacity before the signed simulation is sent to the RPC, since a signed simulation can be reconstructed and broadcast outside the client. Replaced the _SendTracker wrapping approach with a dedicated before_sponsor_exposure callback parameter on send_credential_transaction and broadcast_top_up_transaction. (by @brendanjryan, #409)
What's Changed
  • feat(stores): add SQLStore on Postgres and SQLite (mppx#1187) by @brendanjryan in #405
  • fix: reserve sponsorship before signed RPC simulation by @brendanjryan in #409
  • feat: expose Tempo charge settlement details and route binding for credential validation by @brendanjryan in #414
  • fix(tempo): report settlement details from relay validation and bound keychain nesting by @brendanjryan in #415
  • fix(server): refuse the in-memory replay store fallback in production by @brendanjryan in #413
  • Release v0.22.0 by @tempo-github-sts[bot] in #411

Full Changelog: v0.21.0...v0.22.0