json-render 0.23.2 lets hosts clean up a posted partial card after final validation fails
json-render released 0.23.2 on November 19. Chat SDK streamCard can post once a root element is usable and keep editing while the spec streams. If the final spec fails validation, CardSpecError now carries the posted message as postedMessage, allowing callers to edit, replace, or remove the partial card left in Slack, Teams, or another chat surface. This revision joins the 0.23 line's SwiftUI renderer, cross-framework replay fixes, and complexity budgets.
Why it matters
Streaming generative UI can become visible before final validation. Throwing an error without a handle to the message already sent leaves an invalid or incomplete card in the collaboration surface. Returning the recoverable object at the error boundary lets a host translate final-state failure into visible cleanup, replacement, or fallback behavior.
A closer look
postedMessage is present only when streamCard successfully posted a card and final-spec validation then failed. It remains undefined when nothing was posted or when toCard fails outside streamCard. Other failures, including a text-stream exception or rejected post or edit, propagate as the original object. Project tests cover posted, not-posted, and pass-through paths. Earlier 0.23 releases added JSONRenderCore and native JSONRenderSwiftUI, React comparison fixtures, deep-copy replay across React, Vue, Solid, Svelte, and Devtools, unfinished spec-fence reset, and bounds on duplicate Swift child IDs, validation issue counts, and diagnostic bytes.
Who this is for
Frontend and agent-platform teams using json-render Chat SDK for Slack, Teams, or other collaboration surfaces and maintaining streamed cards, failure recovery, SwiftUI, or cross-framework replay.
Original sources
- json-render official v0.23.0 through v0.23.2 releases ↗github.com
- Unfinished spec-fence parser fix ↗github.com
- Cross-framework replay mutation fix ↗github.com
- Native SwiftUI renderer and conformance fixtures ↗github.com
- Swift complexity and diagnostic budgets ↗github.com
- postedMessage recovery handle implementation and tests ↗github.com
- json-render v0.23.0 immutable release ↗github.com
- json-render official v0.23.0 through v0.23.2 releases ↗github.com
Revisions & corrections (2)
— Official 0.23.2 release adds a verified recovery handle for partial cards after final-spec validation failure; merge preserves the 0.23 event history.
— Two adjacent official versions form one evidence-complete event: native SwiftUI support and conformance fixtures ship together with replay, parser, and complexity-boundary fixes.