Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

chore(web): [OCISDEV-1664] update mermaid to 12.3.0 - #13961

Open
mzner wants to merge 1 commit into
masterfrom
chore/OCISDEV-1664-bump-mermaid-12.3.0
Open

mzner wants to merge 1 commit into
masterfrom
chore/OCISDEV-1664-bump-mermaid-12.3.0

Conversation

@mzner

@mzner mzner commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

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:

  • PDF export: mermaid.initialize in useMermaid.ts
  • markdown editor and preview: mermaidConfig of md-editor-v3 in TextEditor.vue (md-editor-v3 passes its result to mermaid.initialize)

Other notes:

  • mermaid 12 requires Safari 17.4+ / ES2024
  • the lockfile also drops a stale vitest@4.1.5 entry; the root pnpm.overrides already pin vitest to 4.1.6, and pnpm fixes this on any install

Related Issue

  • Fixes OCISDEV-1664

Motivation and Context

Keep the mermaid dependency on its latest release. Replaces #13959.

How Has This Been Tested?

  • test environment: Node 24.15, vitest, headless Chromium
  • test case 1: full unit test suite passes (350 test files, 2762 tests), including a new test that the PDF export initializes mermaid with the dagre layout. vue-tsc shows no errors, ESLint shows no new warnings, Prettier passes, and pnpm build succeeds
  • test case 2: rendered 19 diagram types with mermaid 12.3.0 and layout: 'dagre' without errors. Class and requirement diagrams match the previous output exactly; flowchart and state diagrams keep the dagre arrangement with slightly larger boxes
  • test case 3: removed Object.groupBy, Map.groupBy, Promise.withResolvers and the ES2023 array and string methods in the browser; all 19 types still render
  • not tested: a real older Safari, the live Web UI against oCIS

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests
  • Documentation
  • Maintenance (e.g. dependency updates or tooling)

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
mzner force-pushed the chore/OCISDEV-1664-bump-mermaid-12.3.0 branch from a28e187 to ce5ea2d Compare November 11, 2026 08:52
@kw-security

kw-security commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@sonarqubecloud

Copy link
Copy Markdown

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants