bpmnlint-plugin-camunda-compat 0.3.0 → 0.4.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 CHANGED
@@ -6,6 +6,20 @@ All notable changes to [bpmnlint-plugin-camunda-compat](https://github.com/camun
6
6
 
7
7
  ___Note:__ Yet to be released changes appear here._
8
8
 
9
+ ## 0.4.0
10
+ * `CHORE`: rename `Cloud` `1.4` to `8.0` ([#14](https://github.com/camunda/bpmnlint-plugin-camunda-compat/pull/14))
11
+ * `CHORE`: rename `Cloud` to `Platform`/`Zeebe` ([#15](https://github.com/camunda/bpmnlint-plugin-camunda-compat/pull/15))
12
+
13
+ ## 0.3.0
14
+ * `FEAT`: support multiInstance for subprocesses with cloud 1.0 ([#6](https://github.com/camunda/bpmnlint-plugin-camunda-compat/pull/6))
15
+ * `FEAT`: add Camunda Platform rules ([#5](https://github.com/camunda/bpmnlint-plugin-camunda-compat/pull/5))
16
+ * `FEAT`: add Camunda Cloud 1.4 rule ([#5](https://github.com/camunda/bpmnlint-plugin-camunda-compat/pull/5))
17
+ * `TEST`: add Cloud 1.1, 1.2, 1.3 integration tests ([#4](https://github.com/camunda/bpmnlint-plugin-camunda-compat/pull/4))
18
+ * `TEST`: verify exported configs ([#5](https://github.com/camunda/bpmnlint-plugin-camunda-compat/pull/5))
19
+ * `DEPS`: fix security audit warnings ([#6](https://github.com/camunda/bpmnlint-plugin-camunda-compat/pull/6))
20
+ * `DOCS`: update link to documentation
21
+ * `DOCS`: link Camunda Cloud and Platform BPMN coverage
22
+
9
23
  ## 0.2.0
10
24
 
11
25
  * `FEAT`: early return if execution platform does not match
package/index.js CHANGED
@@ -6,7 +6,7 @@ module.exports = {
6
6
  'camunda-cloud-1-1': 'error',
7
7
  'camunda-cloud-1-2': 'error',
8
8
  'camunda-cloud-1-3': 'error',
9
- 'camunda-cloud-1-4': 'error',
9
+ 'camunda-cloud-8-0': 'error',
10
10
  'camunda-platform-7-15': 'error',
11
11
  'camunda-platform-7-16': 'error',
12
12
  'camunda-platform-7-17': 'error'
@@ -18,7 +18,7 @@ module.exports = {
18
18
  'camunda-cloud-1-1': 'error',
19
19
  'camunda-cloud-1-2': 'error',
20
20
  'camunda-cloud-1-3': 'error',
21
- 'camunda-cloud-1-4': 'error',
21
+ 'camunda-cloud-8-0': 'error',
22
22
  'camunda-platform-7-15': 'error',
23
23
  'camunda-platform-7-16': 'error',
24
24
  'camunda-platform-7-17': 'error'
@@ -30,7 +30,7 @@ module.exports = {
30
30
  'camunda-cloud-1-1': 'error',
31
31
  'camunda-cloud-1-2': 'error',
32
32
  'camunda-cloud-1-3': 'error',
33
- 'camunda-cloud-1-4': 'error'
33
+ 'camunda-cloud-8-0': 'error'
34
34
  }
35
35
  },
36
36
  platform: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bpmnlint-plugin-camunda-compat",
3
- "version": "0.3.0",
3
+ "version": "0.4.0",
4
4
  "description": "A bpmnlint plug-in for Camunda Cloud and Platform compatibility",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -2,4 +2,4 @@ const { createRule } = require('./utils/rule');
2
2
 
3
3
  const checks = require('./camunda-cloud-1-0-checks');
4
4
 
5
- module.exports = createRule('Camunda Cloud', '1.0', checks);
5
+ module.exports = createRule('Camunda Cloud', '1.0', checks, 'Zeebe');
@@ -2,4 +2,4 @@ const { createRule } = require('./utils/rule');
2
2
 
3
3
  const checks = require('./camunda-cloud-1-1-checks');
4
4
 
5
- module.exports = createRule('Camunda Cloud', '1.1', checks);
5
+ module.exports = createRule('Camunda Cloud', '1.1', checks, 'Zeebe');
@@ -2,4 +2,4 @@ const { createRule } = require('./utils/rule');
2
2
 
3
3
  const checks = require('./camunda-cloud-1-2-checks');
4
4
 
5
- module.exports = createRule('Camunda Cloud', '1.2', checks);
5
+ module.exports = createRule('Camunda Cloud', '1.2', checks, 'Zeebe');
@@ -2,4 +2,4 @@ const { createRule } = require('./utils/rule');
2
2
 
3
3
  const checks = require('./camunda-cloud-1-3-checks');
4
4
 
5
- module.exports = createRule('Camunda Cloud', '1.3', checks);
5
+ module.exports = createRule('Camunda Cloud', '1.3', checks, 'Zeebe');
@@ -0,0 +1,5 @@
1
+ const { createRule } = require('./utils/rule');
2
+
3
+ const checks = require('./camunda-cloud-8-0-checks');
4
+
5
+ module.exports = createRule('Camunda Cloud', '8.0', checks, 'Camunda Platform');
@@ -11,7 +11,7 @@ const {
11
11
 
12
12
  const { toSemverMinor } = require('./engine-profile');
13
13
 
14
- module.exports.createRule = function(ruleExecutionPlatform, ruleExecutionPlatformVersion, checks) {
14
+ module.exports.createRule = function(ruleExecutionPlatform, ruleExecutionPlatformVersion, checks, executionPlatformLabel) {
15
15
  return () => {
16
16
  return {
17
17
  check: (node, reporter) => {
@@ -32,11 +32,11 @@ module.exports.createRule = function(ruleExecutionPlatform, ruleExecutionPlatfor
32
32
  const result = checkNode(node, checks);
33
33
 
34
34
  if (result === false) {
35
- reporter.report(node.get('id') || '', `Element of type <${ node.$type }> not supported by ${ ruleExecutionPlatform } ${ toSemverMinor(ruleExecutionPlatformVersion) }`);
35
+ reporter.report(node.get('id') || '', `Element of type <${ node.$type }> not supported by ${ executionPlatformLabel || ruleExecutionPlatform } ${ toSemverMinor(ruleExecutionPlatformVersion) }`);
36
36
  }
37
37
 
38
38
  if (isString(result)) {
39
- reporter.report(node.get('id') || '', `Element of type <${ result }> not supported by ${ ruleExecutionPlatform } ${ toSemverMinor(ruleExecutionPlatformVersion) }`);
39
+ reporter.report(node.get('id') || '', `Element of type <${ result }> not supported by ${ executionPlatformLabel || ruleExecutionPlatform } ${ toSemverMinor(ruleExecutionPlatformVersion) }`);
40
40
  }
41
41
  }
42
42
  };
@@ -1,5 +0,0 @@
1
- const { createRule } = require('./utils/rule');
2
-
3
- const checks = require('./camunda-cloud-1-4-checks');
4
-
5
- module.exports = createRule('Camunda Cloud', '1.4', checks);