This repository was archived by the owner on Nov 23, 2026. It is now read-only.
Repository navigation
Conversation
Update mermaid from 11.x to 12.3.0 and keep the dagre layout in the markdown editor, preview and PDF export, since mermaid 12 lays out diagrams with ELK by default. Signed-off-by: Matteo <matteo.sonnenholzner@kiteworks.com>
mzner
force-pushed
the
chore/OCISDEV-1664-bump-mermaid-12.3.0
branch
from
November 11, 2026 08:52
a28e187 to
ce5ea2d
Compare
1 of 7 tasks
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
LukasHirt
approved these changes
Nov 13, 2026
gauravsoni119
approved these changes
Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
Update mermaid from 11.x to 12.3.0 (root and
web-pkg), with the lockfile and a changelog entry.Mermaid 12 lays out flowchart, state, class, ER, requirement and use-case diagrams with ELK by default. To keep diagrams as they are today,
layout: 'dagre'is set explicitly:mermaid.initializeinuseMermaid.tsmermaidConfigofmd-editor-v3inTextEditor.vue(md-editor-v3 passes its result tomermaid.initialize)Other notes:
vitest@4.1.5entry; the rootpnpm.overridesalready pinvitestto 4.1.6, and pnpm fixes this on any installRelated Issue
Motivation and Context
Keep the mermaid dependency on its latest release. Replaces #13959.
How Has This Been Tested?
vue-tscshows no errors, ESLint shows no new warnings, Prettier passes, andpnpm buildsucceedslayout: 'dagre'without errors. Class and requirement diagrams match the previous output exactly; flowchart and state diagrams keep the dagre arrangement with slightly larger boxesObject.groupBy,Map.groupBy,Promise.withResolversand the ES2023 array and string methods in the browser; all 19 types still renderTypes of changes