github mermaid-js/mermaid-cli 12.0.0
v12.0.0

8 hours ago

Changes

⚠️ Breaking Changes

  • Upgrade to Mermaid v12.0.0 @aloisklink (#1182)
  • feat!: change --iconPacks to load from node_modules @aloisklink (#1197)
    • --iconPacks now only looks for locally installed NPM icon packs installed with npm install .... If you want to dynamically download an icon pack from a CDN (not recommended), please use the --iconPacksAndUrls option and provide the full URL.
  • feat!: replace --pdfFit with --pdf-paper-format @aloisklink (#1193)
    • The --pdfFit option has been removed. PDFs are now fitted by default. To go back to the old behaviour, use --pdf-paper-format=Letter.
  • feat!: replace --width/--height with an improved --size @aloisklink (#1194)
    • --size not only sets the puppeteer viewport, but it also tries to make .png files with the given resolution
  • Change --cssFile to use Mermaid's themeCSS @aloisklink (#1188)
  • Require Puppeteer v25 or later @aloisklink (#1183)
  • Require Node.JS v22.13 or later @aloisklink (#1181)

🚀 Features

  • feat: support loading icons from file:// URIs @aloisklink (#1195)
  • feat: add Recursive and OpenSans fonts @aloisklink (#1190)
  • feat: embed fonts into SVG files @aloisklink (#1189)
    • Fonts are now embedded into SVG files by default, which increases the size of .svg files. To disable this, use --no-font-embed.

🐛 Bug Fixes

🧰 Maintenance

📦 Dependency updates

Full Changelog: 11.17.0...v12.0.0

Don't miss a new mermaid-cli release

NewReleases is sending notifications on new releases.