Skip to content

Commit

Permalink
refactor: use the new getVersion function
Browse files Browse the repository at this point in the history
The former one is deprecated in bpmn-visualization v0.43.0
  • Loading branch information
tbouffard committed Mar 5, 2024
1 parent e900a89 commit 7c38b67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { BpmnVisualization, FitType } from "bpmn-visualization";
import {BpmnVisualization, FitType, getVersion} from "bpmn-visualization";

import collapsedDiagram from "./diagrams/EC-purchase-orders-collapsed.bpmn?raw";
import { configureRadioButtons } from "./radio-buttons";
Expand Down Expand Up @@ -30,5 +30,5 @@ configureRadioButtons(mainBpmnVisualization);

// display the bpmn-visualization version in the footer
const footer = document.querySelector("footer");
const version = mainBpmnVisualization.getVersion();
const version = getVersion();
footer.innerText = `bpmn-visualization@${version.lib}`;

0 comments on commit 7c38b67

Please sign in to comment.