Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bump(deps): update dependency mermaid to v10 #473

Merged
merged 1 commit into from
Jun 10, 2023
Merged

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jun 10, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mermaid 9.3.0 -> 10.2.3 age adoption passing confidence

Release Notes

mermaid-js/mermaid

v10.2.3: 10.2.3

Compare Source

Release Notes

🎉 Thanks to all contributors helping with this release! 🎉

What's Changed

New Contributors

Full Changelog: mermaid-js/mermaid@v10.2.2...v10.2.3

v10.2.2: 10.2.2

Compare Source

What's Changed

Full Changelog: mermaid-js/mermaid@v10.2.1...v10.2.2

v10.2.1: 10.2.1

Compare Source

What's Changed

Bugfixes

Full Changelog: mermaid-js/mermaid@v10.2.0...v10.2.1

v10.2.0: 10.2.0

Compare Source

What's Changed

Features

Bugfixes

Documentation

Chores

🎉 Thanks to all contributors helping with this release! 🎉

New Contributors


Full Changelog: mermaid-js/mermaid@v10.1.0...v10.2.0

Thanks to Mermaid Chart for ongoing support

v10.1.0: 10.1.0

Compare Source

What's Changed

Features

Bugfixes

Documentation

Chores

New Contributors

Full Changelog: mermaid-js/mermaid@v10.0.2...v10.1.0

v10.0.2: 10.0.2

Compare Source

Release Notes

Bugfixes

v10.0.1: 10.0.1

Compare Source

Release Notes

Features

Bugfixes

Documentation

  • docs(flowchart): duplicated hexagon node example by @​Oliboy50
  • add links to NiceGUI integration by @​rodja
  • Adding app (Deepdwn) to integrations list by @​Billiam

Chores

🎉 Thanks to all contributors helping with this release! 🎉

New Contributors

Full Changelog: mermaid-js/mermaid@v10.0.0...v10.0.1

v10.0.0

Compare Source

Mermaid is ESM only!

We've dropped CJS support. So, you will have to update your import scripts as follows.

<script type="module">
  import mermaid from 'https://cdn.jsdelivr.net/npm/mermaid@10/dist/mermaid.esm.min.mjs';
  mermaid.initialize({ startOnLoad: true });
</script>

You can keep using v9 by adding the @9 in the CDN URL.

- <script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.js"></script>
+ <script src="https://cdn.jsdelivr.net/npm/mermaid@9/dist/mermaid.js"></script>
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

The config passed to init was not being used eariler.
It will now be used.
The init function is deprecated and will be removed in the next major release.
init currently works as a wrapper to initialize and run.

// < v10
mermaid.init(config, selector, cb);

//>= v10
mermaid.initialize(config);
mermaid.run({
  querySelector: selector,
  postRenderCallback: cb,
  suppressErrors: true,
});
// < v10
mermaid.initThrowsErrors(config, selector, cb);

//>= v10
mermaid.initialize(config);
mermaid.run({
  querySelector: selector,
  postRenderCallback: cb,
  suppressErrors: false,
});

// TODO: Populate changelog pre v10

  • Config has a lot of changes
  • globalReset resets to defaultConfig instead of current config. Use reset instead.

v9.4.3

Compare Source

Full Changelog: mermaid-js/mermaid@v9.4.2...v9.4.3

Fixes imports for dayjs and cytoscape.

v9.4.2

Compare Source

What's Changed

New Contributors

Full Changelog: mermaid-js/mermaid@v9.4.0...v9.4.2

v9.4.0

Compare Source

What's Changed

Features
Breaking changes
  • Mind map and timeline diagrams are lazy loaded by mermaid. In order to use these diagrams you need to use the renderAsync method of rendering. The @​mermaid-js/mermaid-mindmap package is deprecated by this.
Documentation
Bug Fixes
Chores

New Contributors

Full Changelog: mermaid-js/mermaid@v9.3.0...v9.4.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

@github-actions github-actions bot added area/contented-preview kind/dependencies Pull requests that update a dependency file labels Jun 10, 2023
@netlify
Copy link

netlify bot commented Jun 10, 2023

Deploy Preview for contented ready!

Name Link
🔨 Latest commit 2d29023
🔍 Latest deploy log https://app.netlify.com/sites/contented/deploys/64840302315f680007d1c6c9
😎 Deploy Preview https://deploy-preview-473--contented.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@fuxingloh fuxingloh enabled auto-merge June 10, 2023 05:00
@fuxingloh fuxingloh added this pull request to the merge queue Jun 10, 2023
@codecov
Copy link

codecov bot commented Jun 10, 2023

Codecov Report

Merging #473 (2d29023) into main (25930da) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #473   +/-   ##
=======================================
  Coverage   82.02%   82.02%           
=======================================
  Files          10       10           
  Lines         395      395           
  Branches       68       68           
=======================================
  Hits          324      324           
  Misses         65       65           
  Partials        6        6           

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

Merged via the queue into main with commit e95b597 Jun 10, 2023
@fuxingloh fuxingloh deleted the renovate/mermaid-10.x branch June 10, 2023 05:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant