Skip to content

chore(deps): bump merman from 0.10.0 to 0.11.0 - #10

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/merman-0.11.0
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/cargo/merman-0.11.0

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Bumps merman from 0.10.0 to 0.11.0.

Release notes

Sourced from merman's releases.

0.11.0 - 2026-11-21

Release Notes

After introducing the theme compiler and editable theme recipes in 0.10.0, we focused 0.11.0 on performance and ease of use. A short-lived CLI should be quick enough to call for a single image, and a long-running editor or document builder should be able to reuse the work it has already done. This release also gives hosts simpler ways to request geometry, static SVGs, and terminal output. 0.10.0 release notes

See the installation guide for package choices and versions. The SDK archive guide covers native C/C++ and WASI downloads and their available profiles.

CLI startup and fonts

Since 0.9.3, CLI builds with system fonts enabled have measured Mermaid labels for PNG, JPEG, and PDF with the fonts used to paint them. This improves wrapping and node sizing and helps prevent clipped text, so it stays on by default. Much of the startup cost came from bounded discovery reading and hashing candidate font files for each new process. Ordinary Mermaid-to-SVG output still uses deterministic measurement and skips system font discovery. 0.9.3 font change

The official Windows archive now defaults to Platform, which follows Skia's DirectWrite approach and opens the fonts selected for the diagram. On Windows 11, a seven-node Flowchart produced the same PNG as 0.10.0 while process logical reads fell from 826 MB to 255 KB. Linux and macOS archives and ordinary Cargo installs default to bounded. The archives offer both --font-system platform and --font-system bounded. We plan to improve on-demand queries and fallback on Linux and macOS before switching their defaults. Skia DirectWrite backend, CLI font selection, #336

For quicker startup, especially on Linux and macOS, pass the fonts your diagram uses with repeatable --font-file options. Set the diagram's fontFamily to match a supplied family. Explicit files skip system discovery by default. With --font-system off, PNG, JPEG, and PDF require an explicit font file or directory for painting. For SVG, off makes the existing default explicit. CLI font guide

merman-cli render diagram.mmd -f png -o diagram.png --font-file fonts/YourFont.ttf --font-system off
merman-cli render diagram.mmd -f svg -o diagram.svg --font-system off

Tools that wrap the CLI can expose these font options to users and use deterministic measurement for SVG by default. For PNG, JPEG, and PDF, --font-measurement deterministic changes layout measurement and can still discover system fonts when painting. CLI font guide

Rendering and export performance

Trident benchmarks Mermaid implementations with examples from Mermaid's documentation. We profiled Merman on 114 Flowcharts from its DaveBench corpus, which helped us find repeated stylesheet work in small SVGs. We also used the same diagrams to compare default SVG output, static SVG size, and layout coordinates. Trident's DaveBench corpus

  • Rust renderer. Repeated renders can reuse the host's derived theme. Flowchart source overrides share untouched configuration through label sanitization and layout. A warm two-node Rust render with nodeSpacing: 50 in frontmatter allocated 269 KB cumulatively, down from 1,023 KB in 0.10.0, with byte-identical SVG. The renderer also reuses edge and stylesheet buffers, and computes edge path length when painting needs it. #328, #336
  • Large and compound Flowcharts. ELK avoids expanding redundant ordering relations and skips unnecessary edge-order scans. The 500-node, 499-edge Flowchart from Mermaid's v13 benchmark corpus now renders within the existing default layout budget. The CLI's default SVGs were byte-identical to 0.10.0 across 114 Trident documentation Flowcharts. Swimlane routing also skips scoring candidates that already conflict with nodes or segments. #328, #336
  • Other diagram families. Sequence scans fixed SVG definitions once and indexes activation depth by participant. ER paints directly from its ELK edge table. Mindmap compacts tree-center candidates in place and preserves Mermaid's ordering. #328, #336
  • Web first render. Reduced WebAssembly compilation work shortened the installed @mermanjs/web-render candidate's first medium Flowchart render from 271 ms in 0.10.0 to 201 ms on Windows with Chromium 158. This includes import, initialization, and rendering. The SVG was byte-identical across eight paired trials. Benchmark build, #328, #336
  • Node calls. The native addon accepts Mermaid source and returns the SVG string directly for renderSvg() and renderSvgSync(), avoiding the JSON round trip. Queued calls release their execution slot before the promise settles, so a follow-up call can use the freed capacity. #328, #336
  • Static SVG. Use --svg-pipeline static, Rust SvgGeneration::Static, or svg.pipeline: "static" in bindings for fixed illustrations. The renderer writes container palette rules for the slots that the diagram uses. Across 114 Trident Flowcharts, SVG size fell by 52% and per-file gzip size by 21%, with matching initial Chromium frames. Native image and PDF output use this generation path where supported. Use the default SVG pipeline for dynamic recoloring. SVG output guide
  • Native text measurement. Repository builds use patched usvg 0.47 to obtain text advance and bounds from one shaping pass per uncached ordinary label. Builds using the crates.io usvg dependency measure both anchors separately. Windows can continue down the font stack when the exporter cannot represent a named variable family. CLI distribution contract
  • Markdown batches. Re-running a batch over existing outputs does less publication work. Image-only batches skip extracting SVG titles and descriptions. A retry can finish an interrupted rollback and publish the requested output after blocked files become available, including when recovering older journals. #328

Upgrading

  • Layout readers. CLI contract 8 makes layout return schema-1 geometry. Rust RenderRequest::layout_json returns the same geometry. Use merman-cli layout --snapshot or RenderRequest::layout_snapshot for the 0.10 envelope with meta, semantic, and layout, including parse diagnostics when using --suppress-errors. CLI and Rust hosts that stream geometry can use the typed writer path, exposed in Rust as Renderer::write_layout_json. On 114 Trident Flowcharts, geometry responses occupied 88 KB of the 2.71 MB used by full snapshots and preserved the same coordinates. Layout guide
  • ASCII reports. Migrate CLI --ascii-report and binding output_plan readers to schema 4. Replace overflowed with nullable primary_overflowed and required emitted_overflowed. Read requested_graph_presentation for the requested policy. The primary dimensions, layout profile, and overflow status are null together when no primary layout was produced. Preserve zero dimensions for a measured empty diagram. ASCII report migration, #323
  • Bindings. Upgrade Web wrappers with their WASM artifacts for transport API 11, Node wrappers with their native addon or WASM artifact for transport API 2, and Swift and Python wrappers with their native libraries for UniFFI binding API 8. Binding migration

Added

  • Terminal diagrams. Render Agentflow, Architecture, Block, C4, Pie, Requirement, Usecase, and ZenUML. Gantt gains timelines, GitGraph gains branch tracks, and Packet gains bit grids. Improved routing clarifies dense graphs. For Flowchart, Swimlane, State, Agentflow, and Requirement, --ascii-graph-presentation adaptive --ascii-color plain can emit complete node and relationship records when graph routing exhausts its search or runs out of ports. Bindings expose ascii.graph_presentation. Terminal support matrix, #314, #317, #323, #324, #326
  • Show the Gantt Today Marker at the browser's current time in Playground and carry that instant into exports. Replay a captured instant with --fixed-unix-millis in the CLI or fixed_unix_millis in binding options, together with the local offset. #311, #312
  • Report ignored Class statements with the merman.authoring.class.ignored_statement hint in the Recommended ruleset. This catches a title statement where the diagram expects a front matter field. #332

Fixed

  • Lay out a 181-leaf Flowchart with forced ELK model order on 32-bit WebAssembly. #328

... (truncated)

Changelog

Sourced from merman's changelog.

[0.11.0] - 2026-11-21

After introducing the theme compiler and editable theme recipes in 0.10.0, we focused 0.11.0 on performance and ease of use. A short-lived CLI should be quick enough to call for a single image, and a long-running editor or document builder should be able to reuse the work it has already done. This release also gives hosts simpler ways to request geometry, static SVGs, and terminal output. 0.10.0 release notes

CLI startup and fonts

Since 0.9.3, CLI builds with system fonts enabled have measured Mermaid labels for PNG, JPEG, and PDF with the fonts used to paint them. This improves wrapping and node sizing and helps prevent clipped text, so it stays on by default. Much of the startup cost came from bounded discovery reading and hashing candidate font files for each new process. Ordinary Mermaid-to-SVG output still uses deterministic measurement and skips system font discovery. 0.9.3 font change

The official Windows archive now defaults to Platform, which follows Skia's DirectWrite approach and opens the fonts selected for the diagram. On Windows 11, a seven-node Flowchart produced the same PNG as 0.10.0 while process logical reads fell from 826 MB to 255 KB. Linux and macOS archives and ordinary Cargo installs default to bounded. The archives offer both --font-system platform and --font-system bounded. We plan to improve on-demand queries and fallback on Linux and macOS before switching their defaults. Skia DirectWrite backend, CLI font selection, #336

For quicker startup, especially on Linux and macOS, pass the fonts your diagram uses with repeatable --font-file options. Set the diagram's fontFamily to match a supplied family. Explicit files skip system discovery by default. With --font-system off, PNG, JPEG, and PDF require an explicit font file or directory for painting. For SVG, off makes the existing default explicit. CLI font guide

merman-cli render diagram.mmd -f png -o diagram.png --font-file fonts/YourFont.ttf --font-system off
merman-cli render diagram.mmd -f svg -o diagram.svg --font-system off

Tools that wrap the CLI can expose these font options to users and use deterministic measurement for SVG by default. For PNG, JPEG, and PDF, --font-measurement deterministic changes layout measurement and can still discover system fonts when painting. CLI font guide

Rendering and export performance

Trident benchmarks Mermaid implementations with examples from Mermaid's documentation. We profiled Merman on 114 Flowcharts from its DaveBench corpus, which helped us find repeated stylesheet work in small SVGs. We also used the same diagrams to compare default SVG output, static SVG size, and layout coordinates. Trident's DaveBench corpus

  • Rust renderer. Repeated renders can reuse the host's derived theme. Flowchart source overrides share untouched configuration through label sanitization and layout. A warm two-node Rust render with nodeSpacing: 50 in frontmatter allocated 269 KB cumulatively, down from 1,023 KB in 0.10.0, with byte-identical SVG. The renderer also reuses edge and stylesheet buffers, and computes edge path length when painting needs it. #328, #336
  • Large and compound Flowcharts. ELK avoids expanding redundant ordering relations and skips unnecessary edge-order scans. The 500-node, 499-edge Flowchart from Mermaid's v13 benchmark corpus now renders within the existing default layout budget. The CLI's default SVGs were byte-identical to 0.10.0 across 114 Trident documentation Flowcharts. Swimlane routing also skips scoring candidates that already conflict with nodes or segments. #328, #336
  • Other diagram families. Sequence scans fixed SVG definitions once and indexes activation depth by participant. ER paints directly from its ELK edge table. Mindmap compacts tree-center candidates in place and preserves Mermaid's ordering. #328, #336
  • Web first render. Reduced WebAssembly compilation work shortened the installed @mermanjs/web-render candidate's first medium Flowchart render from 271 ms in 0.10.0 to 201 ms on Windows with Chromium 158. This includes import, initialization, and rendering. The SVG was byte-identical across eight paired trials. Benchmark build, #328, #336
  • Node calls. The native addon accepts Mermaid source and returns the SVG string directly for renderSvg() and renderSvgSync(), avoiding the JSON round trip. Queued calls release their execution slot before the promise settles, so a follow-up call can use the freed capacity. #328, #336
  • Static SVG. Use --svg-pipeline static, Rust SvgGeneration::Static, or svg.pipeline: "static" in bindings for fixed illustrations. The renderer writes container palette rules for the slots that the diagram uses. Across 114 Trident Flowcharts, SVG size fell by 52% and per-file gzip size by 21%, with matching initial Chromium frames. Native image and PDF output use this generation path where supported. Use the default SVG pipeline for dynamic recoloring. SVG output guide
  • Native text measurement. Repository builds use patched usvg 0.47 to obtain text advance and bounds from one shaping pass per uncached ordinary label. Builds using the crates.io usvg dependency measure both anchors separately. Windows can continue down the font stack when the exporter cannot represent a named variable family. CLI distribution contract
  • Markdown batches. Re-running a batch over existing outputs does less publication work. Image-only batches skip extracting SVG titles and descriptions. A retry can finish an interrupted rollback and publish the requested output after blocked files become available, including when recovering older journals. #328

Upgrading

  • Layout readers. CLI contract 8 makes layout return schema-1 geometry. Rust RenderRequest::layout_json returns the same geometry. Use merman-cli layout --snapshot or RenderRequest::layout_snapshot for the 0.10 envelope with meta, semantic, and layout, including parse diagnostics when using --suppress-errors. CLI and Rust hosts that stream geometry can use the typed writer path, exposed in Rust as Renderer::write_layout_json. On 114 Trident Flowcharts, geometry responses occupied 88 KB of the 2.71 MB used by full snapshots and preserved the same coordinates. Layout guide
  • ASCII reports. Migrate CLI --ascii-report and binding output_plan readers to schema 4. Replace overflowed with nullable primary_overflowed and required emitted_overflowed. Read requested_graph_presentation for the requested policy. The primary dimensions, layout profile, and overflow status are null together when no primary layout was produced. Preserve zero dimensions for a measured empty diagram. ASCII report migration, #323
  • Bindings. Upgrade Web wrappers with their WASM artifacts for transport API 11, Node wrappers with their native addon or WASM artifact for transport API 2, and Swift and Python wrappers with their native libraries for UniFFI binding API 8. Binding migration

Added

  • Terminal diagrams. Render Agentflow, Architecture, Block, C4, Pie, Requirement, Usecase, and ZenUML. Gantt gains timelines, GitGraph gains branch tracks, and Packet gains bit grids. Improved routing clarifies dense graphs. For Flowchart, Swimlane, State, Agentflow, and Requirement, --ascii-graph-presentation adaptive --ascii-color plain can emit complete node and relationship records when graph routing exhausts its search or runs out of ports. Bindings expose ascii.graph_presentation. Terminal support matrix, #314, #317, #323, #324, #326
  • Show the Gantt Today Marker at the browser's current time in Playground and carry that instant into exports. Replay a captured instant with --fixed-unix-millis in the CLI or fixed_unix_millis in binding options, together with the local offset. #311, #312
  • Report ignored Class statements with the merman.authoring.class.ignored_statement hint in the Recommended ruleset. This catches a title statement where the diagram expects a front matter field. #332

Fixed

  • Lay out a 181-leaf Flowchart with forced ELK model order on 32-bit WebAssembly. #328
  • Keep Swimlane nodes named placeholder-0 and their edges when the layout adds internal long-edge placeholders. Collapsed Swimlane groups hide their contents, preserve every visible boundary route and label, and apply pairwise routing limits to the visible edges.
  • The bundled native exporter continues to find glyphs for later characters after an unavailable fallback. Strict coverage accepts fully drawn mixed-font labels and checks referenced clipping paths, masks, patterns, and filter images that contribute to the output. CSS regular weight selects weight 400 on variable fonts even when their default axis value differs. Explicit variation settings take precedence. Native export guide
  • Keep labels legible in hand-drawn Flowchart subroutines and Agentflow tools with hatched frames and separate side strokes.

... (truncated)

Commits
  • 2ce0fa4 fix(sdk): support Rust 1.100 linking
  • 2bd5d6f docs(fonts): clarify family names and variable weights for resvg
  • 9cb9777 docs(release): clarify CLI font choices for users and hosts
  • fea11d8 fix(svg): preserve theme evidence for hand-drawn subroutines
  • 0218992 docs(release): tell the 0.11.0 performance story
  • 79384f7 fix(svg): draw legible hand-drawn subroutine frames
  • aead335 fix(export): check glyph coverage through used filter inputs
  • 184bef9 docs(release): align 0.11.0 installation and export examples
  • 5f54433 fix(export): retain missing glyph evidence in filter images
  • 4fdb71a fix(ci): resolve unpatched dependencies in the public consumer
  • Additional commits viewable in compare view

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file rust Pull requests that update rust code labels Nov 27, 2026
@dependabot
dependabot Bot force-pushed the dependabot/cargo/merman-0.11.0 branch 2 times, most recently from 26c0d28 to 0b43a6b Compare November 28, 2026 03:38
Bumps [merman](https://github.com/Latias94/merman) from 0.10.0 to 0.11.0.
- [Release notes](https://github.com/Latias94/merman/releases)
- [Changelog](https://github.com/Latias94/merman/blob/main/CHANGELOG.md)
- [Commits](Latias94/merman@v0.10.0...v0.11.0)

---
updated-dependencies:
- dependency-name: merman
  dependency-version: 0.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot
dependabot Bot force-pushed the dependabot/cargo/merman-0.11.0 branch from 0b43a6b to 62a3726 Compare November 28, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file rust Pull requests that update rust code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants