Commit Graph

3 Commits

Author SHA1 Message Date
Nico Rehwaldt c40ebf558a chore(util/CompatibilityUtil): correct spacing and simplify warning 2020-05-18 08:10:32 +00:00
Nico Rehwaldt 04ca31fac9 feat(lib): Promisify public APIs
This commit promisifies following APIs:

   BaseViewer#importXML
   BaseViewer#importDefinitions
   BaseViewer#open
   BaseViewer#saveXML
   BaseViewer#saveSVG
   Modeler#createDiagram

Related to https://github.com/bpmn-io/bpmn-js/issues/812

BREAKING CHANGES:

* Users are now expected to have Promises either by default or
polyfilled as the APIs return a Promise now.
2020-04-29 11:12:23 +02:00
Oguz 7c8abfb497 chore(util): add wrapForCompatibility utility 2020-04-29 11:12:23 +02:00