@usearazzo/runner 1.0.1-alpha.36 → 1.0.1-alpha.37

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 CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.1-alpha.37](https://github.com/usearazzo/arazzo-toolkit/compare/v1.0.1-alpha.36...v1.0.1-alpha.37) (2026-11-27)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **runner:** wrap a response body read failure as ClientError ([#390](https://github.com/usearazzo/arazzo-toolkit/issues/390)) ([a203801](https://github.com/usearazzo/arazzo-toolkit/commit/a203801bcbeed381b85e19c39c0d6d3ab62e8e1a)), closes [#389](https://github.com/usearazzo/arazzo-toolkit/issues/389)
11
+
6
12
  ## [1.0.1-alpha.36](https://github.com/usearazzo/arazzo-toolkit/compare/v1.0.1-alpha.35...v1.0.1-alpha.36) (2026-11-26)
7
13
 
8
14
  ### Bug Fixes
@@ -11891,7 +11891,8 @@ const IGNORED_HEADERS = new Set(['accept', 'authorization', 'content-type']);
11891
11891
  * sends it through the pluggable {@link HTTPClient}, and normalizes the raw
11892
11892
  * `Response` into the runner's response model. A non-2xx status is a valid
11893
11893
  * outcome (judged by a step's `successCriteria`) and is returned, never
11894
- * thrown; a transport failure is wrapped as a {@link ClientError}.
11894
+ * thrown; a transport failure, a response body that cannot be read in full
11895
+ * included, is wrapped as a {@link ClientError}.
11895
11896
  *
11896
11897
  * The executor is Arazzo-agnostic: it neither locates the operation (that is
11897
11898
  * the operation locator normalizer's concern) nor resolves parameters or
@@ -12071,10 +12072,26 @@ class OpenAPIOperationExecutor {
12071
12072
  } catch (error) {
12072
12073
  throw new _errors_ClientError_ts__WEBPACK_IMPORTED_MODULE_15__["default"]('OpenAPI operation request failed', {
12073
12074
  operationPath: locator.jsonPointer,
12075
+ uri: locator.document.uri,
12076
+ cause: error
12077
+ });
12078
+ }
12079
+
12080
+ // the transport resolves once the headers are in, so a connection lost
12081
+ // while the body streams fails here, inside the normalizer that reads it,
12082
+ // and is as much a transport failure as a request that never got a
12083
+ // response. Anything else the normalizer throws is reported the same way:
12084
+ // either way there is no response to hand to the step.
12085
+ let response;
12086
+ try {
12087
+ response = await this.#responseNormalizer.normalize(rawResponse, requestInfo);
12088
+ } catch (error) {
12089
+ throw new _errors_ClientError_ts__WEBPACK_IMPORTED_MODULE_15__["default"]('OpenAPI operation response could not be read', {
12090
+ operationPath: locator.jsonPointer,
12091
+ uri: locator.document.uri,
12074
12092
  cause: error
12075
12093
  });
12076
12094
  }
12077
- const response = await this.#responseNormalizer.normalize(rawResponse, requestInfo);
12078
12095
  if (this.#events.hasObservers) {
12079
12096
  this.#events.emit({
12080
12097
  type: 'openapi:operation:request:settled',