Skip to content

Commit 54ada99

Browse files
committed
avoid confusion by adding iso8601 to OnifyTimerEventDefinition supports
- fix extensions argument context type
1 parent fcfc83d commit 54ada99

File tree

4 files changed

+10
-7
lines changed

4 files changed

+10
-7
lines changed

CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22

33
# unreleased
44

5+
# 8.0.3
6+
7+
- add iso8601 to OnifyTimerEventDefinition supports list to avoid confusion
8+
- fix extensions argument context type
9+
510
# 8.0.2
611

712
- rearrange time cycle parsing to rethrow proper cron parsing error

package.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,10 @@
2121
},
2222
"scripts": {
2323
"test": "mocha -R dot",
24-
"posttest": "npm run lint && npm run dist",
24+
"posttest": "npm run lint && npm run dist && texample",
2525
"lint": "eslint . --cache && prettier . --check --cache",
2626
"prepare": "npm run dist",
2727
"dist": "babel src -d dist && babel test/helpers/FlowScripts.js -d dist",
28-
"test:md": "texample ./README.md",
2928
"test:lcov": "c8 -r lcov mocha && npm run lint",
3029
"cov:html": "c8 mocha -R dot && c8 report --reporter html"
3130
},
@@ -72,7 +71,7 @@
7271
"bpmn-elements": "^14.1.0"
7372
},
7473
"dependencies": {
75-
"@0dep/piso": "^0.1.3",
74+
"@0dep/piso": "^0.1.4",
7675
"cron-parser": "^4.9.0"
7776
},
7877
"files": [
@@ -85,7 +84,6 @@
8584
"exclude": [
8685
"dist",
8786
"test",
88-
".mocharc.cjs",
8987
"babel.config.cjs"
9088
]
9189
}

src/OnifyTimerEventDefinition.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ export class OnifyTimerEventDefinition extends TimerEventDefinition {
77
constructor(activity, def) {
88
super(activity, def);
99
Object.defineProperty(this, 'supports', {
10-
value: ['cron'],
10+
value: ['cron', 'iso8601'],
1111
});
1212
}
1313
parse(timerType, value) {

types/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
declare module '@onify/flow-extensions' {
2-
import { SequenceFlow, TimerEventDefinition, ElementBase, IExtension } from 'bpmn-elements';
2+
import { SequenceFlow, TimerEventDefinition, ElementBase, IExtension, ContextInstance } from 'bpmn-elements';
33
import { extendFn as extendFunction } from 'moddle-context-serializer';
44

55
export class OnifySequenceFlow extends SequenceFlow {}
66
export class OnifyTimerEventDefinition extends TimerEventDefinition {
77
readonly supports: string[];
88
}
9-
export function extensions(element: ElementBase, context: Context): IExtension;
9+
export function extensions(element: ElementBase, context: ContextInstance): IExtension;
1010
export const extendFn: extendFunction;
1111
}
1212

0 commit comments

Comments
 (0)