From 0356acb9d6f719cbccc125c9903ab7ceb00a1362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Konopski?= Date: Mon, 11 Nov 2024 15:49:25 +0100 Subject: [PATCH] deps: update to zeebe-bpmn-moddle@1.7.0 --- CHANGELOG.md | 2 ++ package-lock.json | 14 +++++++------- package.json | 2 +- .../CleanUpTaskListenersBehaviorSpec.js | 17 ++++++++--------- 4 files changed, 18 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a5d7dfb..cbe1fc1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ All notable changes to [camunda-bpmn-js-behaviors](https://github.com/camunda/ca ___Note:__ Yet to be released changes appear here._ +* `FEAT`: support `zeebe:TaskListener` ([#88](https://github.com/camunda/camunda-bpmn-js-behaviors/pull/88)) + ## 1.6.1 * `FIX`: remove empty `zeebe:VersionTag` ([#81](https://github.com/camunda/camunda-bpmn-js-behaviors/pull/81)) diff --git a/package-lock.json b/package-lock.json index 5f6d4fa..80cc352 100644 --- a/package-lock.json +++ b/package-lock.json @@ -42,7 +42,7 @@ "sinon": "^17.0.1", "sinon-chai": "^3.7.0", "webpack": "^5.74.0", - "zeebe-bpmn-moddle": "^1.6.1" + "zeebe-bpmn-moddle": "^1.7.0" }, "peerDependencies": { "bpmn-js": ">= 9", @@ -7899,9 +7899,9 @@ } }, "node_modules/zeebe-bpmn-moddle": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/zeebe-bpmn-moddle/-/zeebe-bpmn-moddle-1.6.1.tgz", - "integrity": "sha512-3gzgw9nUoFNkyDLO3EjCdRgwWt3bsHKP/DknduR3SEfd92wSc0Tz7bjQuX9S/ok4/o25pXz9eCHAmKVitvY5jw==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/zeebe-bpmn-moddle/-/zeebe-bpmn-moddle-1.7.0.tgz", + "integrity": "sha512-eZ6OXSt0c4n9V/oN/46gTlwDIS3GhWQLt9jbM5uS/YryB4yN8wdrrKrtw+TpyNy0SSKWXNDHyC83nCA2blPO3Q==", "dev": true, "license": "MIT" }, @@ -13691,9 +13691,9 @@ "dev": true }, "zeebe-bpmn-moddle": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/zeebe-bpmn-moddle/-/zeebe-bpmn-moddle-1.6.1.tgz", - "integrity": "sha512-3gzgw9nUoFNkyDLO3EjCdRgwWt3bsHKP/DknduR3SEfd92wSc0Tz7bjQuX9S/ok4/o25pXz9eCHAmKVitvY5jw==", + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/zeebe-bpmn-moddle/-/zeebe-bpmn-moddle-1.7.0.tgz", + "integrity": "sha512-eZ6OXSt0c4n9V/oN/46gTlwDIS3GhWQLt9jbM5uS/YryB4yN8wdrrKrtw+TpyNy0SSKWXNDHyC83nCA2blPO3Q==", "dev": true }, "zod": { diff --git a/package.json b/package.json index 9ae32f9..c6bc9a4 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "sinon": "^17.0.1", "sinon-chai": "^3.7.0", "webpack": "^5.74.0", - "zeebe-bpmn-moddle": "^1.6.1" + "zeebe-bpmn-moddle": "^1.7.0" }, "peerDependencies": { "bpmn-js": ">= 9", diff --git a/test/camunda-cloud/CleanUpTaskListenersBehaviorSpec.js b/test/camunda-cloud/CleanUpTaskListenersBehaviorSpec.js index 2cf397b..2516877 100644 --- a/test/camunda-cloud/CleanUpTaskListenersBehaviorSpec.js +++ b/test/camunda-cloud/CleanUpTaskListenersBehaviorSpec.js @@ -14,7 +14,7 @@ describe('camunda-cloud/features/modeling - CleanUpTaskListenersBehavior', funct beforeEach(bootstrapCamundaCloudModeler(diagramXML)); - describe('remove execution listeners if disallowed in element type', function() { + describe('remove task listeners if disallowed in element type', function() { const testCases = [ { @@ -25,10 +25,10 @@ describe('camunda-cloud/features/modeling - CleanUpTaskListenersBehavior', funct } }, { - title: 'User Task -> Gateway', + title: 'User Task -> ParallelGateway', element: 'UserTask', target: { - type: 'bpmn:Gateway' + type: 'bpmn:ParallelGateway' } } ]; @@ -48,9 +48,9 @@ describe('camunda-cloud/features/modeling - CleanUpTaskListenersBehavior', funct // then el = elementRegistry.get(element); - const executionListenersContainer = getTaskListenersContainer(el); + const taskListenersContainer = getTaskListenersContainer(el); - expect(executionListenersContainer).not.to.exist; + expect(taskListenersContainer).not.to.exist; })); @@ -85,15 +85,15 @@ describe('camunda-cloud/features/modeling - CleanUpTaskListenersBehavior', funct // then el = elementRegistry.get(element); - const executionListenersContainer = getTaskListenersContainer(el); + const taskListenersContainer = getTaskListenersContainer(el); - expect(executionListenersContainer).not.to.exist; + expect(taskListenersContainer).not.to.exist; })); }); } }); - describe('should remove execution listeners of disallowed type', function() { + describe('should remove task listeners of disallowed type', function() { it('should execute', inject(function(bpmnReplace, elementRegistry) { @@ -163,7 +163,6 @@ describe('camunda-cloud/features/modeling - CleanUpTaskListenersBehavior', funct // then el = elementRegistry.get('NonZeebeUserTask'); const extensionElements = getBusinessObject(el).get('extensionElements'); - console.log(extensionElements.get('values')); expect(extensionElements.get('values')).to.have.lengthOf(0); }));