0.37.0
This new version provides a new API for resetting the entire style of BPMN elements.
Thanks to all the contributors of this release 🌈: @csouchet and @tbouffard
See milestone 0.37.0 to get the list of issues covered by this release.
Highlights
New API for resetting the entire style of BPMN elements
In previous versions of bpmn-visualization
, it was possible to reset the style of one or more properties of one or more elements.
This feature can be used when the style is first updated and then needs to be reset to its initial value.
In version 0.37.0
, a new API is available for resetting all properties in a single call. It is also possible to reset the style of all BPMN diagram elements.
// Reset task and sequence flow styles
bpmnVisualization.bpmnElementsRegistry.resetStyle('task_1', 'sequenceFlow_1');
// reset the style of all elements of the diagram
bpmnVisualization.bpmnElementsRegistry.resetStyle();
Examples
A new example has been added to show how to integrate bpmn-visualization in a Web Component developed with lit.
In particular, it explains how to workaround an issue with Web Component due to mxGraph
.
🤔 For more details, see
- source code for the example application: https://github.com/process-analytics/bpmn-visualization-examples/tree/v0.37.0/projects/typescript-lit-element
- the initial request about the integration issue: #2738 (and the related implementation: process-analytics/bpmn-visualization-examples#507)
Dependencies
bpmn-visualization
now depends on a new version of fast-xml-parser
which addresses a security vulnerability (#2751). This is a follow-up to the correction described in https://github.com/process-analytics/bpmn-visualization-js/releases/tag/v0.36.0.
It's important to note that bpmn-visualization
itself is not vulnerable to this CVE as it doesn't use the processEntities
feature implicated in the vulnerability.
However, we recommend updating your application to the latest version of bpmn-visualization
for optimal security.
ℹ️ Further information can be found in GHSA-gpv5-7x3g-ghjv.
What's Changed
Full Changelog: v0.36.0...v0.37.0
🌈 BPMN diagram styling
- fix: apply style update to the message flow icon (#2744) @tbouffard
- feat(style): add a new API to reset the modified style of given elements via APIs (#2732) @csouchet
🐛 Bug Fixes
- fix: apply style update to the message flow icon (#2744) @tbouffard
📝 Documentation
- docs: improve JSDoc related to the style API (#2735) @tbouffard
📦 Dependency updates
- chore(deps): bump fast-xml-parser from 4.2.4 to 4.2.5 (#2751) @dependabot
👻 Maintenance
- refactor: directly use mxGraph value objects (#2745) @tbouffard