zombie-mermaid 5.1.0 → 5.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -143,6 +143,18 @@ Sequence, pie, xychart and C4 diagrams, and all ASCII output, need no `elkjs`
|
|
|
143
143
|
and no registration. Rendering a graph diagram with no `elkjs` available throws an
|
|
144
144
|
`ElkNotRegisteredError` that says how to fix it.
|
|
145
145
|
|
|
146
|
+
**Flowcharts without `elkjs`.** Pass `layout: 'simple'` to lay a flowchart out with a
|
|
147
|
+
small built-in layered layout instead of ELK. It needs no `elkjs`, adds about 3.5 KB
|
|
148
|
+
gzipped, and is opt-in: the default output never changes. It is a rougher match for
|
|
149
|
+
ELK on edge routing, and a subgraph's own `direction` is ignored. State, class, ER
|
|
150
|
+
and architecture diagrams still need `elkjs`. See
|
|
151
|
+
[the decision record](docs/decisions/simple-layout-1685.md) for the measured quality
|
|
152
|
+
gap.
|
|
153
|
+
|
|
154
|
+
```typescript
|
|
155
|
+
const svg = renderMermaidSVG('graph TD\n A --> B', { layout: 'simple' }) // no registerElk()
|
|
156
|
+
```
|
|
157
|
+
|
|
146
158
|
Need async? Use `renderMermaidSVGAsync()` — same output, returns a `Promise<string>`.
|
|
147
159
|
|
|
148
160
|
### ASCII Output
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zombie-mermaid",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Render Mermaid diagrams as beautiful SVGs or ASCII art. Ultra-fast, fully themeable, zero DOM dependencies. Maintained fork of beautiful-mermaid.",
|
|
6
6
|
"type": "module",
|
|
@@ -90,11 +90,11 @@
|
|
|
90
90
|
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
91
91
|
"elkjs": "^0.11.0",
|
|
92
92
|
"entities": "^7.0.1",
|
|
93
|
-
"@zombie-mermaid/ascii-renderer": "5.
|
|
94
|
-
"@zombie-mermaid/core": "5.
|
|
95
|
-
"@zombie-mermaid/mcp": "5.
|
|
96
|
-
"@zombie-mermaid/
|
|
97
|
-
"@zombie-mermaid/
|
|
93
|
+
"@zombie-mermaid/ascii-renderer": "5.2.0",
|
|
94
|
+
"@zombie-mermaid/core": "5.2.0",
|
|
95
|
+
"@zombie-mermaid/mcp": "5.2.0",
|
|
96
|
+
"@zombie-mermaid/svg-renderer": "5.2.0",
|
|
97
|
+
"@zombie-mermaid/mermaid-parser": "5.2.0"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
100
100
|
"@axe-core/playwright": "^4.13.0",
|
|
@@ -163,6 +163,7 @@
|
|
|
163
163
|
"metrics:history:append": "tsx scripts/metrics-history-append.ts",
|
|
164
164
|
"bench:trend": "tsx scripts/bench-trend.ts",
|
|
165
165
|
"bench:mcp": "tsx scripts/bench-mcp.ts",
|
|
166
|
+
"check:changesets": "tsx scripts/check-changesets.ts",
|
|
166
167
|
"check:docs": "tsx scripts/check-docs.ts",
|
|
167
168
|
"smoke:packed": "node scripts/smoke-test-packed.mjs",
|
|
168
169
|
"check:bundle-size": "tsx scripts/check-bundle-size.ts",
|