@camunda/linting 3.40.1 → 3.42.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.
@@ -348,6 +348,10 @@ function getExtensionElementNotAllowedErrorMessage(report, executionPlatform, ex
348
348
  return getSupportedMessage(`${ getIndefiniteArticle(typeString) } <${ typeString }> with <Version tag>`, executionPlatform, executionPlatformVersion, allowedVersion);
349
349
  }
350
350
 
351
+ if (is(node, 'bpmn:AdHocSubProcess') && is(extensionElement, 'zeebe:TaskDefinition')) {
352
+ return getSupportedMessage(`${ getIndefiniteArticle(typeString) } <${ typeString }> with <Implementation: Job worker>`, executionPlatform, executionPlatformVersion, allowedVersion);
353
+ }
354
+
351
355
  return message;
352
356
  }
353
357
 
@@ -423,6 +427,14 @@ function getPropertyDependentRequiredErrorMessage(report) {
423
427
  return `${ getIndefiniteArticle(typeString) } <${ typeString }> with <Multi-instance marker> and defined <Output element> must have a defined <Output collection>`;
424
428
  }
425
429
 
430
+ if (is(node, 'zeebe:AdHoc') && property === 'outputCollection' && dependentRequiredProperty === 'outputElement') {
431
+ return `${ getIndefiniteArticle(typeString) } <${ typeString }> with defined <Output collection> must have a defined <Output element>`;
432
+ }
433
+
434
+ if (is(node, 'zeebe:AdHoc') && property === 'outputElement' && dependentRequiredProperty === 'outputCollection') {
435
+ return `${ getIndefiniteArticle(typeString) } <${ typeString }> with defined <Output element> must have a defined <Output collection>`;
436
+ }
437
+
426
438
  return message;
427
439
  }
428
440
 
@@ -469,6 +481,14 @@ function getPropertyNotAllowedErrorMessage(report, executionPlatform, executionP
469
481
  return getSupportedMessage(`${ getIndefiniteArticle(typeString) } <${ typeString }> with <Form type: Camunda form (linked)>`, executionPlatform, executionPlatformVersion, allowedVersion);
470
482
  }
471
483
 
484
+ if (is(node, 'zeebe:AdHoc') && property === 'outputCollection') {
485
+ return getSupportedMessage(`${ getIndefiniteArticle(typeString) } <${ typeString }> with <Output collection>`, executionPlatform, executionPlatformVersion, allowedVersion);
486
+ }
487
+
488
+ if (is(node, 'zeebe:AdHoc') && property === 'outputElement') {
489
+ return getSupportedMessage(`${ getIndefiniteArticle(typeString) } <${ typeString }> with <Output element>`, executionPlatform, executionPlatformVersion, allowedVersion);
490
+ }
491
+
472
492
  return message;
473
493
  }
474
494
 
@@ -362,6 +362,24 @@ export function getEntryIds(report) {
362
362
  return [ 'versionTag' ];
363
363
  }
364
364
 
365
+ // (1) match dependent property errors first
366
+ if (isPropertyDependentRequiredError(data, 'outputCollection', 'zeebe:AdHoc')) {
367
+ return [ 'adHocOutputCollection' ];
368
+ }
369
+
370
+ if (isPropertyDependentRequiredError(data, 'outputElement', 'zeebe:AdHoc')) {
371
+ return [ 'adHocOutputElement' ];
372
+ }
373
+
374
+ // (2) match property errors second
375
+ if (isPropertyError(data, 'outputCollection', 'zeebe:AdHoc')) {
376
+ return [ 'adHocOutputCollection' ];
377
+ }
378
+
379
+ if (isPropertyError(data, 'outputElement', 'zeebe:AdHoc')) {
380
+ return [ 'adHocOutputElement' ];
381
+ }
382
+
365
383
  return [];
366
384
  }
367
385
 
@@ -629,6 +647,22 @@ export function getErrorMessage(id, report) {
629
647
  return 'Version tag must be defined.';
630
648
  }
631
649
  }
650
+
651
+ if (isPropertyDependentRequiredError(data, 'outputCollection', 'zeebe:AdHoc')) {
652
+ return 'Output collection must be defined.';
653
+ }
654
+
655
+ if (isPropertyDependentRequiredError(data, 'outputElement', 'zeebe:AdHoc')) {
656
+ return 'Output element must be defined.';
657
+ }
658
+
659
+ if (isPropertyError(data, 'outputCollection', 'zeebe:AdHoc') && type === ERROR_TYPES.PROPERTY_NOT_ALLOWED) {
660
+ return getNotSupportedMessage('Output collection', allowedVersion);
661
+ }
662
+
663
+ if (isPropertyError(data, 'outputElement', 'zeebe:AdHoc') && type === ERROR_TYPES.PROPERTY_NOT_ALLOWED) {
664
+ return getNotSupportedMessage('Output element', allowedVersion);
665
+ }
632
666
  }
633
667
 
634
668
  function isExtensionElementNotAllowedError(data, extensionElement, type) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camunda/linting",
3
- "version": "3.40.1",
3
+ "version": "3.42.0",
4
4
  "description": "Linting for Camunda",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -30,9 +30,9 @@
30
30
  "license": "MIT",
31
31
  "dependencies": {
32
32
  "@bpmn-io/diagram-js-ui": "^0.2.3",
33
- "bpmn-moddle": "^9.0.1",
33
+ "bpmn-moddle": "^9.0.2",
34
34
  "bpmnlint": "^11.6.0",
35
- "bpmnlint-plugin-camunda-compat": "^2.39.2",
35
+ "bpmnlint-plugin-camunda-compat": "^2.42.0",
36
36
  "bpmnlint-utils": "^1.0.2",
37
37
  "camunda-bpmn-moddle": "^7.0.1",
38
38
  "clsx": "^2.0.0",
@@ -40,13 +40,13 @@
40
40
  "min-dom": "^5.1.1",
41
41
  "modeler-moddle": "^0.2.0",
42
42
  "semver-compare": "^1.0.0",
43
- "zeebe-bpmn-moddle": "^1.9.0"
43
+ "zeebe-bpmn-moddle": "^1.11.0"
44
44
  },
45
45
  "devDependencies": {
46
- "bpmn-js": "^18.3.1",
47
- "bpmn-js-element-templates": "^2.5.3",
48
- "bpmn-js-properties-panel": "^5.38.0",
49
- "camunda-bpmn-js-behaviors": "^1.9.1",
46
+ "bpmn-js": "^18.6.2",
47
+ "bpmn-js-element-templates": "^2.10.0",
48
+ "bpmn-js-properties-panel": "^5.42.0",
49
+ "camunda-bpmn-js-behaviors": "^1.11.0",
50
50
  "chai": "^4.5.0",
51
51
  "cross-env": "^7.0.3",
52
52
  "eslint": "^8.57.1",
@@ -58,12 +58,12 @@
58
58
  "karma-mocha": "^2.0.1",
59
59
  "karma-sinon-chai": "^2.0.2",
60
60
  "karma-webpack": "^5.0.1",
61
- "mocha": "^10.7.3",
61
+ "mocha": "^11.7.1",
62
62
  "mocha-test-container-support": "^0.2.0",
63
- "puppeteer": "^23.3.1",
63
+ "puppeteer": "^24.16.2",
64
64
  "sinon": "^17.0.1",
65
65
  "sinon-chai": "^3.7.0",
66
- "webpack": "^5.94.0"
66
+ "webpack": "^5.101.2"
67
67
  },
68
68
  "peerDependencies": {
69
69
  "bpmn-js-properties-panel": ">= 2.0.0"