---
title: "mermaid 12.4.0 Breaking Changes on npm | Since.dev"
description: "What each mermaid release removed, renamed or changed: 77 breaking changes in 17 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/mermaid
last_updated: 2026-12-04
---

# mermaid breaking changes

mermaid 12.4.0 (November 27, 2026) is its newest release with breaking changes. The first: Subgraph metadata passed to layout engines is now limited to a fixed set of fields in mermaid 12.4.0. Every breaking API change we have recorded in mermaid on npm: 77 breaking changes in 17 versions. Below, its 17 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `12.4.1`, released December 1, 2026. [Source repository](https://github.com/mermaid-js/mermaid)

Packages on npm run on Node.js. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [11.17.0](#v-11-17-0) to [12.4.0](#v-12-4-0): 31 breaking changes in 5 versions.
- From [10.0.0](#v-10-0-0) to [12.4.0](#v-12-4-0): 74 breaking changes in 16 versions.

## mermaid 12.4.0 breaking changes

mermaid 12.4.0, released November 27, 2026: 1 breaking change.

- **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](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4012.4.0)

## mermaid 12.3.0 breaking changes

mermaid 12.3.0, released November 3, 2026: 2 breaking changes.

- **Behavior changed** `flowchart edge IDs`  

Edge IDs may no longer contain \[\] ( ) { } |. Rename any edge IDs that use these characters. [github.com](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4012.3.0)
- **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](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4012.3.0)

## mermaid 12.2.0 breaking changes

mermaid 12.2.0, released October 13, 2026: 2 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](https://www.npmjs.com/package/mermaid/v/12.2.0)
- **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](https://www.npmjs.com/package/mermaid/v/12.2.0)

## mermaid 12.1.0 breaking changes

mermaid 12.1.0, released October 2, 2026: 2 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](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4012.1.0)
- **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](https://www.npmjs.com/package/mermaid/v/12.1.0)

## mermaid 12.0.0 breaking changes

mermaid 12.0.0, released September 10, 2026: 24 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](https://github.com/mermaid-js/mermaid/commit/33442fddbf91852417ac2805afbd35aba0facbe1)
- **Removed**  

Mermaid is now built for ES2024 and Safari 17.4+. Users who need older browsers must polyfill or transpile mermaid. [github.com](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4012.0.0)
- **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](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4012.0.0)
- **Removed** `class.defaultRenderer`  

The defaultRenderer option is ignored and has no effect. Use the top-level layout option instead. [github.com](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4012.0.0)
- **Removed** `clearLayoutRenderState`  

These functions are no longer exported from mermaid's public API. Code that imports them must stop doing so. [npmjs.com](https://www.npmjs.com/package/mermaid/v/12.0.0)
- **Removed** `CommonLayout*`  

The CommonLayout types were removed from Mermaid's public API. [github.com](https://github.com/mermaid-js/mermaid/commit/6df1149ca906de887486275c83e54dd275d7b729)
- **Removed** `CommonLayoutMeasure`  

CommonLayoutMeasure was removed in mermaid 12.0.0 [npmjs.com](https://www.npmjs.com/package/mermaid/v/12.0.0)
- **Removed** `CommonLayoutPaintContext`  

CommonLayoutPaintContext was removed in mermaid 12.0.0 [npmjs.com](https://www.npmjs.com/package/mermaid/v/12.0.0)
- **Removed** `CommonLayoutPaintOptions`  

CommonLayoutPaintOptions was removed in mermaid 12.0.0 [npmjs.com](https://www.npmjs.com/package/mermaid/v/12.0.0)
- **Removed** `CommonLayoutRenderContext`  

CommonLayoutRenderContext was removed in mermaid 12.0.0 [npmjs.com](https://www.npmjs.com/package/mermaid/v/12.0.0)

And 14 more in this version. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

## mermaid 11.17.0 breaking changes

mermaid 11.17.0, released August 19, 2026: 4 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](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.17.0)
- **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](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.17.0)
- **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](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.17.0)
- **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](https://www.npmjs.com/package/mermaid/v/11.17.0)

## Older versions

11 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### mermaid 11.15.0 breaking changes

mermaid 11.15.0, released May 11, 2026: 4 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](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.15.0)
- **Behavior changed**  

Lines starting with a single % in state diagrams are no longer treated as comments. Use %% for comments. [github.com](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.15.0)

And 2 more in this version.

### mermaid 11.14.0 breaking changes

mermaid 11.14.0, released April 1, 2026: 7 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](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.14.0)
- **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](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.14.0)

And 5 more in this version.

### mermaid 11.13.0 breaking changes

mermaid 11.13.0, released March 9, 2026: 4 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](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.13.0)
- **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](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.13.0)

And 2 more in this version.

### mermaid 11.12.0 breaking changes

mermaid 11.12.0, released September 18, 2025: 1 breaking change.

- **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](https://www.npmjs.com/package/mermaid/v/11.12.0)

### mermaid 11.10.0 breaking changes

mermaid 11.10.0, released August 19, 2025: 7 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](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.10.0)
- **Behavior changed**  

Flowchart direction TD is now laid out the same way as TB, so existing diagrams using TD may render differently. [github.com](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.10.0)

And 5 more in this version.

### mermaid 11.5.0 breaking changes

mermaid 11.5.0, released March 13, 2025: 5 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](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.5.0)
- **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](https://www.npmjs.com/package/mermaid/v/11.5.0)

And 3 more in this version.

### mermaid 11.4.0 breaking changes

mermaid 11.4.0, released October 30, 2024: 5 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](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.4.0)
- **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](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.4.0)

And 3 more in this version.

### mermaid 11.3.0 breaking changes

mermaid 11.3.0, released October 3, 2024: 1 breaking change.

- **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](https://www.npmjs.com/package/mermaid/v/11.3.0)

### mermaid 11.1.0 breaking changes

mermaid 11.1.0, released September 2, 2024: 2 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](https://github.com/mermaid-js/mermaid/releases/tag/mermaid%4011.1.0)
- **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](https://www.npmjs.com/package/mermaid/v/11.1.0)

### mermaid 11.0.0 breaking changes

mermaid 11.0.0, released August 23, 2024: 3 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](https://www.npmjs.com/package/mermaid/v/11.0.0)
- **Signature changed** `MermaidConfig.securityLevel`  

Was securityLevel?: string | 'strict' | 'loose' | 'antiscript' | 'sandbox' | undefined; now securityLevel?: 'strict' | 'loose' | 'antiscript' | 'sandbox'. [npmjs.com](https://www.npmjs.com/package/mermaid/v/11.0.0)

And 1 more in this version.

### mermaid 10.0.0 breaking changes

mermaid 10.0.0, released February 21, 2023: 3 breaking changes.

- **Removed** `MermaidConfig.lazyLoadedDiagrams`  

Use mermaid.registerLazyDiagrams instead. [npmjs.com](https://www.npmjs.com/package/mermaid/v/10.0.0)
- **Removed** `MermaidConfig.loadExternalDiagramsAtStartup`  

Use mermaid.registerLazyDiagrams instead. [npmjs.com](https://www.npmjs.com/package/mermaid/v/10.0.0)

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](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#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.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
