bpmn-engine 17.1.0 → 17.1.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/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Changelog
2
2
  =========
3
3
 
4
+ # 17.1.1
5
+
6
+ - Finetuning Engine.execute and Engine.resume callback arg typization by @bestmazzo
7
+ - Patch [`bpmn-elements`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
8
+
4
9
  # 17.1.0
5
10
 
6
11
  - Clear arbitrary engine timers on end and error, not just on stop as it was before
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bpmn-engine",
3
3
  "description": "BPMN 2.0 execution engine. Open source javascript workflow engine.",
4
- "version": "17.1.0",
4
+ "version": "17.1.1",
5
5
  "main": "index.js",
6
6
  "types": "types/bpmn-engine.d.ts",
7
7
  "repository": {
@@ -51,15 +51,15 @@
51
51
  "camunda-bpmn-moddle": "^7.0.1",
52
52
  "chai": "^4.3.7",
53
53
  "chronokinesis": "^5.0.2",
54
- "eslint": "^8.44.0",
54
+ "eslint": "^8.45.0",
55
55
  "markdown-toc": "^1.2.0",
56
56
  "mocha": "^10.2.0",
57
57
  "mocha-cakes-2": "^3.3.0",
58
- "nock": "^13.3.1"
58
+ "nock": "^13.3.2"
59
59
  },
60
60
  "dependencies": {
61
61
  "@types/bpmn-moddle": "^5.1.6",
62
- "bpmn-elements": "^11.0.1",
62
+ "bpmn-elements": "^11.1.1",
63
63
  "bpmn-moddle": "^8.0.1",
64
64
  "debug": "^4.3.4",
65
65
  "moddle-context-serializer": "^4.0.0",
@@ -128,7 +128,7 @@ declare module 'bpmn-engine' {
128
128
  /**
129
129
  * current engine execution
130
130
  */
131
- readonly execution: Execution;
131
+ readonly execution: Execution;
132
132
  /**
133
133
  * engine environment
134
134
  */
@@ -147,7 +147,7 @@ declare module 'bpmn-engine' {
147
147
  */
148
148
  execute(): Promise<Execution>;
149
149
  execute(options: BpmnEngineExecuteOptions): Promise<Execution>;
150
- execute(options: BpmnEngineExecuteOptions, cb: (err: Error) => void): Promise<Execution>;
150
+ execute(options: BpmnEngineExecuteOptions, cb: (err: Error, execution?: Execution) => void): Promise<Execution>;
151
151
  execute(cb: (err: Error) => void): Promise<Execution>;
152
152
 
153
153
  /**
@@ -178,7 +178,7 @@ declare module 'bpmn-engine' {
178
178
  * @param options
179
179
  * @param callback
180
180
  */
181
- resume(options?: BpmnEngineExecuteOptions, callback?: () => void): Promise<Execution>;
181
+ resume(options?: BpmnEngineExecuteOptions, callback?: (err: Error, execution?: Execution) => void): Promise<Execution>;
182
182
 
183
183
  /**
184
184
  * Stop execution. The instance is terminated.
@@ -191,7 +191,7 @@ declare module 'bpmn-engine' {
191
191
  * Add definition source by source context.
192
192
  * @param options
193
193
  */
194
- addSource(options?: {sourceContext: any}): void;
194
+ addSource(options?: { sourceContext: any }): void;
195
195
  }
196
196
 
197
197
  interface BpmnEngineDefinitionState extends DefinitionState {
@@ -284,7 +284,7 @@ declare module 'bpmn-engine' {
284
284
  * @param message {BpmnMessage}
285
285
  * @param options
286
286
  */
287
- signal(message?: BpmnMessage, options?: {ignoreSameDefinition?: boolean}): void;
287
+ signal(message?: BpmnMessage, options?: { ignoreSameDefinition?: boolean }): void;
288
288
 
289
289
  /**
290
290
  * send cancel activity to execution, distributed to all definitions