@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
On this page
Latest version 12.2.0, released November 2, 2026. Source repository
Its 12.0.0 release requires Node.js 22.13 or later. Node.js end of life dates.
@mermaid-js/mermaid-cli 12.0.0 breaking changes
- Removed
--height
--size sets the puppeteer viewport and also tries to produce .png files at the given resolution. github.com - Removed
--pdfFit
PDFs are now fitted by default. To get the old behaviour, use --pdf-paper-format=Letter. github.com - Removed
--width
--size sets the puppeteer viewport and also tries to produce .png files at the given resolution. github.com - Removed
ParseMDDOptions.iconPacksNamesAndUrls
ParseMDDOptions.iconPacksNamesAndUrls was removed in @mermaid-js/mermaid-cli 12.0.0 npmjs.com - Removed
ParseMDDOptions.myCSS
ParseMDDOptions.myCSS was removed in @mermaid-js/mermaid-cli 12.0.0 npmjs.com - Removed
ParseMDDOptions.pdfFit
ParseMDDOptions.pdfFit was removed in @mermaid-js/mermaid-cli 12.0.0 npmjs.com - Behavior changed
The package now requires Node.js v22.13 or later. Upgrade your Node.js runtime before using this release. github.com - Behavior changed
--cssFile
--cssFile is now applied through Mermaid's themeCSS setting. github.com - 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 - Default changed
SVG output is now larger because fonts are embedded by default. Use --no-font-embed to turn this off. github.com - Configuration changed
The package now requires Puppeteer v25 or later. Upgrade Puppeteer in your project. github.com - 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 - Signature changed
ParseMDDOptions.iconPacks
Was iconPacks?: string[] | undefined; now iconPacks?: Record<string, URL> | undefined. npmjs.com - 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
@mermaid-js/mermaid-cli 11.1.1 breaking changes
- Removed
parseMMD
Use the data property returned from renderMermaid() instead of parseMMD. npmjs.com - Behavior changed
Node.js 14 through 17 and 19 are no longer supported; use Node.js 18.19 or later. github.com - Behavior changed
Breaking changes for mermaid-cli v11 are described in #701; review them before upgrading from v10. github.com - Configuration changed
Puppeteer versions before v23 are no longer supported; install Puppeteer 23 or later. github.com - Configuration changed
puppeteer
You may need to install your own version of Puppeteer, within the allowed ranges. github.com - Signature changed
renderMermaid
Code that relies on the return value being a Buffer must be updated to handle Uint8Array. npmjs.com - 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
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.