bpmnlint-plugin-camunda-compat 2.7.0 → 2.8.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/index.js CHANGED
@@ -35,7 +35,6 @@ const camundaCloud13Rules = withConfig(camundaCloud12Rules, { version: '1.3' });
35
35
 
36
36
  const camundaCloud80Rules = withConfig({
37
37
  ...omit(camundaCloud13Rules, 'no-template'),
38
- 'secrets': 'error'
39
38
  }, { version: '8.0' });
40
39
 
41
40
  const camundaCloud81Rules = withConfig({
@@ -58,8 +57,10 @@ const camundaCloud82Rules = withConfig({
58
57
 
59
58
  const camundaCloud83Rules = withConfig({
60
59
  ...omit(camundaCloud82Rules, [
61
- 'start-form'
60
+ 'start-form',
61
+ 'no-signal-event-sub-process'
62
62
  ]),
63
+ 'secrets': 'warn',
63
64
  'signal-reference': 'error'
64
65
  }, { version: '8.3' });
65
66
 
@@ -155,10 +156,11 @@ module.exports = {
155
156
  rules
156
157
  };
157
158
 
158
- function withConfig(rules, config, type = 'error') {
159
+ function withConfig(rules, config) {
159
160
  let rulesWithConfig = {};
160
161
 
161
162
  for (let name in rules) {
163
+ const type = Array.isArray(rules[ name ]) ? rules[ name ][0] : rules[ name ];
162
164
  rulesWithConfig[ name ] = [ type, config ];
163
165
  }
164
166
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpmnlint-plugin-camunda-compat",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "A bpmnlint plug-in for Camunda Platform compatibility",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -4,7 +4,8 @@ module.exports = {
4
4
  'bpmn:ErrorEventDefinition': '1.0',
5
5
  'bpmn:EscalationEventDefinition': '8.2',
6
6
  'bpmn:MessageEventDefinition': '1.0',
7
- 'bpmn:TimerEventDefinition': '1.0'
7
+ 'bpmn:TimerEventDefinition': '1.0',
8
+ 'bpmn:SignalEventDefinition': '8.3',
8
9
  },
9
10
  'bpmn:BusinessRuleTask': '1.1',
10
11
  'bpmn:CallActivity': '1.0',
@@ -28,7 +29,8 @@ module.exports = {
28
29
  'bpmn:IntermediateCatchEvent': {
29
30
  'bpmn:MessageEventDefinition': '1.0',
30
31
  'bpmn:LinkEventDefinition': '8.2',
31
- 'bpmn:TimerEventDefinition': '1.0'
32
+ 'bpmn:TimerEventDefinition': '1.0',
33
+ 'bpmn:SignalEventDefinition': '8.3'
32
34
  },
33
35
  'bpmn:IntermediateThrowEvent': {
34
36
  '_': '1.1',
@@ -31,7 +31,8 @@ module.exports = skipInNonExecutableProcess(function() {
31
31
  node,
32
32
  parentNode: null,
33
33
  eventDefinition,
34
- parent
34
+ parent,
35
+ allowedVersion: '8.3'
35
36
  }
36
37
  };
37
38
 
@@ -98,12 +98,12 @@ function getReport(propertyName, node, parentNode) {
98
98
  const path = getPath(node, parentNode);
99
99
 
100
100
  return {
101
- message: `Property <${ propertyName }> is not a valid secret`,
101
+ message: `Property <${ propertyName }> uses deprecated secret expression format`,
102
102
  path: path
103
103
  ? [ ...getPath(node, parentNode), propertyName ]
104
104
  : [ propertyName ],
105
105
  data: {
106
- type: ERROR_TYPES.SECRET_EXPRESSION_INVALID,
106
+ type: ERROR_TYPES.SECRET_EXPRESSION_FORMAT_DEPRECATED,
107
107
  node,
108
108
  parentNode: parentNode,
109
109
  property: propertyName
@@ -20,5 +20,5 @@ module.exports.ERROR_TYPES = Object.freeze({
20
20
  PROPERTY_VALUE_DUPLICATED: 'camunda.propertyValueDuplicated',
21
21
  PROPERTY_VALUE_NOT_ALLOWED: 'camunda.propertyValueNotAllowed',
22
22
  PROPERTY_VALUE_REQUIRED: 'camunda.propertyValueRequired',
23
- SECRET_EXPRESSION_INVALID: 'camunda.secretExpressionInvalid'
23
+ SECRET_EXPRESSION_FORMAT_DEPRECATED: 'camunda.secretExpressionFormatDeprecated'
24
24
  });