Skip to content

Migrate mermaid to v12 - #216

Merged
cyanzhong merged 1 commit into
mainfrom
develop
Oct 23, 2026
Merged

cyanzhong merged 1 commit into
mainfrom
develop

Conversation

@cyanzhong

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 Needs a closer look

The major renderer upgrade and higher Safari baseline need compatibility validation in MarkEdit’s supported WebKit hosts.

No open issues 🎉

What changed in this PR

Migrates MarkEdit-preview to Mermaid 12.2, updates its dependencies, and adds coverage for rendering defaults and build variants.

Changes:

  • Upgrades Mermaid and its dependency tree, including ELK layout support.
  • Raises the build target from Safari 16 to Safari 17.4.
  • Adds renderer integration tests and strengthens theme initialization and bundle inclusion checks.
File Description
yarn.lock Locks Mermaid 12.2 and updated transitive dependencies.
vite.config.mts Raises the Safari build target to 17.4.
tests/​render.styles.test.ts Checks exported HTML theme initialization across color schemes.
tests/​mermaid.integration.test.ts Adds real-renderer coverage for diagrams, themes, and legacy appearance options.
tests/​build.test.ts Checks ELK inclusion in full builds and exclusion from lite builds.
package.json Updates the Mermaid dependency to ^12.2.0.

Review effort: Balanced

@cyanzhong
cyanzhong force-pushed the develop branch 3 times, most recently from bd76865 to a1f594a Compare October 23, 2026 10:11
@cyanzhong
cyanzhong merged commit bfb9206 into main Oct 23, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants