eFrane / vuepress-plugin-mermaidjs

Vuepress plugin for mermaid.js diagrams
https://vuepress-plugin-mermaidjs.efrane.com
73 stars 21 forks source link

build(deps): bump mermaid from 8.14.0 to 10.0.0 #165

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Bumps mermaid from 8.14.0 to 10.0.0.

Release notes

Sourced from mermaid's releases.

v10.0.0

What's Changed

Please refer the v10 changes section in CHANGELOG.md to see detailed migration steps.

Breaking changes in v10

Features

Docs

Chores

New Contributors

Full Changelog: https://github.com/mermaid-js/mermaid/compare/v9.4.0...v10.0.0

v9.4.0

What's Changed

Features

... (truncated)

Changelog

Sourced from mermaid's changelog.

10.0.0

mermaid.render is async and doesn't accept callbacks

// < v10
mermaid.render('id', 'graph TD;\nA-->B', (svg, bindFunctions) => {
  element.innerHTML = svg;
  if (bindFunctions) {
    bindFunctions(element);
  }
});

// Shorter syntax if (bindFunctions) { bindFunctions(element); } // can be replaced with the ?. shorthand bindFunctions?.(element);

// >= v10 with async/await const { svg, bindFunctions } = await mermaid.render('id', 'graph TD;\nA-->B'); element.innerHTML = svg; bindFunctions?.(element);

// >= v10 with promise.then mermaid.render('id', 'graph TD;A-->B').then(({ svg, bindFunctions }) => { element.innerHTML = svg; bindFunctions?.(element); });

mermaid.parse is async and ParseError is removed

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

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

Init deprecated and InitThrowsErrors removed

... (truncated)

Commits
Maintainer changes

This version was pushed to npm by p_brolin47, a new releaser for mermaid since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 1 year ago

Superseded by #170.