mppx 0.13.2 → 0.13.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/cli/cli.js +3 -3
- package/dist/cli/plugins/index.js +1 -1
- package/dist/cli/validate/helpers.d.ts +1 -0
- package/dist/cli/validate/helpers.js +2 -1
- package/dist/internal/version.d.ts +2 -2
- package/dist/internal/version.js +1 -1
- package/dist/server/Mppx.d.ts +1 -1
- package/dist/server/Mppx.js +6 -3
- package/dist/server/internal/challengeMeta.d.ts +5 -0
- package/dist/server/internal/challengeMeta.js +14 -0
- package/dist/tempo/server/Methods.d.ts +5 -0
- package/dist/tempo/server/Methods.js +5 -1
- package/dist/tempo/server/index.d.ts +1 -1
- package/dist/tempo/server/internal/html.gen.js +1 -1
- package/dist/tempo/session/client/Transports.js +39 -12
- package/dist/tempo/session/precompile/Chain.d.ts +4 -0
- package/dist/tempo/session/precompile/Chain.js +8 -2
- package/dist/tempo/session/server/ChannelStore.d.ts +8 -0
- package/dist/tempo/session/server/ChannelStore.js +17 -0
- package/dist/tempo/session/server/CredentialVerification.d.ts +3 -1
- package/dist/tempo/session/server/CredentialVerification.js +56 -11
- package/dist/tempo/session/server/Session.d.ts +4 -2
- package/dist/tempo/session/server/Session.js +23 -5
- package/dist/tempo/session/server/Settlement.d.ts +40 -1
- package/dist/tempo/session/server/Settlement.js +105 -34
- package/dist/tempo/session/server/index.d.ts +1 -1
- package/dist/x402/server/EvmCharge.js +10 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# mppx
|
|
2
2
|
|
|
3
|
+
## 0.13.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- a732d24: Fixed `tempo/session` settlement failing after confirmation when a lagging RPC replica served the readback; `settle` read channel state at the receipt's block. Confirmed checkpoint failures were also reported.
|
|
8
|
+
- d27f02d: Fixed `tempo/session` `onSessionSettlement` double-counting a retried settlement after a failed checkpoint; `delta` now comes from the receipt's `deltaPaid`. Exported `SettlementCheckpointError` as `tempo.SettlementCheckpointError` from `mppx/server`.
|
|
9
|
+
- a732d24: Changed `tempo/session` to serve charged requests when a scheduled settlement's lease claim, JSON-RPC rate limit, internal RPC error or receipt wait failed transiently; the next settlement collected the charge.
|
|
10
|
+
- bbbec69: Added a fresh HMAC-bound issuance nonce to server-generated payment challenges while preserving route metadata checks.
|
|
11
|
+
- 53c394a: Prevented CLI validation probes from following redirects.
|
|
12
|
+
- 99b6e08: Prevented WebSocket payment authorization after cancellation and settled interrupted connection attempts.
|
|
13
|
+
|
|
14
|
+
## 0.13.3
|
|
15
|
+
|
|
16
|
+
### Patch Changes
|
|
17
|
+
|
|
18
|
+
- 06dc781: Fixed `tempo/session` reopening a channel when a broadcast close failed ambiguously. The pending-close marker stayed until the close transaction expired, and a later voucher or close cleared it once the chain showed the channel still open.
|
|
19
|
+
- 55c3c26: Changed `tempo/session` to serve a charged request when its scheduled settlement hit a transport or RPC failure; the next settlement collected the charge. Reverts and configuration errors still failed the request.
|
|
20
|
+
- c22cf1a: Fixed `tempo/session` failing a charged request when its settlement confirmed but the channel store could not record it. `settle` raised `SettlementCheckpointError` with the transaction hash instead.
|
|
21
|
+
- 6921631: Fixed scheduled `tempo/session` settlement marking charges accepted while the settlement transaction was pending as settled. `settle` recorded the spend and units read with the submitted voucher instead.
|
|
22
|
+
- 55c3c26: Added `onSessionSettlementFailure` to `tempo.session()`, called with the chain, channel, error and trigger (`scheduled` or `close`) when a scheduled settlement or close transaction fails.
|
|
23
|
+
|
|
3
24
|
## 0.13.2
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|