v2.0.0-beta.3
Pre-release
Pre-release
·
8 commits
to main
since this release
Patch Changes
-
7e5a8dd: Fix
inputs is not iterablecrash when the server returns a malformed/ioresponse.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).fetchDefinitionIOpassedresponse.inputsstraight through, and the downstreamfor...ofinprocessInputsWithErrorsthrewinputs is not iterable.- Coerce
inputs/outputsto[]infetchDefinitionIOusingArray.isArray(not?? []) — the symptom is non-iterability, so a non-array truthy value like{}or a string must coerce too. - The already-surfaced
loadErrors/loadWarningsthen explain why the list came back empty instead of the client crashing. - Add regression tests covering missing,
null, non-array-object, and stringinputs/outputs.
- Coerce