---
title: "@mermaid-js/mermaid-cli 12.0.0 Breaking Changes on npm"
description: "What each @mermaid-js/mermaid-cli release removed, renamed or changed: 21 breaking changes in 2 versions on npm, each with its source."
canonical_url: https://since.dev/packages/npm/@mermaid-js/mermaid-cli
last_updated: 2026-12-04
---

# @mermaid-js/mermaid-cli breaking changes

@mermaid-js/mermaid-cli 12.0.0 (September 24, 2026) is its newest release with breaking changes, 14 of them. The first: Removed --height. Every breaking API change we have recorded in @mermaid-js/mermaid-cli on npm: 21 breaking changes in 2 versions. Below, its 2 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `12.2.0`, released November 2, 2026. [Source repository](https://github.com/mermaid-js/mermaid-cli)

Its 12.0.0 release requires Node.js 22.13 or later. [Node.js end of life dates](https://since.dev/calendar/nodejs.md).

- From [11.1.1](#v-11-1-1) to [12.0.0](#v-12-0-0): 14 breaking changes in 1 version.

## @mermaid-js/mermaid-cli 12.0.0 breaking changes

@mermaid-js/mermaid-cli 12.0.0, released September 24, 2026: 14 breaking changes.

- **Removed** `--height`  

\--size sets the puppeteer viewport and also tries to produce .png files at the given resolution. [github.com](https://github.com/mermaid-js/mermaid-cli/releases/tag/12.0.0)
- **Removed** `--pdfFit`  

PDFs are now fitted by default. To get the old behaviour, use --pdf-paper-format=Letter. [github.com](https://github.com/mermaid-js/mermaid-cli/releases/tag/12.0.0)
- **Removed** `--width`  

\--size sets the puppeteer viewport and also tries to produce .png files at the given resolution. [github.com](https://github.com/mermaid-js/mermaid-cli/releases/tag/12.0.0)
- **Removed** `ParseMDDOptions.iconPacksNamesAndUrls`  

ParseMDDOptions.iconPacksNamesAndUrls was removed in @mermaid-js/mermaid-cli 12.0.0 [npmjs.com](https://www.npmjs.com/package/@mermaid-js/mermaid-cli/v/12.0.0)
- **Removed** `ParseMDDOptions.myCSS`  

ParseMDDOptions.myCSS was removed in @mermaid-js/mermaid-cli 12.0.0 [npmjs.com](https://www.npmjs.com/package/@mermaid-js/mermaid-cli/v/12.0.0)
- **Removed** `ParseMDDOptions.pdfFit`  

ParseMDDOptions.pdfFit was removed in @mermaid-js/mermaid-cli 12.0.0 [npmjs.com](https://www.npmjs.com/package/@mermaid-js/mermaid-cli/v/12.0.0)
- **Behavior changed**  

The package now requires Node.js v22.13 or later. Upgrade your Node.js runtime before using this release. [github.com](https://github.com/mermaid-js/mermaid-cli/releases/tag/12.0.0)
- **Behavior changed** `--cssFile`  

\--cssFile is now applied through Mermaid's themeCSS setting. [github.com](https://github.com/mermaid-js/mermaid-cli/releases/tag/12.0.0)
- **Behavior changed** `--iconPacks`  

\--iconPacks only looks for locally installed npm icon packs. To load a pack from a URL, use --iconPacksAndUrls with the full URL. [github.com](https://github.com/mermaid-js/mermaid-cli/releases/tag/12.0.0)
- **Default changed**  

SVG output is now larger because fonts are embedded by default. Use --no-font-embed to turn this off. [github.com](https://github.com/mermaid-js/mermaid-cli/releases/tag/12.0.0)
- **Configuration changed**  

The package now requires Puppeteer v25 or later. Upgrade Puppeteer in your project. [github.com](https://github.com/mermaid-js/mermaid-cli/releases/tag/12.0.0)
- **Signature changed** `ParseMDDOptions`  

Was type ParseMDDOptions = {viewport?: import("puppeteer-core").Viewport | undefined; backgroundColor?: string | undefined; mermaidConfig?: import("mermaid").MermaidConfig | undefined; myCSS?: string | undefined; pdfFit?: boolean |... [npmjs.com](https://www.npmjs.com/package/@mermaid-js/mermaid-cli/v/12.0.0)
- **Signature changed** `ParseMDDOptions.iconPacks`  

Was iconPacks?: string\[\] | undefined; now iconPacks?: Record\<string, URL> | undefined. [npmjs.com](https://www.npmjs.com/package/@mermaid-js/mermaid-cli/v/12.0.0)
- **Signature changed** `renderMermaid`  

Was function renderMermaid(browser: import("puppeteer").Browser | import("puppeteer").BrowserContext, definition: string, outputFormat: "svg" | "png" | "pdf", {viewport, backgroundColor, mermaidConfig, myCSS, pdfFit, svgId, iconPacks... [npmjs.com](https://www.npmjs.com/package/@mermaid-js/mermaid-cli/v/12.0.0)

## @mermaid-js/mermaid-cli 11.1.1 breaking changes

@mermaid-js/mermaid-cli 11.1.1, released September 9, 2024: 7 breaking changes.

- **Removed** `parseMMD`  

Use the data property returned from renderMermaid() instead of parseMMD. [npmjs.com](https://www.npmjs.com/package/@mermaid-js/mermaid-cli/v/11.1.1)
- **Behavior changed**  

Node.js 14 through 17 and 19 are no longer supported; use Node.js 18.19 or later. [github.com](https://github.com/mermaid-js/mermaid-cli/commit/78856cd130abb5a0d62349049b4495958f29fdd2)
- **Behavior changed**  

Breaking changes for mermaid-cli v11 are described in #701; review them before upgrading from v10. [github.com](https://github.com/mermaid-js/mermaid-cli/releases/tag/11.1.1)
- **Configuration changed**  

Puppeteer versions before v23 are no longer supported; install Puppeteer 23 or later. [github.com](https://github.com/mermaid-js/mermaid-cli/commit/6f54bce7d35dd35acc8d9039047cb548f6566761)
- **Configuration changed** `puppeteer`  

You may need to install your own version of Puppeteer, within the allowed ranges. [github.com](https://github.com/mermaid-js/mermaid-cli/commit/9cf8b75ab77f3d021c4b76c023a2737458294c70)
- **Signature changed** `renderMermaid`  

Code that relies on the return value being a Buffer must be updated to handle Uint8Array. [npmjs.com](https://www.npmjs.com/package/@mermaid-js/mermaid-cli/v/11.1.1)
- **Signature changed** `run`  

Was function run(input: \`${string}.${"md" | "markdown"}\` | string | undefined, output: \`${string}.${"md" | "markdown" | "svg" | "png" | "pdf"}\`, {puppeteerConfig, quiet, outputFormat, parseMMDOptions}?: {puppeteerConfig?... [npmjs.com](https://www.npmjs.com/package/@mermaid-js/mermaid-cli/v/11.1.1)

## 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.
