bpmn-engine 17.1.0 → 18.0.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.
- package/CHANGELOG.md +11 -0
- package/package.json +5 -5
- package/types/bpmn-engine.d.ts +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
Changelog
|
|
2
2
|
=========
|
|
3
3
|
|
|
4
|
+
# 18.0.0
|
|
5
|
+
|
|
6
|
+
Only breaking if multi-instance sub-process executions are inspected after sub-process run is completed. Picture a multi-instance sequential sub-process with a cardinality of 100. One hundred items in a list occupies some memory. That will not stand. Consequently, they are now removed when iteration completes and eventually collected by gc.
|
|
7
|
+
|
|
8
|
+
- Major bump [`bpmn-elements@12`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
|
|
9
|
+
|
|
10
|
+
# 17.1.1
|
|
11
|
+
|
|
12
|
+
- Finetuning Engine.execute and Engine.resume callback arg typization by @bestmazzo
|
|
13
|
+
- Patch [`bpmn-elements`](https://github.com/paed01/bpmn-elements/blob/master/CHANGELOG.md)
|
|
14
|
+
|
|
4
15
|
# 17.1.0
|
|
5
16
|
|
|
6
17
|
- 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": "
|
|
4
|
+
"version": "18.0.0",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "types/bpmn-engine.d.ts",
|
|
7
7
|
"repository": {
|
|
@@ -50,16 +50,16 @@
|
|
|
50
50
|
"c8": "^8.0.0",
|
|
51
51
|
"camunda-bpmn-moddle": "^7.0.1",
|
|
52
52
|
"chai": "^4.3.7",
|
|
53
|
-
"chronokinesis": "^
|
|
54
|
-
"eslint": "^8.
|
|
53
|
+
"chronokinesis": "^6.0.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.
|
|
58
|
+
"nock": "^13.3.2"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
61
|
"@types/bpmn-moddle": "^5.1.6",
|
|
62
|
-
"bpmn-elements": "^
|
|
62
|
+
"bpmn-elements": "^12.0.0",
|
|
63
63
|
"bpmn-moddle": "^8.0.1",
|
|
64
64
|
"debug": "^4.3.4",
|
|
65
65
|
"moddle-context-serializer": "^4.0.0",
|
package/types/bpmn-engine.d.ts
CHANGED
|
@@ -128,7 +128,7 @@ declare module 'bpmn-engine' {
|
|
|
128
128
|
/**
|
|
129
129
|
* current engine execution
|
|
130
130
|
*/
|
|
131
|
-
readonly
|
|
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
|