@mermanjs/node-wasm 0.9.3 → 0.10.0-alpha.1

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.
@@ -19,21 +19,21 @@ Components: `beautiful-mermaid`, `mermaid`, `mermaid-ascii`, `mermaid-rs-rendere
19
19
 
20
20
  ### `cli-default`
21
21
 
22
- The default CLI feature closure including ELK and RaTeX math/font support.
22
+ The source-default CLI feature closure including ELK without RaTeX math/font support.
23
23
 
24
- Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `ratex`, `rough-rs`, `roughjs`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
24
+ Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `rough-rs`, `roughjs`, `roxmltree-dom`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
25
25
 
26
26
  ### `cli-release`
27
27
 
28
28
  The published complete CLI release closure, including explicit ELK and RaTeX math/font support.
29
29
 
30
- Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `ratex`, `rough-rs`, `roughjs`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
30
+ Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `ratex`, `rough-rs`, `roughjs`, `roxmltree-dom`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
31
31
 
32
32
  ### `elk-render`
33
33
 
34
34
  Render artifacts that include the source-translated Eclipse ELK layered implementation.
35
35
 
36
- Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `rough-rs`, `roughjs`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
36
+ Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `rough-rs`, `roughjs`, `roxmltree-dom`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
37
37
 
38
38
  ### `playground-reference`
39
39
 
@@ -45,55 +45,55 @@ Components: `d3-shape`, `dompurify`, `elkjs`, `mermaid`, `non-layered-tidy-tree-
45
45
 
46
46
  Render artifacts that link RaTeX and embed the KaTeX TrueType font payload.
47
47
 
48
- Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `ratex`, `rough-rs`, `roughjs`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
48
+ Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `ratex`, `rough-rs`, `roughjs`, `roxmltree-dom`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
49
49
 
50
50
  ### `rust-render-base`
51
51
 
52
52
  Headless parser and renderer artifacts without optional ELK, RaTeX, ASCII, or Typst transport features.
53
53
 
54
- Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `fmin`, `graphlib`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `rough-rs`, `roughjs`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
54
+ Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `fmin`, `graphlib`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `rough-rs`, `roughjs`, `roxmltree-dom`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
55
55
 
56
56
  ### `sdk-full`
57
57
 
58
58
  Embedding SDK full legal closure.
59
59
 
60
- Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `ratex`, `rough-rs`, `roughjs`, `sanitize-url`, `sdk-cousine`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
60
+ Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `ratex`, `rough-rs`, `roughjs`, `roxmltree-dom`, `sanitize-url`, `sdk-cousine`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
61
61
 
62
62
  ### `sdk-math`
63
63
 
64
64
  Embedding SDK math legal closure.
65
65
 
66
- Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `ratex`, `rough-rs`, `roughjs`, `sanitize-url`, `sdk-cousine`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
66
+ Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `ratex`, `rough-rs`, `roughjs`, `roxmltree-dom`, `sanitize-url`, `sdk-cousine`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
67
67
 
68
68
  ### `sdk-native-full`
69
69
 
70
70
  Native C full SDK, including its ASCII source notices.
71
71
 
72
- Components: `beautiful-mermaid`, `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `mermaid-ascii`, `mermaid-rs-renderer`, `non-layered-tidy-tree-layout`, `ratex`, `rough-rs`, `roughjs`, `sanitize-url`, `sdk-cousine`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
72
+ Components: `beautiful-mermaid`, `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `mermaid-ascii`, `mermaid-rs-renderer`, `non-layered-tidy-tree-layout`, `ratex`, `rough-rs`, `roughjs`, `roxmltree-dom`, `sanitize-url`, `sdk-cousine`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
73
73
 
74
74
  ### `sdk-native-math`
75
75
 
76
76
  Native C math SDK, including its ASCII source notices.
77
77
 
78
- Components: `beautiful-mermaid`, `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `mermaid-ascii`, `mermaid-rs-renderer`, `non-layered-tidy-tree-layout`, `ratex`, `rough-rs`, `roughjs`, `sanitize-url`, `sdk-cousine`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
78
+ Components: `beautiful-mermaid`, `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `mermaid-ascii`, `mermaid-rs-renderer`, `non-layered-tidy-tree-layout`, `ratex`, `rough-rs`, `roughjs`, `roxmltree-dom`, `sanitize-url`, `sdk-cousine`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
79
79
 
80
80
  ### `sdk-native-standard`
81
81
 
82
82
  Native C standard SDK, including its ASCII source notices.
83
83
 
84
- Components: `beautiful-mermaid`, `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `fmin`, `graphlib`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `mermaid-ascii`, `mermaid-rs-renderer`, `non-layered-tidy-tree-layout`, `rough-rs`, `roughjs`, `sanitize-url`, `sdk-cousine`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
84
+ Components: `beautiful-mermaid`, `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `fmin`, `graphlib`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `mermaid-ascii`, `mermaid-rs-renderer`, `non-layered-tidy-tree-layout`, `rough-rs`, `roughjs`, `roxmltree-dom`, `sanitize-url`, `sdk-cousine`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
85
85
 
86
86
  ### `sdk-standard`
87
87
 
88
88
  Embedding SDK standard legal closure.
89
89
 
90
- Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `fmin`, `graphlib`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `rough-rs`, `roughjs`, `sanitize-url`, `sdk-cousine`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
90
+ Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `fmin`, `graphlib`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `rough-rs`, `roughjs`, `roxmltree-dom`, `sanitize-url`, `sdk-cousine`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
91
91
 
92
92
  ### `source-archive`
93
93
 
94
94
  Conservative repository source archive inventory covering every translated, copied, linked, embedded, fixture, and behavior-reference component recorded here.
95
95
 
96
- Components: `beautiful-mermaid`, `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `mermaid-ascii`, `mermaid-rs-renderer`, `monaqa-tree-sitter-mermaid`, `non-layered-tidy-tree-layout`, `pappasam-tree-sitter-mermaid`, `ratex`, `rough-rs`, `roughjs`, `sanitize-url`, `singularity-tree-sitter-mermaid`, `tree-sitter-generator`, `tree-sitter-mermaid-mermaid-12-new-families`, `tree-sitter-mermaid-mermaid-baseline`, `tree-sitter-mermaid-zenuml-baseline`, `tree-sitter-templates`, `unicode-linebreak`, `venn-js`, `wasm-minimal-protocol`, `zenuml-core`.
96
+ Components: `beautiful-mermaid`, `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `mermaid-ascii`, `mermaid-rs-renderer`, `monaqa-tree-sitter-mermaid`, `non-layered-tidy-tree-layout`, `pappasam-tree-sitter-mermaid`, `rough-rs`, `roughjs`, `roxmltree-dom`, `sanitize-url`, `singularity-tree-sitter-mermaid`, `tree-sitter-generator`, `tree-sitter-mermaid-mermaid-12-new-families`, `tree-sitter-mermaid-mermaid-baseline`, `tree-sitter-mermaid-zenuml-baseline`, `tree-sitter-templates`, `unicode-linebreak`, `venn-js`, `wasm-minimal-protocol`, `zenuml-core`.
97
97
 
98
98
  ### `tree-sitter-mermaid-source`
99
99
 
@@ -105,7 +105,7 @@ Components: `monaqa-tree-sitter-mermaid`, `pappasam-tree-sitter-mermaid`, `singu
105
105
 
106
106
  The Typst WASM publish profile, including ELK and wasm-minimal-protocol but excluding RaTeX.
107
107
 
108
- Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `rough-rs`, `roughjs`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `wasm-minimal-protocol`, `zenuml-core`.
108
+ Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `rough-rs`, `roughjs`, `roxmltree-dom`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `wasm-minimal-protocol`, `zenuml-core`.
109
109
 
110
110
  ### `web-analysis`
111
111
 
@@ -127,15 +127,15 @@ Components: `dompurify`, `mermaid`, `sanitize-url`, `zenuml-core`.
127
127
 
128
128
  ### `web-full`
129
129
 
130
- The published complete browser SVG renderer, including Cytoscape, ELK, RaTeX, and the embedded KaTeX font payload.
130
+ Browser SDK including ASCII, Cytoscape, ELK and RaTeX math/font support.
131
131
 
132
- Components: `beautiful-mermaid`, `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `mermaid-ascii`, `mermaid-rs-renderer`, `non-layered-tidy-tree-layout`, `ratex`, `rough-rs`, `roughjs`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
132
+ Components: `beautiful-mermaid`, `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `mermaid-ascii`, `mermaid-rs-renderer`, `non-layered-tidy-tree-layout`, `ratex`, `rough-rs`, `roughjs`, `roxmltree-dom`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
133
133
 
134
134
  ### `web-render`
135
135
 
136
- Published complete browser SVG renderer with Cytoscape, ELK, RaTeX, and the embedded KaTeX font payload, but without analysis, ASCII, or editor APIs.
136
+ Complete browser SVG renderer with math, Cytoscape and ELK, without analysis, ASCII, or editor APIs.
137
137
 
138
- Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `ratex`, `rough-rs`, `roughjs`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
138
+ Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-shape`, `dagre`, `dompurify`, `eclipse-elk`, `elkjs`, `fmin`, `graphlib`, `katex-fonts`, `layout-base-v1`, `layout-base-v2`, `mermaid`, `non-layered-tidy-tree-layout`, `ratex`, `rough-rs`, `roughjs`, `roxmltree-dom`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
139
139
 
140
140
  ## Components
141
141
 
@@ -280,7 +280,7 @@ Merman selects DOMPurify's Apache-2.0 option for generated sanitizer defaults; t
280
280
  - License expression: `(Apache-2.0 OR MPL-2.0)`
281
281
  - Selected license path: `Apache-2.0`
282
282
  - Artifact scopes: `cli-default`, `cli-release`, `elk-render`, `playground-reference`, `ratex-render`, `rust-render-base`, `sdk-full`, `sdk-math`, `sdk-native-full`, `sdk-native-math`, `sdk-native-standard`, `sdk-standard`, `source-archive`, `typst-publish`, `web-analysis`, `web-ascii`, `web-editor`, `web-full`, `web-render`
283
- - Local evidence: `crates/merman-core/src/generated/dompurify_defaults.rs`
283
+ - Local evidence: `crates/merman-markup/src/generated/dompurify_defaults.rs`
284
284
  - Legal files:
285
285
  - [`THIRD_PARTY_LICENSES/dompurify/LICENSE`](THIRD_PARTY_LICENSES/dompurify/LICENSE) (license, SHA-256 `cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30`)
286
286
 
@@ -359,7 +359,7 @@ The RaTeX SVG backend embeds twenty KaTeX TrueType fonts; those font bytes are l
359
359
  - Source path: `crates/ratex-katex-fonts/fonts`
360
360
  - Relationship: `embedded`
361
361
  - License expression: `OFL-1.1`
362
- - Artifact scopes: `cli-default`, `cli-release`, `ratex-render`, `sdk-full`, `sdk-math`, `sdk-native-full`, `sdk-native-math`, `source-archive`, `web-full`, `web-render`
362
+ - Artifact scopes: `cli-release`, `ratex-render`, `sdk-full`, `sdk-math`, `sdk-native-full`, `sdk-native-math`, `web-full`, `web-render`
363
363
  - Local evidence: `Cargo.lock`, `crates/merman-render/src/math.rs`
364
364
  - Legal files:
365
365
  - [`THIRD_PARTY_LICENSES/katex-fonts/FONT_NOTICE.txt`](THIRD_PARTY_LICENSES/katex-fonts/FONT_NOTICE.txt) (notice, SHA-256 `752ba9eff7a281f5ad789528ea078b46149b10e72296625108c26a94695ad03e`)
@@ -401,15 +401,15 @@ Manatee also follows the newer layout-base behavior selected by the FCoSE depend
401
401
 
402
402
  Merman independently implements Mermaid-compatible behavior while translating selected algorithms, generating defaults, copying architecture icon data, and retaining upstream fixtures and snapshots.
403
403
 
404
- - Version: `12.1.0`
404
+ - Version: `12.2.0`
405
405
  - Source: <https://github.com/mermaid-js/mermaid.git>
406
- - Source ref: `mermaid@12.1.0`
407
- - Source commit: `21f72f07ea22c0af48a3149c550654e80d8e40cb`
406
+ - Source ref: `mermaid@12.2.0`
407
+ - Source commit: `1fb7869866dd619168d840291c9c54b4f129758b`
408
408
  - Source path: `packages/mermaid`
409
409
  - Relationship: `behavior-reference`, `copied`, `fixtures`, `generated`, `modified`, `translated`
410
410
  - License expression: `MIT`
411
411
  - Artifact scopes: `ascii-render`, `cli-default`, `cli-release`, `elk-render`, `playground-reference`, `ratex-render`, `rust-render-base`, `sdk-full`, `sdk-math`, `sdk-native-full`, `sdk-native-math`, `sdk-native-standard`, `sdk-standard`, `source-archive`, `typst-publish`, `web-analysis`, `web-ascii`, `web-editor`, `web-full`, `web-render`
412
- - Local evidence: `crates/merman-core/src`, `crates/merman-render/src`, `crates/merman-render/src/svg/parity/architecture/icons.rs`, `fixtures`
412
+ - Local evidence: `crates/merman-core/src`, `crates/merman-markup/src`, `crates/merman-model/src`, `crates/merman-render/src`, `crates/merman-render/src/svg/parity/architecture/icons.rs`, `fixtures`
413
413
  - Legal files:
414
414
  - [`THIRD_PARTY_LICENSES/mermaid/LICENSE`](THIRD_PARTY_LICENSES/mermaid/LICENSE) (license, SHA-256 `ec9fb67dcb25eccc416ed56e1aab819222c805a2a4bfe4cb19e7556bf2ffde80`)
415
415
 
@@ -504,7 +504,7 @@ Optional math rendering links the RaTeX 0.1.15 crate family; its separately lice
504
504
  - Source path: `crates`
505
505
  - Relationship: `linked`
506
506
  - License expression: `MIT`
507
- - Artifact scopes: `cli-default`, `cli-release`, `ratex-render`, `sdk-full`, `sdk-math`, `sdk-native-full`, `sdk-native-math`, `source-archive`, `web-full`, `web-render`
507
+ - Artifact scopes: `cli-release`, `ratex-render`, `sdk-full`, `sdk-math`, `sdk-native-full`, `sdk-native-math`, `web-full`, `web-render`
508
508
  - Local evidence: `Cargo.lock`, `crates/merman-render/src/math.rs`
509
509
  - Legal files:
510
510
  - [`THIRD_PARTY_LICENSES/ratex/LICENSE`](THIRD_PARTY_LICENSES/ratex/LICENSE) (license, SHA-256 `f65e10eaa978c50a58c5e792110b4be5014b865edcb2ade49076bfcc98fa92b0`)
@@ -542,6 +542,24 @@ The roughr fork aligns its randomization and drawing-operation semantics with Ro
542
542
  - Legal files:
543
543
  - [`THIRD_PARTY_LICENSES/roughjs/LICENSE`](THIRD_PARTY_LICENSES/roughjs/LICENSE) (license, SHA-256 `dca9a392272606ac748ac0976a2a1133f14eef841c27beaa51a844d53c56a09d`)
544
544
 
545
+ ### roxmltree private XML DOM (`roxmltree-dom`)
546
+
547
+ The renderer privately imports roxmltree 0.21.1 with its official iterative element parsing fix so accepted deep XHTML does not exhaust the call stack. Namespace, entity, source-range and DOM semantics are retained. The adapted tree derives from ego-tree under ISC; roxmltree offers MIT or Apache-2.0 and this distribution selects MIT.
548
+
549
+ - Version: `0.21.1 with upstream iterative element fix`
550
+ - Source: <https://github.com/RazrFalcon/roxmltree>
551
+ - Source ref: `3f5c78dea57662b43a2f41961397b1f5ffe27166`
552
+ - Source commit: `3f5c78dea57662b43a2f41961397b1f5ffe27166`
553
+ - Source path: `src`
554
+ - Relationship: `copied`, `modified`
555
+ - License expression: `MIT AND ISC`
556
+ - Artifact scopes: `cli-default`, `cli-release`, `elk-render`, `ratex-render`, `rust-render-base`, `sdk-full`, `sdk-math`, `sdk-native-full`, `sdk-native-math`, `sdk-native-standard`, `sdk-standard`, `source-archive`, `typst-publish`, `web-full`, `web-render`
557
+ - Local evidence: `crates/merman-render/src/xml_dom`
558
+ - Legal files:
559
+ - [`THIRD_PARTY_LICENSES/roxmltree-dom/LICENSE-APACHE`](THIRD_PARTY_LICENSES/roxmltree-dom/LICENSE-APACHE) (license, SHA-256 `a60eea817514531668d7e00765731449fe14d059d3249e0bc93b36de45f759f2`)
560
+ - [`THIRD_PARTY_LICENSES/roxmltree-dom/LICENSE-ISC`](THIRD_PARTY_LICENSES/roxmltree-dom/LICENSE-ISC) (license, SHA-256 `c6a4ae2a0565d17ac7fccae808275596fc5959ffdf507107d001bc4669189e45`)
561
+ - [`THIRD_PARTY_LICENSES/roxmltree-dom/LICENSE-MIT`](THIRD_PARTY_LICENSES/roxmltree-dom/LICENSE-MIT) (license, SHA-256 `fffe218c1e349e1d482a05677f2ce850502f88298174d77f6ac7c04821db7899`)
562
+
545
563
  ### sanitize-url (`sanitize-url`)
546
564
 
547
565
  Merman's URL sanitization behavior is a source-backed Rust translation of sanitize-url.
@@ -554,7 +572,7 @@ Merman's URL sanitization behavior is a source-backed Rust translation of saniti
554
572
  - Relationship: `modified`, `translated`
555
573
  - License expression: `MIT`
556
574
  - Artifact scopes: `cli-default`, `cli-release`, `elk-render`, `playground-reference`, `ratex-render`, `rust-render-base`, `sdk-full`, `sdk-math`, `sdk-native-full`, `sdk-native-math`, `sdk-native-standard`, `sdk-standard`, `source-archive`, `typst-publish`, `web-analysis`, `web-ascii`, `web-editor`, `web-full`, `web-render`
557
- - Local evidence: `crates/merman-core/src/utils.rs`
575
+ - Local evidence: `crates/merman-markup/src/url.rs`
558
576
  - Legal files:
559
577
  - [`THIRD_PARTY_LICENSES/sanitize-url/LICENSE`](THIRD_PARTY_LICENSES/sanitize-url/LICENSE) (license, SHA-256 `0984740e0c3d725c8044dec7edcefe1dbce180ef5a7bc710c251e19607000158`)
560
578
 
Binary file
package/dist/engine.mjs CHANGED
@@ -176,10 +176,11 @@ export function normalizeBindingOptions(value = {}) {
176
176
  }
177
177
  if (
178
178
  normalized.environment.text_measurement !== undefined &&
179
+ normalized.environment.text_measurement !== null &&
179
180
  normalized.environment.text_measurement !== "deterministic"
180
181
  ) {
181
182
  throw new RangeError(
182
- "bindingOptions.environment.text_measurement must be `deterministic`.",
183
+ "bindingOptions.environment.text_measurement must be `deterministic` or null.",
183
184
  );
184
185
  }
185
186
  }
@@ -218,39 +219,35 @@ export class MermanEngine {
218
219
  }
219
220
 
220
221
  renderSvg(source, options = {}) {
221
- return this.executeOperation(
222
+ return this.#execute(
222
223
  { operationId: "svg", source, optionsJson: options.optionsJson },
223
224
  { signal: options.signal, timeoutMs: options.timeoutMs },
224
- ).then((result) => result.data);
225
+ false,
226
+ );
225
227
  }
226
228
 
227
229
  renderSvgSync(source, options = {}) {
228
- return this.executeOperationSync(
229
- {
230
- operationId: "svg",
231
- source,
232
- optionsJson: options.optionsJson,
233
- },
230
+ return this.#executeSync(
231
+ { operationId: "svg", source, optionsJson: options.optionsJson },
234
232
  { timeoutMs: options.timeoutMs },
235
- ).data;
233
+ false,
234
+ );
236
235
  }
237
236
 
238
237
  svgPlanJson(source, options = {}) {
239
- return this.executeOperation(
238
+ return this.#execute(
240
239
  { operationId: "svg-plan-json", source, optionsJson: options.optionsJson },
241
240
  { signal: options.signal, timeoutMs: options.timeoutMs },
242
- ).then((result) => result.data);
241
+ false,
242
+ );
243
243
  }
244
244
 
245
245
  svgPlanJsonSync(source, options = {}) {
246
- return this.executeOperationSync(
247
- {
248
- operationId: "svg-plan-json",
249
- source,
250
- optionsJson: options.optionsJson,
251
- },
246
+ return this.#executeSync(
247
+ { operationId: "svg-plan-json", source, optionsJson: options.optionsJson },
252
248
  { timeoutMs: options.timeoutMs },
253
- ).data;
249
+ false,
250
+ );
254
251
  }
255
252
 
256
253
  metadataJson(id) {
@@ -277,7 +274,11 @@ export class MermanEngine {
277
274
  return value;
278
275
  }
279
276
 
280
- executeOperation(request, { signal, timeoutMs } = {}) {
277
+ executeOperation(request, options = {}) {
278
+ return this.#execute(request, options, true);
279
+ }
280
+
281
+ #execute(request, { signal, timeoutMs } = {}, includeMetadata) {
281
282
  try {
282
283
  this.#executor.assertOpen();
283
284
  } catch (error) {
@@ -285,7 +286,7 @@ export class MermanEngine {
285
286
  }
286
287
  const prepared = prepareOperationRequest(request, { timeoutMs });
287
288
  if (signal?.aborted) return Promise.reject(abortError());
288
- const encoded = operationRequestJson(prepared);
289
+ const encoded = operationRequestJson(prepared, includeMetadata);
289
290
  return this.#executor.submit(
290
291
  async () => {
291
292
  // A signal can flip after queue admission but before this start microtask runs. That work
@@ -303,17 +304,26 @@ export class MermanEngine {
303
304
  throw decodeWireInvocationError(cause, "Merman operation");
304
305
  }
305
306
  return decodeWireResponse(responseJson, encoded.expectation, {
307
+ includeMetadata,
306
308
  allowedCancellationReasons: invocationCancellationReasons(signal, timeoutMs),
307
309
  requireUnavailable: !this.#operationIds.has(encoded.expectation.operation_id),
310
+ availableCapabilityIds: this.#runtimeCatalog.capabilities.capability_ids,
308
311
  });
309
312
  },
310
313
  { signal },
311
314
  );
312
315
  }
313
316
 
314
- executeOperationSync(request, { timeoutMs } = {}) {
317
+ executeOperationSync(request, options = {}) {
318
+ return this.#executeSync(request, options, true);
319
+ }
320
+
321
+ #executeSync(request, { timeoutMs } = {}, includeMetadata) {
315
322
  this.#executor.assertSyncAvailable();
316
- const encoded = operationRequestJson(prepareOperationRequest(request, { timeoutMs }));
323
+ const encoded = operationRequestJson(
324
+ prepareOperationRequest(request, { timeoutMs }),
325
+ includeMetadata,
326
+ );
317
327
  let responseJson;
318
328
  try {
319
329
  responseJson = this.#transport.executeSync(encoded.json, timeoutMs);
@@ -321,8 +331,10 @@ export class MermanEngine {
321
331
  throw decodeWireInvocationError(cause, "Merman operation");
322
332
  }
323
333
  return decodeWireResponse(responseJson, encoded.expectation, {
334
+ includeMetadata,
324
335
  allowedCancellationReasons: invocationCancellationReasons(undefined, timeoutMs),
325
336
  requireUnavailable: !this.#operationIds.has(encoded.expectation.operation_id),
337
+ availableCapabilityIds: this.#runtimeCatalog.capabilities.capability_ids,
326
338
  });
327
339
  }
328
340
 
@@ -408,7 +420,8 @@ function prepareOperationRequest(value, { timeoutMs } = {}) {
408
420
  return { expectation, request, value };
409
421
  }
410
422
 
411
- function operationRequestJson({ expectation, request, value }) {
423
+ function operationRequestJson({ expectation, request, value }, includeMetadata) {
424
+ if (!includeMetadata) request.include_metadata = false;
412
425
  const optionsJson = value.optionsJson;
413
426
  if (optionsJson !== undefined) {
414
427
  if (typeof optionsJson !== "string") {
package/dist/errors.mjs CHANGED
@@ -102,6 +102,7 @@ export class MermanOperationError extends MermanError {
102
102
  this.codeName = payload.code_name ?? null;
103
103
  this.kind = payload.kind ?? "generic";
104
104
  this.capabilityId = payload.capability_id ?? null;
105
+ this.details = payload.details ?? null;
105
106
  this.resourceDetails = payload.details?.resource ?? null;
106
107
  this.iconRegistryDetails = payload.details?.icon_registry ?? null;
107
108
  this.diagnosticDetails = payload.details?.diagnostic ?? null;
@@ -133,7 +134,7 @@ export class MermanLifecycleError extends MermanError {
133
134
  export class MermanUnsupportedTargetError extends MermanError {
134
135
  constructor({ platform, arch, libc = null, reason = null }) {
135
136
  const target = [platform, arch, libc].filter(Boolean).join("-");
136
- super(reason ?? `Unsupported Merman Node target: ${target}.`, {
137
+ super(`${reason ?? `Unsupported Merman Node target: ${target}.`} Use @mermanjs/node-wasm explicitly for a portable Node transport.`, {
137
138
  code: "MERMAN_UNSUPPORTED_TARGET",
138
139
  });
139
140
  this.platform = platform;
@@ -173,6 +174,18 @@ export class MermanInvalidTransportError extends MermanError {
173
174
  export { NODE_TRANSPORT_FIELD_LIMITS, NODE_TRANSPORT_LIMITS, NODE_WIRE_CONTRACT };
174
175
 
175
176
  export function parseTransportJsonText(value, label, limits) {
177
+ assertTransportJsonTextLimits(value, label, limits);
178
+ try {
179
+ return JSON.parse(value);
180
+ } catch (cause) {
181
+ throw new MermanInvalidTransportError(
182
+ `Merman transport returned invalid ${label} JSON.`,
183
+ cause,
184
+ );
185
+ }
186
+ }
187
+
188
+ function assertTransportJsonTextLimits(value, label, limits) {
176
189
  if (typeof value !== "string") {
177
190
  throw new MermanInvalidTransportError(`Merman transport ${label} must be JSON text.`);
178
191
  }
@@ -186,14 +199,6 @@ export function parseTransportJsonText(value, label, limits) {
186
199
  );
187
200
  }
188
201
  scanBoundedJsonText(value, label, limits);
189
- try {
190
- return JSON.parse(value);
191
- } catch (cause) {
192
- throw new MermanInvalidTransportError(
193
- `Merman transport returned invalid ${label} JSON.`,
194
- cause,
195
- );
196
- }
197
202
  }
198
203
 
199
204
  export function encodeTransportJson(value, label, limits) {
@@ -219,7 +224,8 @@ export function encodeTransportJson(value, label, limits) {
219
224
  cause,
220
225
  );
221
226
  }
222
- parseTransportJsonText(text, label, limits);
227
+ // JSON.stringify guarantees syntax for the controlled clone; retain all wire-limit checks.
228
+ assertTransportJsonTextLimits(text, label, limits);
223
229
  return text;
224
230
  }
225
231
 
@@ -864,7 +870,12 @@ export function abortError() {
864
870
  export function decodeWireResponse(
865
871
  value,
866
872
  expectation,
867
- { allowedCancellationReasons = [], requireUnavailable = false } = {},
873
+ {
874
+ includeMetadata = true,
875
+ allowedCancellationReasons = [],
876
+ requireUnavailable = false,
877
+ availableCapabilityIds = [],
878
+ } = {},
868
879
  ) {
869
880
  const cancellationReasons = validateAllowedCancellationReasons(allowedCancellationReasons);
870
881
  const envelope = parseTransportJsonText(
@@ -890,6 +901,7 @@ export function decodeWireResponse(
890
901
  expectation,
891
902
  requireUnavailable,
892
903
  cancellationReasons,
904
+ availableCapabilityIds,
893
905
  );
894
906
  throw new MermanOperationError(error);
895
907
  }
@@ -903,7 +915,7 @@ export function decodeWireResponse(
903
915
  "Merman transport executed an operation that its runtime catalog does not advertise.",
904
916
  );
905
917
  }
906
- return validateSuccessResult(envelope.result, expectation);
918
+ return validateSuccessResult(envelope.result, expectation, includeMetadata);
907
919
  }
908
920
 
909
921
  function validateAllowedCancellationReasons(reasons) {
@@ -959,7 +971,7 @@ function validateEnvelopeHeader(envelope, label) {
959
971
  }
960
972
  }
961
973
 
962
- function validateSuccessResult(result, expectation) {
974
+ function validateSuccessResult(result, expectation, includeMetadata) {
963
975
  if (
964
976
  !isPlainJsonObject(result) ||
965
977
  typeof result.operation_id !== "string" ||
@@ -967,7 +979,7 @@ function validateSuccessResult(result, expectation) {
967
979
  typeof result.media_type !== "string" ||
968
980
  result.media_type.length === 0 ||
969
981
  typeof result.data !== "string" ||
970
- typeof result.metadata_json !== "string"
982
+ (includeMetadata && typeof result.metadata_json !== "string")
971
983
  ) {
972
984
  throw new MermanInvalidTransportError("Merman transport returned an invalid result envelope.");
973
985
  }
@@ -986,11 +998,6 @@ function validateSuccessResult(result, expectation) {
986
998
  "response data",
987
999
  NODE_TRANSPORT_FIELD_LIMITS.data_utf8_bytes,
988
1000
  );
989
- assertUtf8Field(
990
- result.metadata_json,
991
- "response metadata_json",
992
- NODE_TRANSPORT_FIELD_LIMITS.metadata_json_utf8_bytes,
993
- );
994
1001
  if (
995
1002
  !expectation ||
996
1003
  result.operation_id !== expectation.operation_id ||
@@ -1000,6 +1007,19 @@ function validateSuccessResult(result, expectation) {
1000
1007
  "Merman transport result identity does not match the requested operation contract.",
1001
1008
  );
1002
1009
  }
1010
+ if (!includeMetadata) {
1011
+ if (Object.hasOwn(result, "metadata_json")) {
1012
+ throw new MermanInvalidTransportError(
1013
+ "Merman transport returned metadata for a data-only operation.",
1014
+ );
1015
+ }
1016
+ return result.data;
1017
+ }
1018
+ assertUtf8Field(
1019
+ result.metadata_json,
1020
+ "response metadata_json",
1021
+ NODE_TRANSPORT_FIELD_LIMITS.metadata_json_utf8_bytes,
1022
+ );
1003
1023
  const metadata = parseTransportJsonText(
1004
1024
  result.metadata_json,
1005
1025
  "nested operation metadata",
@@ -1032,6 +1052,7 @@ function validateErrorPayload(
1032
1052
  expectation = null,
1033
1053
  requireUnavailable = false,
1034
1054
  allowedCancellationReasons = new Set(),
1055
+ availableCapabilityIds = [],
1035
1056
  ) {
1036
1057
  if (
1037
1058
  !isPlainJsonObject(error) ||
@@ -1096,7 +1117,11 @@ function validateErrorPayload(
1096
1117
  }
1097
1118
  } else if (
1098
1119
  expectation &&
1099
- (error.kind === "missing-capability" || error.kind === "unknown-operation")
1120
+ (error.kind === "unknown-operation" ||
1121
+ (error.kind === "missing-capability" &&
1122
+ (error.capability_id === expectation.availability_capability_id ||
1123
+ // The environment policy may disable a compiled math backend for this request.
1124
+ (error.capability_id !== "math" && availableCapabilityIds.includes(error.capability_id)))))
1100
1125
  ) {
1101
1126
  throw new MermanInvalidTransportError(
1102
1127
  "Merman transport contradicted its advertised operation catalog.",