Skip to content

fix(deps): update dependency beautiful-mermaid to v1#230

Merged
just-be-dev merged 1 commit intomainfrom
renovate/beautiful-mermaid-1.x
Mar 14, 2026
Merged

fix(deps): update dependency beautiful-mermaid to v1#230
just-be-dev merged 1 commit intomainfrom
renovate/beautiful-mermaid-1.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Feb 26, 2026

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
beautiful-mermaid ^0.1.3^1.0.0 age adoption passing confidence

Release Notes

lukilabs/beautiful-mermaid (beautiful-mermaid)

v1.1.3

Compare Source

v1.1.2

Compare Source

Ship pre-built JavaScript for webpack/vite/Node consumers.

What changed
  • Dual exports — Bun gets raw .ts (zero overhead), Node/webpack/vite get pre-built ESM from dist/
  • No config needed — conditional exports in package.json handle routing automatically
  • tsup build — ESM + declaration files + source maps
Fixes
  • Closes #​45 — package no longer breaks webpack consumers that don't transpile node_modules
Full Changelog

v1.1.1

Compare Source

v1.0.2

Compare Source

Changes
  • Remove DOM lib from tsconfig — use ambient declare const for browser globals (document, window)
  • This avoids pulling in the entire DOM type namespace for a library with zero DOM dependencies

v1.0.1

Compare Source

Layout Quality Improvements

  • Centering: contentAlignment H_CENTER V_CENTER for subgraphs
  • Node placement: BALANCED fixed alignment at root and subgraph level
  • Edge spacing: optimized edgeEdge, edgeEdgeBetweenLayers, edgeNodeBetweenLayers
  • High-degree nodes: special treatment for nodes with 8+ connections
  • Post-compaction: LEFT_RIGHT_CONSTRAINT_LOCKING at root level
  • Model order: NODES_AND_EDGES preservation at root level

Layer Alignment

Post-processing step that snaps same-layer nodes to uniform flow-axis positions, fixing the visual stagger caused by ELK's orthogonal edge routing. Uses single-linkage clustering for accurate grouping across any fan-out size.

Edge Bundling

Fan-out/fan-in edges now share common trunk segments with subgraph-aware junction placement.

Bug Fixes

  • Fix edit dialog SVG rendering, source panel update, and close timing
  • Workarounds for ELK 0.11.0 compound node bugs (eclipse-elk/elk#724)

v1.0.0

Compare Source

beautiful-mermaid v1.0.0

Layout Engine
  • ELK.js replaces dagre — fully synchronous layout via FakeWorker bypass, better edge routing and subgraph handling
  • Shape-aware edge clipping — edges terminate at actual shape boundaries (e.g. diamond vertices), not bounding boxes
  • New layout optionsnodeSpacing, layerSpacing, componentSpacing, thoroughness for fine-grained control
  • Disconnected component support — graphs with unconnected subgraphs now lay out properly
  • Per-subgraph direction overrides — nested subgraphs can have independent LR/TD/BT/RL direction
Multi-line Labels & Formatting
  • <br> tags in node labels, edge labels, and subgraph headers — line breaks work everywhere
  • Inline formatting<b>, <i>, <u>, <s> tags render as bold/italic/underline/strikethrough in SVG
  • Variable-width text measurement — character-class buckets (narrow, wide, CJK, emoji) instead of fixed-ratio estimation
Themeable ASCII
  • ANSI color modesnone, ansi16, ansi256, truecolor, and html (for browser rendering)
  • AsciiTheme type — customize colors per role: fg, border, line, arrow, corner, junction
  • colorMode: 'auto' — auto-detects terminal capabilities
ASCII Shapes

12+ distinct node shapes in terminal output:
rectangle, rounded, diamond, circle, hexagon, stadium, cylinder, doublecircle, subroutine, asymmetric, trapezoid, state-start, state-end

ASCII Rendering Improvements
  • Edge bundling — fan-in/fan-out patterns merge into visual junctions (TD direction)
  • Multi-line labels in both nodes and edges
  • Multi-section boxes for class diagrams (name / attributes / methods) and ER diagrams
  • Canvas role tracking — each character tagged with semantic role for accurate colorization
  • Diagonal line validationassertNoDiagonals() for test assertions
SVG Renderer
  • Semantic data attributes on all elements (data-id, data-from, data-to, data-style, data-label)
  • Improved arrow markers — combined fill + stroke for crisp rendering at small sizes
  • Better edge label pills — increased stroke width, improved contrast
Breaking Changes
  • dagre removed — replaced by ELK.js (API unchanged, layout results differ)
  • tsup.config.ts removed (no longer bundled separately)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented Feb 26, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
just-be-dev 4f60590 Commit Preview URL

Branch Preview URL
Mar 14 2026, 02:05 PM

@renovate renovate Bot force-pushed the renovate/beautiful-mermaid-1.x branch from c97ac4c to 7aec9a3 Compare March 13, 2026 17:07
@renovate renovate Bot force-pushed the renovate/beautiful-mermaid-1.x branch from 7aec9a3 to 4f60590 Compare March 14, 2026 14:05
@just-be-dev just-be-dev merged commit 7c4ebb4 into main Mar 14, 2026
5 checks passed
@just-be-dev just-be-dev deleted the renovate/beautiful-mermaid-1.x branch March 14, 2026 16:40
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.

1 participant