@aikirun/task 0.15.0 → 0.16.0

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -2
  2. package/package.json +3 -3
package/dist/index.js CHANGED
@@ -153,8 +153,8 @@ function getRetryParams(attempts, strategy) {
153
153
  import { INTERNAL } from "@aikirun/types/symbols";
154
154
  import { TaskFailedError } from "@aikirun/types/task";
155
155
  import {
156
- WorkflowRunConflictError,
157
156
  WorkflowRunFailedError,
157
+ WorkflowRunRevisionConflictError,
158
158
  WorkflowRunSuspendedError
159
159
  } from "@aikirun/types/workflow-run";
160
160
  function task(params) {
@@ -249,7 +249,7 @@ var TaskImpl = class {
249
249
  const output = await this.parse(handle, this.params.schema?.output, outputRaw, logger);
250
250
  return { output, lastAttempt: attempts };
251
251
  } catch (error) {
252
- if (error instanceof WorkflowRunFailedError || error instanceof WorkflowRunSuspendedError || error instanceof WorkflowRunConflictError) {
252
+ if (error instanceof WorkflowRunFailedError || error instanceof WorkflowRunSuspendedError || error instanceof WorkflowRunRevisionConflictError) {
253
253
  throw error;
254
254
  }
255
255
  const serializableError = createSerializableError(error);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aikirun/task",
3
- "version": "0.15.0",
3
+ "version": "0.16.0",
4
4
  "description": "Task SDK for Aiki - define reliable tasks with automatic retries, idempotency, and error handling",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -18,8 +18,8 @@
18
18
  "build": "tsup"
19
19
  },
20
20
  "dependencies": {
21
- "@aikirun/types": "0.15.0",
22
- "@aikirun/workflow": "0.15.0",
21
+ "@aikirun/types": "0.16.0",
22
+ "@aikirun/workflow": "0.16.0",
23
23
  "@standard-schema/spec": "^1.1.0"
24
24
  },
25
25
  "publishConfig": {