Repository navigation
chore(deps): upgrade Mermaid to 12.1.0 with stable diagram styling - #271
Conversation
Bumps [mermaid](https://github.com/mermaid-js/mermaid) from 11.17.2 to 12.1.0. - [Release notes](https://github.com/mermaid-js/mermaid/releases) - [Commits](https://github.com/mermaid-js/mermaid/compare/mermaid@11.17.2...mermaid@12.1.0) --- updated-dependencies: - dependency-name: mermaid dependency-version: 12.1.0 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
|
Decision: proceed with the Mermaid 12 uplift. Maintainer accepts the quantified browser-support tradeoff below. The PR is reopened for a narrow compatibility change, independent review, and fresh full CI before merge. Public impactCan I Use’s September 2026 usage data, frozen at commit
Calculation: sum the existing version buckets within that interval; percentages are of overall browser usage, not percentages of Safari users. These are public usage proxies, not this site’s visitor analytics. They quantify this Apple-browser cohort only, not every potential Chromium/Firefox compatibility loss. Sources (month
Mermaid 12 intentionally requires ES2024/Safari 17.4+; see mermaid-js/mermaid@33442fd and https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4012.0.0. Docs copies the published browser bundle unchanged ( Benefit versus costThe public 12.1.0 release adds ELK/diagram improvements, parser fixes and bundled dependency cleanup: https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4012.1.0. No existing docs failure requiring these changes was established. ELK/neo defaults also change current diagram geometry/appearance; preserving Dagre/classic would address that visual change but would not restore older browser support. Security was checked rather than assumed: the public GitHub advisory query for Named follow-up: reassess Mermaid’s vendored dependency hygiene separately if a reachable advisory emerges; this upgrade is not evidence that every copied dependency is current. No claim is made that 11.x has an upstream LTS/EOL guarantee. The older missing-Swedish-page CI failure is unrelated. Acceptance now explicitly includes the public browser-support cost. Implementation will preserve the existing Dagre/classic/base presentation, prove representative rendering and lifecycle behavior in Chromium/WebKit, and require fresh full CI on the final head. No release, tag, package publishing or manual deployment is authorized. No major-version ignore rule was added. |
|
OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting If you change your mind, just re-open this PR and I'll resolve any conflicts on it. |
What Problem This Solves
Upgrades the docs diagram renderer from Mermaid 11.17.2 to 12.1.0 while preserving the site's existing Dagre layout, classic look, and custom base theme.
User Impact
Diagram defaults remain stable. The browser floor rises to Safari/iOS 17.4, Chromium 121, and Firefox 123. The maintainer explicitly accepts the estimated September 2026 Safari 15.4–17.3 usage impact: 1.03% worldwide and 1.86% in the US. These are public browser-usage cohorts, not measured docs visitors; see the impact decision.
Why This Change Was Made
Mermaid 12 changes layout and styling defaults. The canonical renderer now selects Dagre/classic explicitly; both inline and expanded diagrams continue through the same initialization path. The lockfile retains current main's other dependency updates and the original Dependabot ancestry.
Evidence
0484b34c96f4b27e88615bbb538db81cd2325dd2(no actionable findings or suspected credentials). All five checks are green for that exact head. Full hosted CI passed dependency installation, helper tests, Worker dry run, full site build, shell smoke, the full Chromium visual suite, focused Mermaid tests in WebKit, and community invitation checks in both browsers. Actual diagram SVGs are distinguished from expand-control icons; every overlay check waits for rendering, and error cleanup also checks render IDs because Mermaid 12 changed its parser-error text.The maintainer explicitly authorized the automatic R2 docs deployment associated with squash-merging this qualified head. This approval is scoped to this docs deployment; tags, package publication, and other releases remain unauthorized.
Original Dependabot dependency details
Bumps mermaid from 11.17.2 to 12.1.0.
Release notes
Sourced from mermaid's releases.
... (truncated)
Commits
21f72f0Merge pull request #8360 from mermaid-js/changeset-release/master3f89f7bVersion Packages4ef0218Merge pull request #8358 from mermaid-js/release/12.0.1f45c691Fix error from build docsd9cb282Fix label overlap bug47fffa0Merge pull request #8297 from pentaoa/fix/eventmodeling-duplicate-frame-ids12c280eMerge develop and preserve eventmodeling regression testsc0f7052Merge pull request #8296 from pentaoa/fix/eventmodeling-reset-explicit-relations4f6ac96Merge pull request #8345 from mermaid-js/bug/8283_xychart-legend-clip-title-h...679093aMerge pull request #8344 from mermaid-js/pebr/issue-8292-elk-labelDependabot 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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill 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 versionwill 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 dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)