Skip to content

v1.18.0

Choose a tag to compare

@github-actions github-actions released this 08 Jul 19:44
· 20 commits to main since this release
c5fd197

Minor Changes

  • dab4458: Add conditional settlement via beforeSettle returning 'skip'. A paid route can now return its 2xx handler body without charging when the hook returns 'skip'; 'continue' or void proceeds to settlement as before, and throw still fails the request without settling.

    Caveat: 'skip' only applies to post-handler settlement paths (x402 exact/upto, MPP transaction/pull). MPP hash/push mode settles at verify, before beforeSettle runs — 'skip' cannot un-charge a push-mode client.