mermaid-js/mermaid
### [`v10.1.0`](https://togithub.com/mermaid-js/mermaid/releases/tag/v10.1.0): 10.1.0
[Compare Source](https://togithub.com/mermaid-js/mermaid/compare/v10.0.2...v10.1.0)
#### What's Changed
### Features
- Markdown strings for simple formatting and automatic wrapping of text by [@knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/4271](https://togithub.com/mermaid-js/mermaid/pull/4271) [Read more ...](https://www.mermaidchart.com/blog/posts/automatic-text-wrapping-in-flowcharts-is-here)
- Implement repeating tasks by [@JeremyFunk](https://togithub.com/JeremyFunk) in [https://github.com/mermaid-js/mermaid/pull/4238](https://togithub.com/mermaid-js/mermaid/pull/4238)
### Bugfixes
- Pie: Adding outer border, text position options by [@Billiam](https://togithub.com/Billiam) in [https://github.com/mermaid-js/mermaid/pull/4145](https://togithub.com/mermaid-js/mermaid/pull/4145)
- Fix: add require entry in package.json by [@lauraceconi](https://togithub.com/lauraceconi) in [https://github.com/mermaid-js/mermaid/pull/4164](https://togithub.com/mermaid-js/mermaid/pull/4164)
- feat: expose the diagram api by [@ted-marozzi](https://togithub.com/ted-marozzi) in [https://github.com/mermaid-js/mermaid/pull/4174](https://togithub.com/mermaid-js/mermaid/pull/4174)
- Expose detectType function by [@Pr0dt0s](https://togithub.com/Pr0dt0s) in [https://github.com/mermaid-js/mermaid/pull/4187](https://togithub.com/mermaid-js/mermaid/pull/4187)
- Remove duplication in "A hexagon node" by [@andrew-clarkson](https://togithub.com/andrew-clarkson) in [https://github.com/mermaid-js/mermaid/pull/4211](https://togithub.com/mermaid-js/mermaid/pull/4211)
- Updated render to remove comments from text by [@kshitijsaksena](https://togithub.com/kshitijsaksena) in [https://github.com/mermaid-js/mermaid/pull/4247](https://togithub.com/mermaid-js/mermaid/pull/4247)
- Define and export the Mermaid type by [@remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mermaid-js/mermaid/pull/4253](https://togithub.com/mermaid-js/mermaid/pull/4253)
- fix([#4137](https://togithub.com/mermaid-js/mermaid/issues/4137)): Cleanup comments before parsing by [@sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/4257](https://togithub.com/mermaid-js/mermaid/pull/4257)
- fix([#4256](https://togithub.com/mermaid-js/mermaid/issues/4256)): Keep error diagram on screen by [@sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/4258](https://togithub.com/mermaid-js/mermaid/pull/4258)
- Fix broken Gantt `todayMarker` tests by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/4207](https://togithub.com/mermaid-js/mermaid/pull/4207)
- Docs: add Latest News section by [@huynhicode](https://togithub.com/huynhicode) in [https://github.com/mermaid-js/mermaid/pull/4254](https://togithub.com/mermaid-js/mermaid/pull/4254)
- Release/10.1.0 by [@knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/4276](https://togithub.com/mermaid-js/mermaid/pull/4276)
### Documentation
- Update integrations.md to include Mermaid Flow Visual Editor by [@ted-marozzi](https://togithub.com/ted-marozzi) in [https://github.com/mermaid-js/mermaid/pull/4184](https://togithub.com/mermaid-js/mermaid/pull/4184)
- docs: make contributing to docs a bit clearer by [@ted-marozzi](https://togithub.com/ted-marozzi) in [https://github.com/mermaid-js/mermaid/pull/4186](https://togithub.com/mermaid-js/mermaid/pull/4186)
- Clean up list of ignored links by [@mre](https://togithub.com/mre) in [https://github.com/mermaid-js/mermaid/pull/4197](https://togithub.com/mermaid-js/mermaid/pull/4197)
- v smol fixes while reading thru docs by [@andrew-clarkson](https://togithub.com/andrew-clarkson) in [https://github.com/mermaid-js/mermaid/pull/4210](https://togithub.com/mermaid-js/mermaid/pull/4210)
- Updated DokuWiki plugin for Mermaid integration by [@RobertWeinmeister](https://togithub.com/RobertWeinmeister) in [https://github.com/mermaid-js/mermaid/pull/4209](https://togithub.com/mermaid-js/mermaid/pull/4209)
- typo fix by [@Whoeza](https://togithub.com/Whoeza) in [https://github.com/mermaid-js/mermaid/pull/4221](https://togithub.com/mermaid-js/mermaid/pull/4221)
- Updates to the Homepage by [@huynhicode](https://togithub.com/huynhicode) in [https://github.com/mermaid-js/mermaid/pull/4226](https://togithub.com/mermaid-js/mermaid/pull/4226)
- Fix typos in timeline docs by [@xuanxu](https://togithub.com/xuanxu) in [https://github.com/mermaid-js/mermaid/pull/4237](https://togithub.com/mermaid-js/mermaid/pull/4237)
- docs: Remove repeated phrase by [@vorburger](https://togithub.com/vorburger) in [https://github.com/mermaid-js/mermaid/pull/4230](https://togithub.com/mermaid-js/mermaid/pull/4230)
- Fix hexagon node flowchart code example in docs by [@piradata](https://togithub.com/piradata) in [https://github.com/mermaid-js/mermaid/pull/4246](https://togithub.com/mermaid-js/mermaid/pull/4246)
### Chores
- chore(deps): update all non-major dependencies (minor) by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4191](https://togithub.com/mermaid-js/mermaid/pull/4191)
- CI(e2e): Skip caching in `actions/setup-node`, as `cypress-io/github-action` already caches for us by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/4194](https://togithub.com/mermaid-js/mermaid/pull/4194)
- fix(deps): update all non-major dependencies (patch) by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4190](https://togithub.com/mermaid-js/mermaid/pull/4190)
- fix([#1066](https://togithub.com/mermaid-js/mermaid/issues/1066)): Return true if parse is success. by [@sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/4183](https://togithub.com/mermaid-js/mermaid/pull/4183)
- fix(squence): getBBox() returns zero by [@ischanx](https://togithub.com/ischanx) in [https://github.com/mermaid-js/mermaid/pull/4181](https://togithub.com/mermaid-js/mermaid/pull/4181)
- fix(deps): update all non-major dependencies (patch) by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4218](https://togithub.com/mermaid-js/mermaid/pull/4218)
- chore(deps): update node.js to v18.15.0 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4219](https://togithub.com/mermaid-js/mermaid/pull/4219)
- Update [@types/lodash-es](https://togithub.com/types/lodash-es) by [@remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mermaid-js/mermaid/pull/4228](https://togithub.com/mermaid-js/mermaid/pull/4228)
- chore(deps): update pnpm to v7.30.0 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4232](https://togithub.com/mermaid-js/mermaid/pull/4232)
- chore(deps): update pnpm to v7.30.1 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4231](https://togithub.com/mermaid-js/mermaid/pull/4231)
- Remove inline-specifiers pnpm option from `.npmrc` file to avoid merge conflicts by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/4249](https://togithub.com/mermaid-js/mermaid/pull/4249)
#### New Contributors
- [@ted-marozzi](https://togithub.com/ted-marozzi) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4184](https://togithub.com/mermaid-js/mermaid/pull/4184)
- [@lauraceconi](https://togithub.com/lauraceconi) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4164](https://togithub.com/mermaid-js/mermaid/pull/4164)
- [@Pr0dt0s](https://togithub.com/Pr0dt0s) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4187](https://togithub.com/mermaid-js/mermaid/pull/4187)
- [@ischanx](https://togithub.com/ischanx) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4181](https://togithub.com/mermaid-js/mermaid/pull/4181)
- [@mre](https://togithub.com/mre) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4197](https://togithub.com/mermaid-js/mermaid/pull/4197)
- [@andrew-clarkson](https://togithub.com/andrew-clarkson) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4211](https://togithub.com/mermaid-js/mermaid/pull/4211)
- [@RobertWeinmeister](https://togithub.com/RobertWeinmeister) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4209](https://togithub.com/mermaid-js/mermaid/pull/4209)
- [@Whoeza](https://togithub.com/Whoeza) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4221](https://togithub.com/mermaid-js/mermaid/pull/4221)
- [@remcohaszing](https://togithub.com/remcohaszing) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4228](https://togithub.com/mermaid-js/mermaid/pull/4228)
- [@vorburger](https://togithub.com/vorburger) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4230](https://togithub.com/mermaid-js/mermaid/pull/4230)
- [@xuanxu](https://togithub.com/xuanxu) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4237](https://togithub.com/mermaid-js/mermaid/pull/4237)
- [@piradata](https://togithub.com/piradata) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4246](https://togithub.com/mermaid-js/mermaid/pull/4246)
- [@JeremyFunk](https://togithub.com/JeremyFunk) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4238](https://togithub.com/mermaid-js/mermaid/pull/4238)
**Full Changelog**: https://github.com/mermaid-js/mermaid/compare/v10.0.2...v10.1.0
### [`v10.0.2`](https://togithub.com/mermaid-js/mermaid/releases/tag/v10.0.2): 10.0.2
[Compare Source](https://togithub.com/mermaid-js/mermaid/compare/v10.0.1...v10.0.2)
### Release Notes
#### Bugfixes
- fix: dayjs import extension [@sidharthv96](https://togithub.com/sidharthv96)
### [`v10.0.1`](https://togithub.com/mermaid-js/mermaid/releases/tag/v10.0.1): 10.0.1
[Compare Source](https://togithub.com/mermaid-js/mermaid/compare/v10.0.0...v10.0.1)
### Release Notes
### Features
- Added grammar to skip comment in attribute block ([#4128](https://togithub.com/mermaid-js/mermaid/issues/4128)) [@kshitijsaksena](https://togithub.com/kshitijsaksena)
- feat: Add support for classDiagram labels ([#4086](https://togithub.com/mermaid-js/mermaid/issues/4086)) [@sidharthv96](https://togithub.com/sidharthv96)
- π section width now covers all tasks ([#4074](https://togithub.com/mermaid-js/mermaid/issues/4074)) [@l2fprod](https://togithub.com/l2fprod)
- π section width now covers all tasks - Timeline ([#4126](https://togithub.com/mermaid-js/mermaid/issues/4126)) [@sidharthv96](https://togithub.com/sidharthv96)
### Bugfixes
- Fix([#4140](https://togithub.com/mermaid-js/mermaid/issues/4140)): Async bug in mermaid.run ([#4142](https://togithub.com/mermaid-js/mermaid/issues/4142)) [@sidharthv96](https://togithub.com/sidharthv96)
- fix [#4157](https://togithub.com/mermaid-js/mermaid/issues/4157): Inject only fontFamily without replacing themeVariables ([#4160](https://togithub.com/mermaid-js/mermaid/issues/4160)) [@sidharthv96](https://togithub.com/sidharthv96)
- fix: Detector order ([#4124](https://togithub.com/mermaid-js/mermaid/issues/4124)) [@sidharthv96](https://togithub.com/sidharthv96)
- fix: fix exports ([#4135](https://togithub.com/mermaid-js/mermaid/issues/4135)) [@Mister-Hope](https://togithub.com/Mister-Hope)
- fix [#4157](https://togithub.com/mermaid-js/mermaid/issues/4157): Inject only fontFamily without replacing themeVariables by [@sidharthv96](https://togithub.com/sidharthv96)
- Elk layout for flowcharts: Incorrect placement of edges when using diamonds in subgraphs by [@knsv](https://togithub.com/knsv)
### Documentation
- Adding app (Deepdwn) to integrations list ([#4127](https://togithub.com/mermaid-js/mermaid/issues/4127)) [@Billiam](https://togithub.com/Billiam)
- Doc (typo): remove duplicate "be" ([#4133](https://togithub.com/mermaid-js/mermaid/issues/4133)) [@Julez404](https://togithub.com/Julez404)
- docs(flowchart): duplicated hexagon node example by [@Oliboy50](https://togithub.com/Oliboy50)
- add links to NiceGUI integration by [@rodja](https://togithub.com/rodja)
- Adding app (Deepdwn) to integrations list by [@Billiam](https://togithub.com/Billiam)
#### Chores
- chore: dagre-d3-es@7.0.9 ([#4147](https://togithub.com/mermaid-js/mermaid/issues/4147)) [@sidharthv96](https://togithub.com/sidharthv96)
- Replace `moment-mini`/`moment` date library with `dayjs` ([#4153](https://togithub.com/mermaid-js/mermaid/issues/4153)) [@aloisklink](https://togithub.com/aloisklink)
π **Thanks to all contributors helping with this release!** π
#### New Contributors
- [@Oliboy50](https://togithub.com/Oliboy50) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4105](https://togithub.com/mermaid-js/mermaid/pull/4105)
- [@rodja](https://togithub.com/rodja) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4107](https://togithub.com/mermaid-js/mermaid/pull/4107)
- [@Julez404](https://togithub.com/Julez404) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4133](https://togithub.com/mermaid-js/mermaid/pull/4133)
- [@l2fprod](https://togithub.com/l2fprod) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4074](https://togithub.com/mermaid-js/mermaid/pull/4074)
- [@kshitijsaksena](https://togithub.com/kshitijsaksena) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4128](https://togithub.com/mermaid-js/mermaid/pull/4128)
**Full Changelog**: https://github.com/mermaid-js/mermaid/compare/v10.0.0...v10.0.1
### [`v10.0.0`](https://togithub.com/mermaid-js/mermaid/blob/HEAD/CHANGELOG.md#1000-httpsgithubcommermaid-jsmermaidreleasestagv1000)
[Compare Source](https://togithub.com/mermaid-js/mermaid/compare/v9.4.3...v10.0.0)
##### Mermaid is ESM only!
We've dropped CJS support. So, you will have to update your import scripts as follows.
```html
```
You can keep using v9 by adding the `@9` in the CDN URL.
```diff
-
+
```
##### mermaid.render is async and doesn't accept callbacks
```js
// < 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
```js
// < 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`.
```js
// < v10
mermaid.init(config, selector, cb);
//>= v10
mermaid.initialize(config);
mermaid.run({
querySelector: selector,
postRenderCallback: cb,
suppressErrors: true,
});
```
```js
// < 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.
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.
This PR contains the following updates:
^9.3.0
->^10.0.0
Release Notes
mermaid-js/mermaid
### [`v10.1.0`](https://togithub.com/mermaid-js/mermaid/releases/tag/v10.1.0): 10.1.0 [Compare Source](https://togithub.com/mermaid-js/mermaid/compare/v10.0.2...v10.1.0) #### What's Changed ### Features - Markdown strings for simple formatting and automatic wrapping of text by [@knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/4271](https://togithub.com/mermaid-js/mermaid/pull/4271) [Read more ...](https://www.mermaidchart.com/blog/posts/automatic-text-wrapping-in-flowcharts-is-here) - Implement repeating tasks by [@JeremyFunk](https://togithub.com/JeremyFunk) in [https://github.com/mermaid-js/mermaid/pull/4238](https://togithub.com/mermaid-js/mermaid/pull/4238) ### Bugfixes - Pie: Adding outer border, text position options by [@Billiam](https://togithub.com/Billiam) in [https://github.com/mermaid-js/mermaid/pull/4145](https://togithub.com/mermaid-js/mermaid/pull/4145) - Fix: add require entry in package.json by [@lauraceconi](https://togithub.com/lauraceconi) in [https://github.com/mermaid-js/mermaid/pull/4164](https://togithub.com/mermaid-js/mermaid/pull/4164) - feat: expose the diagram api by [@ted-marozzi](https://togithub.com/ted-marozzi) in [https://github.com/mermaid-js/mermaid/pull/4174](https://togithub.com/mermaid-js/mermaid/pull/4174) - Expose detectType function by [@Pr0dt0s](https://togithub.com/Pr0dt0s) in [https://github.com/mermaid-js/mermaid/pull/4187](https://togithub.com/mermaid-js/mermaid/pull/4187) - Remove duplication in "A hexagon node" by [@andrew-clarkson](https://togithub.com/andrew-clarkson) in [https://github.com/mermaid-js/mermaid/pull/4211](https://togithub.com/mermaid-js/mermaid/pull/4211) - Updated render to remove comments from text by [@kshitijsaksena](https://togithub.com/kshitijsaksena) in [https://github.com/mermaid-js/mermaid/pull/4247](https://togithub.com/mermaid-js/mermaid/pull/4247) - Define and export the Mermaid type by [@remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mermaid-js/mermaid/pull/4253](https://togithub.com/mermaid-js/mermaid/pull/4253) - fix([#4137](https://togithub.com/mermaid-js/mermaid/issues/4137)): Cleanup comments before parsing by [@sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/4257](https://togithub.com/mermaid-js/mermaid/pull/4257) - fix([#4256](https://togithub.com/mermaid-js/mermaid/issues/4256)): Keep error diagram on screen by [@sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/4258](https://togithub.com/mermaid-js/mermaid/pull/4258) - Fix broken Gantt `todayMarker` tests by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/4207](https://togithub.com/mermaid-js/mermaid/pull/4207) - Docs: add Latest News section by [@huynhicode](https://togithub.com/huynhicode) in [https://github.com/mermaid-js/mermaid/pull/4254](https://togithub.com/mermaid-js/mermaid/pull/4254) - Release/10.1.0 by [@knsv](https://togithub.com/knsv) in [https://github.com/mermaid-js/mermaid/pull/4276](https://togithub.com/mermaid-js/mermaid/pull/4276) ### Documentation - Update integrations.md to include Mermaid Flow Visual Editor by [@ted-marozzi](https://togithub.com/ted-marozzi) in [https://github.com/mermaid-js/mermaid/pull/4184](https://togithub.com/mermaid-js/mermaid/pull/4184) - docs: make contributing to docs a bit clearer by [@ted-marozzi](https://togithub.com/ted-marozzi) in [https://github.com/mermaid-js/mermaid/pull/4186](https://togithub.com/mermaid-js/mermaid/pull/4186) - Clean up list of ignored links by [@mre](https://togithub.com/mre) in [https://github.com/mermaid-js/mermaid/pull/4197](https://togithub.com/mermaid-js/mermaid/pull/4197) - v smol fixes while reading thru docs by [@andrew-clarkson](https://togithub.com/andrew-clarkson) in [https://github.com/mermaid-js/mermaid/pull/4210](https://togithub.com/mermaid-js/mermaid/pull/4210) - Updated DokuWiki plugin for Mermaid integration by [@RobertWeinmeister](https://togithub.com/RobertWeinmeister) in [https://github.com/mermaid-js/mermaid/pull/4209](https://togithub.com/mermaid-js/mermaid/pull/4209) - typo fix by [@Whoeza](https://togithub.com/Whoeza) in [https://github.com/mermaid-js/mermaid/pull/4221](https://togithub.com/mermaid-js/mermaid/pull/4221) - Updates to the Homepage by [@huynhicode](https://togithub.com/huynhicode) in [https://github.com/mermaid-js/mermaid/pull/4226](https://togithub.com/mermaid-js/mermaid/pull/4226) - Fix typos in timeline docs by [@xuanxu](https://togithub.com/xuanxu) in [https://github.com/mermaid-js/mermaid/pull/4237](https://togithub.com/mermaid-js/mermaid/pull/4237) - docs: Remove repeated phrase by [@vorburger](https://togithub.com/vorburger) in [https://github.com/mermaid-js/mermaid/pull/4230](https://togithub.com/mermaid-js/mermaid/pull/4230) - Fix hexagon node flowchart code example in docs by [@piradata](https://togithub.com/piradata) in [https://github.com/mermaid-js/mermaid/pull/4246](https://togithub.com/mermaid-js/mermaid/pull/4246) ### Chores - chore(deps): update all non-major dependencies (minor) by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4191](https://togithub.com/mermaid-js/mermaid/pull/4191) - CI(e2e): Skip caching in `actions/setup-node`, as `cypress-io/github-action` already caches for us by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/4194](https://togithub.com/mermaid-js/mermaid/pull/4194) - fix(deps): update all non-major dependencies (patch) by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4190](https://togithub.com/mermaid-js/mermaid/pull/4190) - fix([#1066](https://togithub.com/mermaid-js/mermaid/issues/1066)): Return true if parse is success. by [@sidharthv96](https://togithub.com/sidharthv96) in [https://github.com/mermaid-js/mermaid/pull/4183](https://togithub.com/mermaid-js/mermaid/pull/4183) - fix(squence): getBBox() returns zero by [@ischanx](https://togithub.com/ischanx) in [https://github.com/mermaid-js/mermaid/pull/4181](https://togithub.com/mermaid-js/mermaid/pull/4181) - fix(deps): update all non-major dependencies (patch) by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4218](https://togithub.com/mermaid-js/mermaid/pull/4218) - chore(deps): update node.js to v18.15.0 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4219](https://togithub.com/mermaid-js/mermaid/pull/4219) - Update [@types/lodash-es](https://togithub.com/types/lodash-es) by [@remcohaszing](https://togithub.com/remcohaszing) in [https://github.com/mermaid-js/mermaid/pull/4228](https://togithub.com/mermaid-js/mermaid/pull/4228) - chore(deps): update pnpm to v7.30.0 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4232](https://togithub.com/mermaid-js/mermaid/pull/4232) - chore(deps): update pnpm to v7.30.1 by [@renovate](https://togithub.com/renovate) in [https://github.com/mermaid-js/mermaid/pull/4231](https://togithub.com/mermaid-js/mermaid/pull/4231) - Remove inline-specifiers pnpm option from `.npmrc` file to avoid merge conflicts by [@aloisklink](https://togithub.com/aloisklink) in [https://github.com/mermaid-js/mermaid/pull/4249](https://togithub.com/mermaid-js/mermaid/pull/4249) #### New Contributors - [@ted-marozzi](https://togithub.com/ted-marozzi) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4184](https://togithub.com/mermaid-js/mermaid/pull/4184) - [@lauraceconi](https://togithub.com/lauraceconi) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4164](https://togithub.com/mermaid-js/mermaid/pull/4164) - [@Pr0dt0s](https://togithub.com/Pr0dt0s) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4187](https://togithub.com/mermaid-js/mermaid/pull/4187) - [@ischanx](https://togithub.com/ischanx) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4181](https://togithub.com/mermaid-js/mermaid/pull/4181) - [@mre](https://togithub.com/mre) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4197](https://togithub.com/mermaid-js/mermaid/pull/4197) - [@andrew-clarkson](https://togithub.com/andrew-clarkson) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4211](https://togithub.com/mermaid-js/mermaid/pull/4211) - [@RobertWeinmeister](https://togithub.com/RobertWeinmeister) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4209](https://togithub.com/mermaid-js/mermaid/pull/4209) - [@Whoeza](https://togithub.com/Whoeza) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4221](https://togithub.com/mermaid-js/mermaid/pull/4221) - [@remcohaszing](https://togithub.com/remcohaszing) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4228](https://togithub.com/mermaid-js/mermaid/pull/4228) - [@vorburger](https://togithub.com/vorburger) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4230](https://togithub.com/mermaid-js/mermaid/pull/4230) - [@xuanxu](https://togithub.com/xuanxu) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4237](https://togithub.com/mermaid-js/mermaid/pull/4237) - [@piradata](https://togithub.com/piradata) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4246](https://togithub.com/mermaid-js/mermaid/pull/4246) - [@JeremyFunk](https://togithub.com/JeremyFunk) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4238](https://togithub.com/mermaid-js/mermaid/pull/4238) **Full Changelog**: https://github.com/mermaid-js/mermaid/compare/v10.0.2...v10.1.0 ### [`v10.0.2`](https://togithub.com/mermaid-js/mermaid/releases/tag/v10.0.2): 10.0.2 [Compare Source](https://togithub.com/mermaid-js/mermaid/compare/v10.0.1...v10.0.2) ### Release Notes #### Bugfixes - fix: dayjs import extension [@sidharthv96](https://togithub.com/sidharthv96) ### [`v10.0.1`](https://togithub.com/mermaid-js/mermaid/releases/tag/v10.0.1): 10.0.1 [Compare Source](https://togithub.com/mermaid-js/mermaid/compare/v10.0.0...v10.0.1) ### Release Notes ### Features - Added grammar to skip comment in attribute block ([#4128](https://togithub.com/mermaid-js/mermaid/issues/4128)) [@kshitijsaksena](https://togithub.com/kshitijsaksena) - feat: Add support for classDiagram labels ([#4086](https://togithub.com/mermaid-js/mermaid/issues/4086)) [@sidharthv96](https://togithub.com/sidharthv96) - π section width now covers all tasks ([#4074](https://togithub.com/mermaid-js/mermaid/issues/4074)) [@l2fprod](https://togithub.com/l2fprod) - π section width now covers all tasks - Timeline ([#4126](https://togithub.com/mermaid-js/mermaid/issues/4126)) [@sidharthv96](https://togithub.com/sidharthv96) ### Bugfixes - Fix([#4140](https://togithub.com/mermaid-js/mermaid/issues/4140)): Async bug in mermaid.run ([#4142](https://togithub.com/mermaid-js/mermaid/issues/4142)) [@sidharthv96](https://togithub.com/sidharthv96) - fix [#4157](https://togithub.com/mermaid-js/mermaid/issues/4157): Inject only fontFamily without replacing themeVariables ([#4160](https://togithub.com/mermaid-js/mermaid/issues/4160)) [@sidharthv96](https://togithub.com/sidharthv96) - fix: Detector order ([#4124](https://togithub.com/mermaid-js/mermaid/issues/4124)) [@sidharthv96](https://togithub.com/sidharthv96) - fix: fix exports ([#4135](https://togithub.com/mermaid-js/mermaid/issues/4135)) [@Mister-Hope](https://togithub.com/Mister-Hope) - fix [#4157](https://togithub.com/mermaid-js/mermaid/issues/4157): Inject only fontFamily without replacing themeVariables by [@sidharthv96](https://togithub.com/sidharthv96) - Elk layout for flowcharts: Incorrect placement of edges when using diamonds in subgraphs by [@knsv](https://togithub.com/knsv) ### Documentation - Adding app (Deepdwn) to integrations list ([#4127](https://togithub.com/mermaid-js/mermaid/issues/4127)) [@Billiam](https://togithub.com/Billiam) - Doc (typo): remove duplicate "be" ([#4133](https://togithub.com/mermaid-js/mermaid/issues/4133)) [@Julez404](https://togithub.com/Julez404) - docs(flowchart): duplicated hexagon node example by [@Oliboy50](https://togithub.com/Oliboy50) - add links to NiceGUI integration by [@rodja](https://togithub.com/rodja) - Adding app (Deepdwn) to integrations list by [@Billiam](https://togithub.com/Billiam) #### Chores - chore: dagre-d3-es@7.0.9 ([#4147](https://togithub.com/mermaid-js/mermaid/issues/4147)) [@sidharthv96](https://togithub.com/sidharthv96) - Replace `moment-mini`/`moment` date library with `dayjs` ([#4153](https://togithub.com/mermaid-js/mermaid/issues/4153)) [@aloisklink](https://togithub.com/aloisklink) π **Thanks to all contributors helping with this release!** π #### New Contributors - [@Oliboy50](https://togithub.com/Oliboy50) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4105](https://togithub.com/mermaid-js/mermaid/pull/4105) - [@rodja](https://togithub.com/rodja) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4107](https://togithub.com/mermaid-js/mermaid/pull/4107) - [@Julez404](https://togithub.com/Julez404) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4133](https://togithub.com/mermaid-js/mermaid/pull/4133) - [@l2fprod](https://togithub.com/l2fprod) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4074](https://togithub.com/mermaid-js/mermaid/pull/4074) - [@kshitijsaksena](https://togithub.com/kshitijsaksena) made their first contribution in [https://github.com/mermaid-js/mermaid/pull/4128](https://togithub.com/mermaid-js/mermaid/pull/4128) **Full Changelog**: https://github.com/mermaid-js/mermaid/compare/v10.0.0...v10.0.1 ### [`v10.0.0`](https://togithub.com/mermaid-js/mermaid/blob/HEAD/CHANGELOG.md#1000-httpsgithubcommermaid-jsmermaidreleasestagv1000) [Compare Source](https://togithub.com/mermaid-js/mermaid/compare/v9.4.3...v10.0.0) ##### Mermaid is ESM only! We've dropped CJS support. So, you will have to update your import scripts as follows. ```html ``` You can keep using v9 by adding the `@9` in the CDN URL. ```diff - + ``` ##### mermaid.render is async and doesn't accept callbacks ```js // < 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 ```js // < 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`. ```js // < v10 mermaid.init(config, selector, cb); //>= v10 mermaid.initialize(config); mermaid.run({ querySelector: selector, postRenderCallback: cb, suppressErrors: true, }); ``` ```js // < 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.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.
This PR has been generated by Mend Renovate. View repository job log here.