unstale

npm / @mermaid-js/mermaid-cli

@mermaid-js/mermaid-cli

What changed in @mermaid-js/mermaid-cli 11 to 12, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

8 breaking1 security8 new APIs and options6 behavior and defaults2 tooling6 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli 0.3.1 on npm

@mermaid-js/mermaid-cli 1219 changes

Breaking changes 7

  • Upgrading to Mermaid v12.0.0 changes the default diagram themes and layouts.

    12.0.0release notes

  • Now only looks for locally installed NPM icon packs; use --iconPacksAndUrls with a full URL for CDN downloads.

    12.0.0release notes

  • Node.js v22.13 or later is required.

    12.0.0release notes

  • The option has been removed; PDFs are now fitted by default.

    12.0.0release notes

  • Puppeteer v25 or later is required.

    12.0.0release notes

  • Replaces --width and --height, sets the Puppeteer viewport, and tries to produce PNG files at the given resolution.

    12.0.0release notes

  • Replaced by the improved --size option.

    12.0.0release notes

Security 1

New APIs and options 4

  • Use this option with a full URL to dynamically download an icon pack from a CDN.

    12.0.0release notes

  • Disables embedding fonts into SVG files.

    12.0.0release notes

  • Use --pdf-paper-format=Letter to return to the old PDF fitting behaviour.

    12.0.0release notes

  • Recursive and OpenSans fonts are now supported.

    12.0.0release notes

Behavior and default changes 5

  • Adds a description to the output displayed when the CLI is called with --help.

    12.2.0release notes

  • Now uses Mermaid's themeCSS.

    12.0.0release notes

  • Icons can now be loaded from file:// URIs.

    12.0.0release notes

  • Fonts are now embedded into SVG files by default, increasing SVG file size.

    12.0.0release notes

  • PDFs are now fitted by default.

    12.0.0release notes

Tooling 1

  • Upgrades Mermaid to v12.2.0, changing the Mermaid version used by the CLI.

    12.2.0release notes

Fixes and other changes 1

@mermaid-js/mermaid-cli 1112 changes

Breaking changes 1

  • Stops bundling FontAwesome and KaTeX CSS and fonts.

    11.15.0release notes

New APIs and options 4

  • Adds support for fractional scaling.

    11.15.0release notes

  • Adds a command-line option to limit parallel diagram renders.

    11.15.0release notes

  • Adds support for the @mermaid-js/layout-tidy-tree layout package.

    11.15.0release notes

  • Mermaid 11.14.0 adds support for Venn diagrams.

    11.14.0release notes

Behavior and default changes 1

Tooling 1

  • The Dockerfile adds mmdc to PATH, making the command available without specifying its full path.

    11.17.0release notes

Fixes and other changes 5

  • Adds support for Puppeteer v25.

    11.16.0release notes

  • Fixes a race condition when writing the file through the Node.js run API.

    11.15.0release notes

  • Adds support for @mermaid-js/layout-elk v0.2.

    11.14.0release notes

  • Adds a require field for types and default in package.json.

    11.14.0release notes

  • Updates peerDependencies to support Puppeteer v24.

    11.14.0release notes