@mermaid-js/parser@2.0.0

mermaid-js/mermaid@mermaid-js/parser@2.0.0Sep 10, 2026by github-actions[bot]

Upgrading?

AI Summary

The parser package is updated to version 2.0.0 to support the new features and syntax introduced in Mermaid 12.0.0, including the new diagram types and layout requirements.

Key Highlights

  • Updated to Mermaid 12.0.0 dependencies.
  • Supports new diagram syntaxes (UML use case, agentflow-beta).

Full Release Notes

### Major Changes

-   [#8213](https://github.com/mermaid-js/mermaid/pull/8213) [`33442fd`](https://github.com/mermaid-js/mermaid/commit/33442fddbf91852417ac2805afbd35aba0facbe1) Thanks [@aloisklink](https://github.com/aloisklink)! - chore!: require ES2024, Safari 17.4+, Node.JS v22.12+

    Mermaid is now built to target Safari 17.4+ and ES2024. If you need to support
    older browsers, you may need to polyfill or transpile mermaid.

    Safari 17.4+ has been chosen as the floor, as unlike Firefox/Chrome,
    older iOS devices don't get major Safari updates.

    Node.JS v22.12+ is also declared as requirement in our `package.json` files,
    but as mermaid requires a browser, this is mainly so we can use dependencies that
    also declare a Node.JS v22.12+ requirement, without causing issues for users when
    running `npm install`.

Related Repositories