mermaid breaking changes
Updated December 4, 2026
On this page
Latest version 12.4.1, released December 1, 2026. Source repository
Packages on npm run on Node.js. Node.js end of life dates.
- From 11.17.0 to 12.4.0: 31 breaking changes in 5 versions.
- From 10.0.0 to 12.4.0: 74 breaking changes in 16 versions.
mermaid 12.4.0 breaking changes
- Configuration changed
Flowchart subgraph metadata forwarded to layout engines is now limited to row, column, horizontalAlign, verticalAlign and algorithm. Custom layouts registered through registerLayoutLoaders no longer receive other authored subgraph metadata... github.com
mermaid 12.3.0 breaking changes
- Behavior changed
flowchart edge IDs
Edge IDs may no longer contain [ ] ( ) { } |. Rename any edge IDs that use these characters. github.com - Behavior changed
use case include and extend relationship labels
Include and extend relationship labels in use case diagrams are drawn with guillemets, so rendered output text changes. github.com
mermaid 12.2.0 breaking changes
- Signature changed
InternalHelpers.insertEdge
Was insertEdge: (elem: any, edge: any, clusterDb: any, diagramType: any, startNode: any, endNode: any, diagramId: any, skipIntersect?: boolean) => {updatedPath: any; originalPath: any;}; now insertEdge: (elem: any, edge: any, clusterDb... npmjs.com - Signature changed
InternalHelpers.labelHelper
Was labelHelper: <T extends SVGGraphicsElement>(parent: import("./types.js").D3Selection<T>, node: import("./rendering-util/types.js").Node, _classes?: string) => Promise<{shapeSvg: import("d3-selection").Selection<SVGGElement, unknown... npmjs.com
mermaid 12.1.0 breaking changes
- Default changed
elk.orientFeedbackEdges
Existing ELK diagrams with edges fed back into a subgraph get a different layout. Set elk.orientFeedbackEdges to false to keep the previous routing. github.com - Signature changed
MermaidConfig.elk
Was elk?: {mergeEdges?: boolean; nodePlacementStrategy?: 'SIMPLE' | 'NETWORK_SIMPLEX' | 'LINEAR_SEGMENTS' | 'BRANDES_KOEPF'; nodePlacementAlignment?: 'NONE' | 'LEFTUP' | 'LEFTDOWN' | 'RIGHTUP' | 'RIGHTDOWN' | 'BALANCED'; preset?: 'default'... npmjs.com
mermaid 12.0.0 breaking changes
- Removed
Mermaid now requires browsers supporting ES2024 and Safari 17.4 or later, and Node.js 22.12 or later for installation. github.com - Removed
Mermaid is now built for ES2024 and Safari 17.4+. Users who need older browsers must polyfill or transpile mermaid. github.com - Removed
package.json now declares Node.js v22.12 or later as a requirement, so older Node.js versions no longer meet it. github.com - Removed
class.defaultRenderer
The defaultRenderer option is ignored and has no effect. Use the top-level layout option instead. github.com - Removed
clearLayoutRenderState
These functions are no longer exported from mermaid's public API. Code that imports them must stop doing so. npmjs.com - Removed
CommonLayout*
The CommonLayout types were removed from Mermaid's public API. github.com - Removed
CommonLayoutMeasure
CommonLayoutMeasure was removed in mermaid 12.0.0 npmjs.com - Removed
CommonLayoutPaintContext
CommonLayoutPaintContext was removed in mermaid 12.0.0 npmjs.com - Removed
CommonLayoutPaintOptions
CommonLayoutPaintOptions was removed in mermaid 12.0.0 npmjs.com - Removed
CommonLayoutRenderContext
CommonLayoutRenderContext was removed in mermaid 12.0.0 npmjs.com
And 14 more in this version. Sign up to see every change
mermaid 11.17.0 breaking changes
- Behavior changed
c4
C4 diagram elements are rendered via the unified shape system, using a new person shape, which changes their rendered output. github.com - Behavior changed
flowchart
The change from #7672 to flowchart directions is reverted, so layouts with arrows between subgraphs return to the previous behavior. github.com - Default changed
classDiagram
classDiagram output switches to the unified renderer by default. To keep the legacy renderer, set class.defaultRenderer to 'dagre-d3' in the config. github.com - Signature changed
MermaidConfig.elk
Was elk?: {mergeEdges?: boolean; nodePlacementStrategy?: 'SIMPLE' | 'NETWORK_SIMPLEX' | 'LINEAR_SEGMENTS' | 'BRANDES_KOEPF'; cycleBreakingStrategy?: 'GREEDY' | 'DEPTH_FIRST' | 'INTERACTIVE' | 'MODEL_ORDER' | 'GREEDY_MODEL_ORDER'... npmjs.com
Older versions
11 older versions, each with its first changes. Sign up to see every change
Show 11 older versions
mermaid 11.15.0 breaking changes
- Behavior changed
The end note keyword now closes a note only when it is written on a new line, so inline uses no longer close the note. github.com - Behavior changed
Lines starting with a single % in state diagrams are no longer treated as comments. Use %% for comments. github.com
And 2 more in this version.
mermaid 11.14.0 breaking changes
- Behavior changed
Nodes, edges, markers and clusters get prefixed IDs so multiple diagrams can share a page. Custom CSS or JS using exact ID selectors such as #arrowhead must switch to attribute-ending selectors. github.com - Default changed
randomize
A new randomize option for architecture diagrams defaults to false, so layouts no longer vary randomly unless you set it to true. github.com
And 5 more in this version.
mermaid 11.13.0 breaking changes
- Behavior changed
ELK layout edges default to the rounded curve style rather than the global basis default; non-ELK layouts are unchanged. github.com - Behavior changed
Plain text labels in flowcharts now auto-wrap and markdown-like text is no longer interpreted as markdown; wrap markdown in double quotes and backticks to keep markdown formatting. github.com
And 2 more in this version.
mermaid 11.12.0 breaking changes
- Signature changed
InternalHelpers.insertEdge
Was insertEdge: (elem: any, edge: any, clusterDb: any, diagramType: any, startNode: any, endNode: any, id: any) => {updatedPath: any; originalPath: any;}; now insertEdge: (elem: any, edge: any, clusterDb: any, diagramType: any, startNode... npmjs.com
mermaid 11.10.0 breaking changes
- Renamed
The XYChart, Block and Sankey diagrams are now marked stable, so the "-beta" suffix is removed from their names. Code that uses the old suffixed names may need updating. github.com - Behavior changed
Flowchart direction TD is now laid out the same way as TB, so existing diagrams using TD may render differently. github.com
And 5 more in this version.
mermaid 11.5.0 breaking changes
- Behavior changed
mermaidAPI.getDiagramFromText
mermaidAPI.getDiagramFromText() now returns a fresh db for each class, state, flowchart, sequence diagram call instead of a shared one. Code that relied on sharing state between calls may need to change. github.com - Signature changed
InternalHelpers.common
Was common: {getRows: (s?: string | undefined) => string[]; sanitizeText: (text: string, config: import("./config.type.js").MermaidConfig) => string; sanitizeTextOrArray: (a: string | string[] | string[][], config... npmjs.com
And 3 more in this version.
mermaid 11.4.0 breaking changes
- Behavior changed
Class diagrams now render through the new unified renderer, so their output may look different. Check existing class diagrams after upgrading. github.com - Behavior changed
mermaid.parse
mermaid.parse now throws an error for an invalid shape, where it previously did not. Code that relies on parse accepting such input must handle the error. github.com
And 3 more in this version.
mermaid 11.3.0 breaking changes
- Signature changed
InternalHelpers.insertNode
Was insertNode: (elem: any, node: any, dir: any) => Promise<any>; now insertNode: (elem: any, node: any, renderOptions: any) => Promise<any>. npmjs.com
mermaid 11.1.0 breaking changes
- Removed
Full icon sets were removed and icons moved to architecture diagrams, so diagrams that relied on the full icon sets may lose icons. github.com - Signature changed
MermaidConfig.elk
Was elk?: {mergeEdges?: boolean; nodePlacementStrategy?: 'SIMPLE' | 'NETWORK_SIMPLEX' | 'LINEAR_SEGMENTS' | 'BRANDES_KOEPF';}; now elk?: {mergeEdges?: boolean; nodePlacementStrategy?: 'SIMPLE' | 'NETWORK_SIMPLEX' | 'LINEAR_SEGMENTS' |... npmjs.com
mermaid 11.0.0 breaking changes
- Signature changed
MermaidConfig.logLevel
Was logLevel?: number | string | 0 | 2 | 1 | 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'fatal' | 3 | 4 | 5 | undefined; now logLevel?: 'trace' | 0 | 'debug' | 1 | 'info' | 2 | 'warn' | 3 | 'error' | 4 | 'fatal' | 5. npmjs.com - Signature changed
MermaidConfig.securityLevel
Was securityLevel?: string | 'strict' | 'loose' | 'antiscript' | 'sandbox' | undefined; now securityLevel?: 'strict' | 'loose' | 'antiscript' | 'sandbox'. npmjs.com
And 1 more in this version.
mermaid 10.0.0 breaking changes
- Removed
MermaidConfig.lazyLoadedDiagrams
Use mermaid.registerLazyDiagrams instead. npmjs.com - Removed
MermaidConfig.loadExternalDiagramsAtStartup
Use mermaid.registerLazyDiagrams instead. npmjs.com
And 1 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.