@hatchet-dev/typescript-sdk 1.8.0 → 1.8.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hatchet-dev/typescript-sdk",
3
- "version": "1.8.0",
3
+ "version": "1.8.1",
4
4
  "description": "Background task orchestration & visibility for developers",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [
@@ -254,7 +254,12 @@ class V1Worker {
254
254
  catch (e) {
255
255
  throw new hatchet_error_1.default(`Could not register workflow: ${e.message}`);
256
256
  }
257
- this.registerActionsV1(workflow);
257
+ if (!durable) {
258
+ this.registerActionsV1(workflow);
259
+ }
260
+ else {
261
+ this.registerDurableActionsV1(workflow);
262
+ }
258
263
  });
259
264
  }
260
265
  registerWorkflow(initWorkflow) {
@@ -60,7 +60,6 @@ class Worker {
60
60
  this.durable = new worker_internal_1.V1Worker(this._v1, opts);
61
61
  yield this.durable.registerWorkflowV1(wf, true);
62
62
  }
63
- this.durable.registerDurableActionsV1(wf.definition);
64
63
  }
65
64
  }
66
65
  else {
package/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const HATCHET_VERSION = "1.8.0";
1
+ export declare const HATCHET_VERSION = "1.8.1";
package/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.HATCHET_VERSION = void 0;
4
- exports.HATCHET_VERSION = '1.8.0';
4
+ exports.HATCHET_VERSION = '1.8.1';