Skip to content

v2.0.0-beta.3

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 04 Jun 12:41
· 8 commits to main since this release
aee2239

Patch Changes

  • 7e5a8dd: Fix inputs is not iterable crash when the server returns a malformed /io response.

    A server fault can return a 200 whose body omits inputs/outputs (e.g. a definition-LOAD failure that surfaced as a malformed success instead of a clean 500). fetchDefinitionIO passed response.inputs straight through, and the downstream for...of in processInputsWithErrors threw inputs is not iterable.

    • Coerce inputs/outputs to [] in fetchDefinitionIO using Array.isArray (not ?? []) — the symptom is non-iterability, so a non-array truthy value like {} or a string must coerce too.
    • The already-surfaced loadErrors / loadWarnings then explain why the list came back empty instead of the client crashing.
    • Add regression tests covering missing, null, non-array-object, and string inputs/outputs.