You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat!: track the input completion changes of next/2.0
These two changes are not part of rollups-node PR 793, but that PR has
now merged, so they are simply part of the node API these packages
target.
`InputStatus` loses its resource-limit members. The node collapsed
OUTPUTS_LIMIT_EXCEEDED, REPORTS_LIMIT_EXCEEDED, CYCLE_LIMIT_EXCEEDED,
TIME_LIMIT_EXCEEDED and PAYLOAD_LENGTH_LIMIT_EXCEEDED into the remaining
outcomes, leaving NONE, ACCEPTED, REJECTED, EXCEPTION and
MACHINE_HALTED. Declaring the removed ones promised statuses the node
can no longer return. `waitForInput` listed four of them under
`rejectErrors`; it now aborts on EXCEPTION, MACHINE_HALTED and REJECTED,
which is every terminal status other than ACCEPTED — and, incidentally,
no longer omits a failure status the way the old list omitted
REPORTS_LIMIT_EXCEEDED.
`Input` gains `exception_data` / `exceptionData`, the raw guest-provided
CMIO exception payload, non-null only when the status is EXCEPTION and
empty-encoded as 0x. The bytes are passed through undecoded, matching
how `raw_data` is handled.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UJpa3KXxvUarBGpHvW8Qdb
Copy file name to clipboardExpand all lines: .changeset/tricky-pianos-shake.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,11 @@ New filters on the listing methods:
20
20
21
21
The node rejects an empty filter list with invalid params, so both list-valued filters use the new `NonEmptyArray` type exported by `@cartesi/rpc` (and re-exported by `@cartesi/client`): `status: []` and `outputType: []` are compile errors rather than failed requests.
22
22
23
+
Input completion changes:
24
+
25
+
-`InputStatus` lost its resource-limit members. The node collapsed `OUTPUTS_LIMIT_EXCEEDED`, `REPORTS_LIMIT_EXCEEDED`, `CYCLE_LIMIT_EXCEEDED`, `TIME_LIMIT_EXCEEDED` and `PAYLOAD_LENGTH_LIMIT_EXCEEDED` into the remaining outcomes, so the union is now `NONE | ACCEPTED | REJECTED | EXCEPTION | MACHINE_HALTED`. Code that switches on the removed members no longer compiles; `waitForInput` with `rejectErrors` now aborts on `EXCEPTION`, `MACHINE_HALTED` and `REJECTED`, which is every terminal status other than `ACCEPTED`.
26
+
-`Input` gained `exceptionData: Hex | null` (`exception_data` on the wire), the raw guest-provided CMIO exception payload. It is non-null only when `status` is `EXCEPTION`, and an empty payload is `0x`. The bytes are passed through undecoded.
27
+
23
28
Breaking changes:
24
29
25
30
-`cartesi_getMatchAdvanced` was renamed to `cartesi_getMatchAdvance`, following the node. The `getMatchAdvanced` action is now `getMatchAdvance`, the `useMatchAdvanced` hook is now `useMatchAdvance` (with `matchAdvanceOptions` / `matchAdvanceQueryKey`), and `GetMatchAdvancedParams` / `GetMatchAdvancedReturnType` are now `GetMatchAdvanceParams` / `GetMatchAdvanceReturnType`.
0 commit comments