@hotmeshio/hotmesh 0.22.4 → 0.22.5

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hotmeshio/hotmesh",
3
- "version": "0.22.4",
3
+ "version": "0.22.5",
4
4
  "description": "Durable Workflow",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1,6 +1,7 @@
1
1
  import { HotMesh } from '../hotmesh';
2
2
  import { ClientConfig, ClientWorkflow, Connection, WorkflowOptions } from '../../types/durable';
3
3
  import { EscalationClientService } from '../escalations/client';
4
+ import { EventsConfig } from '../../types/system_events';
4
5
  /**
5
6
  * Workflow client. Starts workflows, sends signals, and reads results.
6
7
  *
@@ -53,6 +54,10 @@ export declare class ClientService {
53
54
  * @private
54
55
  */
55
56
  options: WorkflowOptions;
57
+ /**
58
+ * @private
59
+ */
60
+ events?: EventsConfig;
56
61
  /**
57
62
  * @private
58
63
  */
@@ -85,6 +85,7 @@ class ClientService {
85
85
  readonly,
86
86
  connection: this.connection,
87
87
  },
88
+ events: this.events,
88
89
  });
89
90
  //synchronously cache the promise (before awaiting)
90
91
  ClientService.instances.set(connectionNS, hotMeshClient);
@@ -298,6 +299,7 @@ class ClientService {
298
299
  },
299
300
  };
300
301
  this.connection = config.connection;
302
+ this.events = config.events;
301
303
  this.escalations = new client_1.EscalationClientService({
302
304
  getHotMeshClient: this.getHotMeshClient.bind(this),
303
305
  events: config.events,
@@ -309,6 +309,7 @@ class WorkerService {
309
309
  appId: targetNamespace,
310
310
  engine: { connection: config.connection },
311
311
  workers: [workerEntry],
312
+ events: config.events,
312
313
  });
313
314
  WorkerService.instances.set(targetTopic, hotMeshWorker);
314
315
  return hotMeshWorker;
@@ -564,6 +565,7 @@ class WorkerService {
564
565
  appId: targetNamespace,
565
566
  engine: { connection: providerConfig },
566
567
  workers: [workerEntry],
568
+ events: config.events,
567
569
  });
568
570
  WorkerService.instances.set(targetTopic, hotMeshWorker);
569
571
  return hotMeshWorker;
@@ -693,6 +695,7 @@ class WorkerService {
693
695
  appId: config.namespace ?? factory_1.APP_ID,
694
696
  engine: { connection: providerConfig },
695
697
  workers: [workerEntry],
698
+ events: config.events,
696
699
  });
697
700
  WorkerService.instances.set(targetTopic, hotMeshWorker);
698
701
  return hotMeshWorker;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hotmeshio/hotmesh",
3
- "version": "0.22.4",
3
+ "version": "0.22.5",
4
4
  "description": "Durable Workflow",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",