Skip to content

Commit

Permalink
feat: element templates runtime versions
Browse files Browse the repository at this point in the history
Config for current runtime platform and version can now be passed to elementTemplates. If template has information about supported engines, compatibility will be verified.

Related to camunda/camunda-modeler#4530
  • Loading branch information
jarekdanielak committed Dec 6, 2024
1 parent 54680ab commit 234b6d1
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 51 deletions.
153 changes: 108 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
"min-dash": "^4.0.0",
"min-dom": "^4.0.3",
"preact-markup": "^2.1.1",
"semver": "^7.6.3",
"semver-compare": "^1.0.0",
"uuid": "^11.0.0"
},
Expand Down
1 change: 1 addition & 0 deletions src/cloud-element-templates/ElementTemplates.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ export default class ElementTemplates extends DefaultElementTemplates {

setEngines(engines) {
this._engines = engines;
this.reset();
}
}

Expand Down
Loading

0 comments on commit 234b6d1

Please sign in to comment.