mermaid/V10-BreakingChanges.md
Sidharth Vinod eaa84d2d91
feat: Break render and parse types
Both render and parse are async now.
Return type of render contains svg and bindFunctions.
Parse will not throw error if parseOptions.silent is passed.
2023-02-19 13:08:13 +05:30

456 B

A collection of updates that change the behavior

Async

init, parse, render are now async.

Lazy loading and asynchronisity

  • Invalid dates are rendered as syntax error instead of returning best guess or the current date

ParseError is removed

//< v10.0.0
mermaid.parse(text, parseError);

//>= v10.0.0
await mermaid.parse(text).catch(parseError);
// or
try {
  await mermaid.parse(text);
} catch (err) {
  parseError(err);
}