@usearazzo/runner 1.0.1-alpha.19 → 1.0.1-alpha.20

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,18 @@
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.20](https://github.com/usearazzo/arazzo-toolkit/compare/v1.0.1-alpha.19...v1.0.1-alpha.20) (2026-11-01)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **runner:** fail a criterion that cannot be evaluated ([#301](https://github.com/usearazzo/arazzo-toolkit/issues/301)) ([efd7de6](https://github.com/usearazzo/arazzo-toolkit/commit/efd7de612de65bce741e88353c5f7a7cca5279de)), closes [#231](https://github.com/usearazzo/arazzo-toolkit/issues/231) [#120](https://github.com/usearazzo/arazzo-toolkit/issues/120) [#231](https://github.com/usearazzo/arazzo-toolkit/issues/231)
11
+
12
+ ### BREAKING CHANGES
13
+
14
+ - **runner:** XPathCriterionEvaluator reports a non-XML context with
15
+ reason invalid-xpath-context instead of invalid-context, and
16
+ CriterionError.reason is typed as CriterionErrorReason instead of string.
17
+
6
18
  ## [1.0.1-alpha.19](https://github.com/usearazzo/arazzo-toolkit/compare/v1.0.1-alpha.18...v1.0.1-alpha.19) (2026-10-31)
7
19
 
8
20
  ### Bug Fixes
package/README.md CHANGED
@@ -44,7 +44,7 @@ A runner is four building blocks, composed bottom-up; `ArazzoRunner` composes th
44
44
  <img alt="Runner architecture: WorkflowExecutor runs steps through StepExecutor, which runs OpenAPI operations through OpenAPIOperationExecutor and the HTTPClient; DocumentRegistry supplies documents to all three executors" src="https://raw.githubusercontent.com/usearazzo/arazzo-toolkit/main/packages/runner/assets/architecture.svg">
45
45
  </p>
46
46
 
47
- A step whose criteria go unmet is a result, not an error: the run resolves with `status: 'failed'`. Only a document that cannot be loaded or run as written, a request that cannot be built or sent, or a cancelled run throws, and every such error extends `ArazzoRunnerError`; a document that cannot be read or loaded (a missing file, an HTTP error, an unresolvable reference) throws `DocumentLoadError` with the underlying failure as its `cause`.
47
+ A step whose criteria go unmet is a result, not an error: the run resolves with `status: 'failed'`. A criterion whose condition cannot be evaluated (an invalid regex, JSONPath, XPath or simple condition, or non-XML data under an `xpath` query) counts as unmet, as Arazzo 1.1.0 requires, rather than throwing. The type-specific criterion evaluators raise such a condition as `CriterionEvaluationError`, a `CriterionError` subclass, and every `CriterionError` carries a `reason` from `CriterionErrorReason`. Only a document that cannot be loaded or run as written, a request that cannot be built or sent, or a cancelled run throws, and every such error extends `ArazzoRunnerError`; a document that cannot be read or loaded (a missing file, an HTTP error, an unresolvable reference) throws `DocumentLoadError` with the underlying failure as its `cause`.
48
48
 
49
49
  ## Installation
50
50