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

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.
@@ -5,7 +5,7 @@
5
5
  Merman is an independent, headless Rust implementation of Mermaid-compatible behavior. It
6
6
  is not affiliated with or endorsed by Mermaid or the projects listed below.
7
7
 
8
- The machine-readable source of truth is [`docs/release/THIRD_PARTY_COMPONENTS.json`](docs/release/THIRD_PARTY_COMPONENTS.json).
8
+ The machine-readable source of truth is [`docs/release/THIRD_PARTY_COMPONENTS.json`](https://github.com/Latias94/merman/blob/main/docs/release/THIRD_PARTY_COMPONENTS.json).
9
9
  It records exact source revisions, local relationships, artifact scopes, and SHA-256-bound
10
10
  license or notice files. This inventory is engineering evidence, not legal advice.
11
11
 
@@ -21,79 +21,79 @@ Components: `beautiful-mermaid`, `mermaid`, `mermaid-ascii`, `mermaid-rs-rendere
21
21
 
22
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`, `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`.
24
+ Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-path`, `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`, `roxmltree-dom`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
30
+ Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-path`, `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`, `roxmltree-dom`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
36
+ Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-path`, `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
 
40
40
  Third-party projects loaded by or used as behavioral evidence for the deployed Playground.
41
41
 
42
- Components: `d3-shape`, `dompurify`, `elkjs`, `mermaid`, `non-layered-tidy-tree-layout`, `roughjs`, `sanitize-url`, `venn-js`, `zenuml-core`.
42
+ Components: `d3-path`, `d3-shape`, `dompurify`, `elkjs`, `mermaid`, `non-layered-tidy-tree-layout`, `roughjs`, `sanitize-url`, `venn-js`, `zenuml-core`.
43
43
 
44
44
  ### `ratex-render`
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`, `roxmltree-dom`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
48
+ Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-path`, `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`, `roxmltree-dom`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
54
+ Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-path`, `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`, `roxmltree-dom`, `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-path`, `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`, `roxmltree-dom`, `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-path`, `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`, `roxmltree-dom`, `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-path`, `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`, `roxmltree-dom`, `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-path`, `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`, `roxmltree-dom`, `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-path`, `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`, `roxmltree-dom`, `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-path`, `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`, `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`.
96
+ Components: `beautiful-mermaid`, `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-path`, `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`, `roxmltree-dom`, `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-path`, `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
 
@@ -129,13 +129,13 @@ Components: `dompurify`, `mermaid`, `sanitize-url`, `zenuml-core`.
129
129
 
130
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`, `roxmltree-dom`, `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-path`, `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
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`, `roxmltree-dom`, `sanitize-url`, `unicode-linebreak`, `venn-js`, `zenuml-core`.
138
+ Components: `cose-base-v1`, `cose-base-v2`, `cytoscape`, `cytoscape-cose-bilkent`, `cytoscape-fcose`, `d3-path`, `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
 
@@ -191,10 +191,10 @@ Manatee contains Rust translations and adaptations of the newer CoSE base behavi
191
191
 
192
192
  Architecture layout and styling use source-backed Cytoscape behavior and defaults.
193
193
 
194
- - Version: `3.34.0`
194
+ - Version: `3.34.4`
195
195
  - Source: <https://github.com/cytoscape/cytoscape.js.git>
196
- - Source ref: `v3.34.0`
197
- - Source commit: `22716bfb75834b56fa6679648b0abb06f4ae691c`
196
+ - Source ref: `v3.34.4`
197
+ - Source commit: `e394aa858b0699a67be8f9ab426823ae1aae7813`
198
198
  - Source path: `.`
199
199
  - Relationship: `behavior-reference`, `translated`
200
200
  - License expression: `MIT`
@@ -235,9 +235,25 @@ The headless Architecture layout is a modified Rust implementation of FCoSE beha
235
235
  - Legal files:
236
236
  - [`THIRD_PARTY_LICENSES/cytoscape-fcose/LICENSE`](THIRD_PARTY_LICENSES/cytoscape-fcose/LICENSE) (license, SHA-256 `2837634f403949215760fcdd2fa1ed0c64875d02099ecc8318c704b852f1421d`)
237
237
 
238
+ ### d3-path (`d3-path`)
239
+
240
+ The Pie SVG renderer translates D3 path rounding and arc serialization, including the 3.1.1 correction for rounded coincident endpoints of large arcs.
241
+
242
+ - Version: `3.1.1`
243
+ - Source: <https://github.com/d3/d3-path.git>
244
+ - Source ref: `v3.1.1`
245
+ - Source commit: `b9ab34592535861e44ce9db03de4db2c2c9c866a`
246
+ - Source path: `src/path.js`
247
+ - Relationship: `modified`, `translated`
248
+ - License expression: `ISC`
249
+ - 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-full`, `web-render`
250
+ - Local evidence: `crates/merman-render/src/svg/parity/pie/render.rs`
251
+ - Legal files:
252
+ - [`THIRD_PARTY_LICENSES/d3-path/LICENSE`](THIRD_PARTY_LICENSES/d3-path/LICENSE) (license, SHA-256 `f5dff44740d51a1849b4d16b657eccf60577fb5d28d8ee46d33dcc780a11f94a`)
253
+
238
254
  ### d3-shape (`d3-shape`)
239
255
 
240
- The SVG parity layer translates D3 curve algorithms, including basis, natural, step, cardinal, bump, and Catmull-Rom variants.
256
+ The SVG parity layer translates D3 curve algorithms, including basis, natural, step, cardinal, bump, and Catmull-Rom variants. The current reference graph uses d3-shape 3.2.1, whose curve source is unchanged from this translation baseline.
241
257
 
242
258
  - Version: `3.2.0`
243
259
  - Source: <https://github.com/d3/d3-shape.git>
@@ -286,35 +302,37 @@ Merman selects DOMPurify's Apache-2.0 option for generated sanitizer defaults; t
286
302
 
287
303
  ### Eclipse Layout Kernel (`eclipse-elk`)
288
304
 
289
- The merman-elk-layered crate contains modified Rust source translations of Eclipse ELK layered, Box, Force, Stress, Mr. Tree, Radial, Rectangle Packing, and SPOrE overlap-removal algorithms, including common and core layout utilities, under EPL-2.0.
305
+ The merman-elk-layered crate contains modified Rust source translations of Eclipse ELK layered, Box, Force, Stress, Mr. Tree, Radial, Rectangle Packing, and SPOrE overlap-removal algorithms, including common and core layout utilities. The historical derivation is v0.9.1 at 62d5909f96fad541bc101ad52dabaece6b7eab7e. Supported behavior ports from the v0.12.0 source comparison are documented in crates/merman-elk-layered/MERMAID_12_3_DELTA.md and checked against the published elkjs@0.12.0 behavior oracle. The Java tag is a source comparison point, not a proven unique Java build input of that npm package; elkjs CI checks out Eclipse ELK master. Merman retains its EPL-2.0 selection and preserves the current source license, including its conditional GPL-3.0-or-later secondary-license option.
290
306
 
291
- - Version: `0.9.1`
307
+ - Version: `0.12.0`
292
308
  - Source: <https://github.com/eclipse-elk/elk.git>
293
- - Source ref: `v0.9.1`
294
- - Source commit: `62d5909f96fad541bc101ad52dabaece6b7eab7e`
309
+ - Source ref: `v0.12.0`
310
+ - Source commit: `323312916048544e4e594eab3303cdb0d01e2929`
295
311
  - Source path: `plugins`
296
312
  - Relationship: `modified`, `translated`
297
- - License expression: `EPL-2.0`
313
+ - License expression: `(EPL-2.0 OR GPL-3.0-or-later)`
314
+ - Selected license path: `EPL-2.0`
298
315
  - Artifact scopes: `cli-default`, `cli-release`, `elk-render`, `sdk-full`, `sdk-native-full`, `source-archive`, `typst-publish`, `web-full`, `web-render`
299
316
  - Local evidence: `crates/merman-elk-layered`, `crates/merman-layout-elk`
300
317
  - Legal files:
301
- - [`THIRD_PARTY_LICENSES/eclipse-elk/LICENSE.md`](THIRD_PARTY_LICENSES/eclipse-elk/LICENSE.md) (license, SHA-256 `89591d4578fb1ebd91501312a3d25f021bd865a2e436641c1cf7b1bc7e3c1617`)
318
+ - [`THIRD_PARTY_LICENSES/eclipse-elk/LICENSE.md`](THIRD_PARTY_LICENSES/eclipse-elk/LICENSE.md) (license, SHA-256 `22080908c4e8696d8ea137db9c51b0dd67c19a4440b3be689b9d06d397aa88fd`)
302
319
 
303
320
  ### elkjs (`elkjs`)
304
321
 
305
- Mermaid's ELK adapter behavior is compared against this JavaScript distribution, which is generated from Eclipse ELK sources.
322
+ Mermaid's ELK adapter behavior is compared against the published elkjs@0.12.1 JavaScript distribution. Its source tag and npm publish gitHead identify the elkjs wrapper; the tag's CI checks out Eclipse ELK master and does not prove a unique Java source commit for the npm build. The separate Eclipse ELK v0.12.0 and v0.12.1 source comparisons and historical v0.9.1 port derivation are recorded in crates/merman-elk-layered/MERMAID_12_3_DELTA.md. Merman selects EPL-2.0 from the declared EPL-2.0 OR GPL-3.0-or-later options and preserves the exact license with its conditional secondary-license notice.
306
323
 
307
- - Version: `0.9.3`
324
+ - Version: `0.12.1`
308
325
  - Source: <https://github.com/kieler/elkjs.git>
309
- - Source ref: `npm:elkjs@0.9.3`
310
- - Source commit: `a8304cf79fde75bc2ab1a89d28320f53f8637436`
326
+ - Source ref: `0.12.1`
327
+ - Source commit: `624ae90aa37110033a8af59c5ccbb292708b4317`
311
328
  - Source path: `.`
312
329
  - Relationship: `behavior-reference`
313
- - License expression: `EPL-2.0`
330
+ - License expression: `(EPL-2.0 OR GPL-3.0-or-later)`
331
+ - Selected license path: `EPL-2.0`
314
332
  - Artifact scopes: `cli-default`, `cli-release`, `elk-render`, `playground-reference`, `sdk-full`, `sdk-native-full`, `source-archive`, `typst-publish`, `web-full`, `web-render`
315
333
  - Local evidence: `crates/merman-layout-elk`, `playground`
316
334
  - Legal files:
317
- - [`THIRD_PARTY_LICENSES/elkjs/LICENSE.md`](THIRD_PARTY_LICENSES/elkjs/LICENSE.md) (license, SHA-256 `89591d4578fb1ebd91501312a3d25f021bd865a2e436641c1cf7b1bc7e3c1617`)
335
+ - [`THIRD_PARTY_LICENSES/elkjs/LICENSE.md`](THIRD_PARTY_LICENSES/elkjs/LICENSE.md) (license, SHA-256 `637e81f4a1b6b4079535c499fca05e238cf7605c1ff5b76d60d7da7ce96700c9`)
318
336
 
319
337
  ### fmin (`fmin`)
320
338
 
@@ -401,10 +419,10 @@ Manatee also follows the newer layout-base behavior selected by the FCoSE depend
401
419
 
402
420
  Merman independently implements Mermaid-compatible behavior while translating selected algorithms, generating defaults, copying architecture icon data, and retaining upstream fixtures and snapshots.
403
421
 
404
- - Version: `12.2.0`
422
+ - Version: `12.3.0`
405
423
  - Source: <https://github.com/mermaid-js/mermaid.git>
406
- - Source ref: `mermaid@12.2.0`
407
- - Source commit: `1fb7869866dd619168d840291c9c54b4f129758b`
424
+ - Source ref: `mermaid@12.3.0`
425
+ - Source commit: `2086904e76c692331e34a45d7cc3bc30860d040e`
408
426
  - Source path: `packages/mermaid`
409
427
  - Relationship: `behavior-reference`, `copied`, `fixtures`, `generated`, `modified`, `translated`
410
428
  - License expression: `MIT`
@@ -564,10 +582,10 @@ The renderer privately imports roxmltree 0.21.1 with its official iterative elem
564
582
 
565
583
  Merman's URL sanitization behavior is a source-backed Rust translation of sanitize-url.
566
584
 
567
- - Version: `7.1.1`
585
+ - Version: `7.1.2`
568
586
  - Source: <https://github.com/braintree/sanitize-url.git>
569
- - Source ref: `v7.1.1`
570
- - Source commit: `b1e8d50e4066a9af00fa042176676374747f754b`
587
+ - Source ref: `v7.1.2`
588
+ - Source commit: `206cb8b942b10dad28dd3d31db3bf39e3fcdd7aa`
571
589
  - Source path: `src`
572
590
  - Relationship: `modified`, `translated`
573
591
  - License expression: `MIT`
@@ -20,23 +20,24 @@ class WasmEngine {
20
20
  * @returns {string}
21
21
  */
22
22
  executeSync(request_json, timeout_ms) {
23
- let deferred3_0;
24
- let deferred3_1;
23
+ let deferred4_0;
24
+ let deferred4_1;
25
25
  try {
26
+ const val2 = +(isLikeNone(timeout_ms) ? Number.MAX_SAFE_INTEGER : (timeout_ms) >>> 0);
26
27
  const ptr0 = passStringToWasm0(request_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
27
28
  const len0 = WASM_VECTOR_LEN;
28
- const ret = wasm.wasmengine_executeSync(this.__wbg_ptr, ptr0, len0, isLikeNone(timeout_ms) ? Number.MAX_SAFE_INTEGER : (timeout_ms) >>> 0);
29
- var ptr2 = ret[0];
30
- var len2 = ret[1];
29
+ const ret = wasm.wasmengine_executeSync(this.__wbg_ptr, ptr0, len0, val2);
30
+ var ptr3 = ret[0];
31
+ var len3 = ret[1];
31
32
  if (ret[3]) {
32
- ptr2 = 0; len2 = 0;
33
+ ptr3 = 0; len3 = 0;
33
34
  throw takeFromExternrefTable0(ret[2]);
34
35
  }
35
- deferred3_0 = ptr2;
36
- deferred3_1 = len2;
37
- return getStringFromWasm0(ptr2, len2);
36
+ deferred4_0 = ptr3;
37
+ deferred4_1 = len3;
38
+ return getStringFromWasm0(ptr3, len3);
38
39
  } finally {
39
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
40
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
40
41
  }
41
42
  }
42
43
  /**
@@ -45,23 +46,24 @@ class WasmEngine {
45
46
  * @returns {string}
46
47
  */
47
48
  execute(request_json, timeout_ms) {
48
- let deferred3_0;
49
- let deferred3_1;
49
+ let deferred4_0;
50
+ let deferred4_1;
50
51
  try {
52
+ const val2 = +(isLikeNone(timeout_ms) ? Number.MAX_SAFE_INTEGER : (timeout_ms) >>> 0);
51
53
  const ptr0 = passStringToWasm0(request_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
52
54
  const len0 = WASM_VECTOR_LEN;
53
- const ret = wasm.wasmengine_execute(this.__wbg_ptr, ptr0, len0, isLikeNone(timeout_ms) ? Number.MAX_SAFE_INTEGER : (timeout_ms) >>> 0);
54
- var ptr2 = ret[0];
55
- var len2 = ret[1];
55
+ const ret = wasm.wasmengine_execute(this.__wbg_ptr, ptr0, len0, val2);
56
+ var ptr3 = ret[0];
57
+ var len3 = ret[1];
56
58
  if (ret[3]) {
57
- ptr2 = 0; len2 = 0;
59
+ ptr3 = 0; len3 = 0;
58
60
  throw takeFromExternrefTable0(ret[2]);
59
61
  }
60
- deferred3_0 = ptr2;
61
- deferred3_1 = len2;
62
- return getStringFromWasm0(ptr2, len2);
62
+ deferred4_0 = ptr3;
63
+ deferred4_1 = len3;
64
+ return getStringFromWasm0(ptr3, len3);
63
65
  } finally {
64
- wasm.__wbindgen_free(deferred3_0, deferred3_1, 1);
66
+ wasm.__wbindgen_free(deferred4_0, deferred4_1, 1);
65
67
  }
66
68
  }
67
69
  /**
@@ -93,10 +95,17 @@ class WasmEngine {
93
95
  * @param {string | null} [icon_packs_json]
94
96
  */
95
97
  constructor(options_json, icon_packs_json) {
96
- const ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
97
- const len0 = WASM_VECTOR_LEN;
98
- var ptr1 = isLikeNone(icon_packs_json) ? 0 : passStringToWasm0(icon_packs_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
99
- var len1 = WASM_VECTOR_LEN;
98
+ let ptr0, len0, ptr1, len1;
99
+ try {
100
+ ptr0 = passStringToWasm0(options_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
101
+ len0 = WASM_VECTOR_LEN;
102
+ ptr1 = isLikeNone(icon_packs_json) ? 0 : passStringToWasm0(icon_packs_json, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
103
+ len1 = WASM_VECTOR_LEN;
104
+ } catch (e) {
105
+ if (ptr1) { wasm.__wbindgen_free(ptr1, len1 * 1, 1); }
106
+ if (ptr0) { wasm.__wbindgen_free(ptr0, len0 * 1, 1); }
107
+ throw e;
108
+ }
100
109
  const ret = wasm.wasmengine_new(ptr0, len0, ptr1, len1);
101
110
  if (ret[2]) {
102
111
  throw takeFromExternrefTable0(ret[1]);
@@ -155,35 +164,35 @@ exports.transportIdentityJson = transportIdentityJson;
155
164
  function __wbg_get_imports() {
156
165
  const import0 = {
157
166
  __proto__: null,
158
- __wbg___wbindgen_is_undefined_8865fb403f8fe9d8: function(arg0) {
167
+ __wbg___wbindgen_is_undefined_be5b34249ff1fc15: function(arg0) {
159
168
  const ret = arg0 === undefined;
160
169
  return ret;
161
170
  },
162
- __wbg___wbindgen_throw_41e9ee4f547fc59a: function(arg0, arg1) {
171
+ __wbg___wbindgen_throw_4c88d8bf264fd984: function(arg0, arg1) {
163
172
  throw new Error(getStringFromWasm0(arg0, arg1));
164
173
  },
165
174
  __wbg_now_e7c6795a7f81e10f: function(arg0) {
166
175
  const ret = arg0.now();
167
176
  return ret;
168
177
  },
169
- __wbg_performance_3fcf6e32a7e1ed0a: function(arg0) {
178
+ __wbg_performance_7e4e4494fdc9d07a: function(arg0) {
170
179
  const ret = arg0.performance;
171
180
  return ret;
172
181
  },
173
- __wbg_static_accessor_GLOBAL_266715b9d96ba635: function() {
174
- const ret = typeof global === 'undefined' ? null : global;
182
+ __wbg_static_accessor_GLOBAL_THIS_003ee833af9699fc: function() {
183
+ const ret = typeof globalThis === 'undefined' ? undefined : globalThis;
175
184
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
176
185
  },
177
- __wbg_static_accessor_GLOBAL_THIS_10fb7dc1ae063179: function() {
178
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
186
+ __wbg_static_accessor_GLOBAL_e4293fb22cbe77da: function() {
187
+ const ret = typeof global === 'undefined' ? undefined : global;
179
188
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
180
189
  },
181
- __wbg_static_accessor_SELF_0b583911f537483a: function() {
182
- const ret = typeof self === 'undefined' ? null : self;
190
+ __wbg_static_accessor_SELF_53bb20457401453d: function() {
191
+ const ret = typeof self === 'undefined' ? undefined : self;
183
192
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
184
193
  },
185
- __wbg_static_accessor_WINDOW_d7f903d1508cbdc4: function() {
186
- const ret = typeof window === 'undefined' ? null : window;
194
+ __wbg_static_accessor_WINDOW_b5e0810bfecb7feb: function() {
195
+ const ret = typeof window === 'undefined' ? undefined : window;
187
196
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
188
197
  },
189
198
  __wbindgen_generic_0000000000000001: function(arg0, arg1) {
@@ -193,12 +202,11 @@ function __wbg_get_imports() {
193
202
  },
194
203
  __wbindgen_init_externref_table: function() {
195
204
  const table = wasm.__wbindgen_externrefs;
196
- const offset = table.grow(4);
197
205
  table.set(0, undefined);
198
- table.set(offset + 0, undefined);
199
- table.set(offset + 1, null);
200
- table.set(offset + 2, true);
201
- table.set(offset + 3, false);
206
+ table.set(1024, undefined);
207
+ table.set(1025, null);
208
+ table.set(1026, true);
209
+ table.set(1027, false);
202
210
  },
203
211
  };
204
212
  return {
@@ -218,7 +226,8 @@ function addToExternrefTable0(obj) {
218
226
  }
219
227
 
220
228
  function getStringFromWasm0(ptr, len) {
221
- return decodeText(ptr >>> 0, len);
229
+ ptr = ptr >>> 0;
230
+ return decodeText(getUint8ArrayMemory0().subarray(ptr, ptr + len));
222
231
  }
223
232
 
224
233
  let cachedUint8ArrayMemory0 = null;
@@ -276,10 +285,10 @@ function takeFromExternrefTable0(idx) {
276
285
  return value;
277
286
  }
278
287
 
279
- let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
288
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true });
280
289
  cachedTextDecoder.decode();
281
- function decodeText(ptr, len) {
282
- return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
290
+ function decodeText(bytes) {
291
+ return cachedTextDecoder.decode(bytes);
283
292
  }
284
293
 
285
294
  const cachedTextEncoder = new TextEncoder();
Binary file
package/dist/engine.mjs CHANGED
@@ -12,6 +12,7 @@ import {
12
12
  parseRuntimeCatalogJsonText,
13
13
  parseTransportJsonText,
14
14
  sameJsonValue,
15
+ snapshotTransportJsonValue,
15
16
  } from "./errors.mjs";
16
17
  import {
17
18
  BINDING_OPTION_GROUP_SPECS,
@@ -149,11 +150,16 @@ function encodeIconPacks(packs) {
149
150
 
150
151
  export function normalizeBindingOptions(value = {}) {
151
152
  if (!isPlainObject(value)) throw new TypeError("bindingOptions must be a plain object.");
152
- const normalized = cloneBoundedJsonValue(value, "bindingOptions");
153
+ const normalized = snapshotTransportJsonValue(
154
+ value,
155
+ "bindingOptions",
156
+ NODE_TRANSPORT_LIMITS.binding_options,
157
+ );
153
158
  normalized.version ??= BINDING_OPTIONS_SCHEMA_VERSION;
154
159
  if (normalized.version !== BINDING_OPTIONS_SCHEMA_VERSION) {
160
+ const version = typeof normalized.version === "object" ? "non-scalar" : normalized.version;
155
161
  throw new RangeError(
156
- `Unsupported binding options schema version \`${normalized.version}\`; expected ${BINDING_OPTIONS_SCHEMA_VERSION}.`,
162
+ `Unsupported binding options schema version \`${version}\`; expected ${BINDING_OPTIONS_SCHEMA_VERSION}.`,
157
163
  );
158
164
  }
159
165
  normalized.runtime_policy ??= "deterministic";
@@ -162,13 +168,16 @@ export function normalizeBindingOptions(value = {}) {
162
168
  "bindingOptions.runtime_policy must be `deterministic` for @mermanjs/node.",
163
169
  );
164
170
  }
165
- normalized.resources ??= {};
171
+ normalized.resources ??= Object.create(null);
166
172
  if (!isPlainObject(normalized.resources)) {
167
173
  throw new TypeError("bindingOptions.resources must be a plain object.");
168
174
  }
169
175
  normalized.resources.profile ??= "interactive";
170
176
  if (!RESOURCE_PROFILES.has(normalized.resources.profile)) {
171
- throw new RangeError(`Unknown resource profile \`${normalized.resources.profile}\`.`);
177
+ const profile = typeof normalized.resources.profile === "object"
178
+ ? "non-scalar"
179
+ : normalized.resources.profile;
180
+ throw new RangeError(`Unknown resource profile \`${profile}\`.`);
172
181
  }
173
182
  if (normalized.environment !== undefined) {
174
183
  if (!isPlainObject(normalized.environment)) {
@@ -1242,139 +1251,6 @@ function sortedUniqueFieldIdentifiers(value, field) {
1242
1251
  return value;
1243
1252
  }
1244
1253
 
1245
- function cloneBoundedJsonValue(root, label) {
1246
- const limits = NODE_TRANSPORT_LIMITS.binding_options;
1247
- const active = new WeakSet();
1248
- const clone = jsonContainerClone(root, label);
1249
- const stack = [{ depth: 1, source: root, target: clone, exiting: false }];
1250
- let members = 0;
1251
- let tokens = 1;
1252
-
1253
- while (stack.length > 0) {
1254
- const frame = stack.pop();
1255
- if (frame.exiting) {
1256
- active.delete(frame.source);
1257
- continue;
1258
- }
1259
- if (active.has(frame.source)) {
1260
- throw new TypeError(`${label} must not contain cyclic references.`);
1261
- }
1262
- if (frame.depth > limits.max_depth) {
1263
- throw new RangeError(`${label} exceeds the structural depth limit ${limits.max_depth}.`);
1264
- }
1265
- active.add(frame.source);
1266
- stack.push({ ...frame, exiting: true });
1267
-
1268
- const entries = jsonContainerEntries(
1269
- frame.source,
1270
- label,
1271
- limits.max_members - members,
1272
- limits.max_members,
1273
- );
1274
- members += entries.length;
1275
- if (members > limits.max_members) {
1276
- throw new RangeError(`${label} exceeds the member-work limit ${limits.max_members}.`);
1277
- }
1278
-
1279
- for (let index = entries.length - 1; index >= 0; index -= 1) {
1280
- const [key, child] = entries[index];
1281
- assertUtf8Field(key, `${label} object key`, limits.max_string_utf8_bytes);
1282
- tokens += 1;
1283
- if (tokens > limits.max_tokens) {
1284
- throw new RangeError(`${label} exceeds the token-work limit ${limits.max_tokens}.`);
1285
- }
1286
-
1287
- if (child === null || typeof child === "boolean") {
1288
- defineJsonValue(frame.target, key, child);
1289
- } else if (typeof child === "string") {
1290
- assertUtf8Field(child, `${label}.${key}`, limits.max_string_utf8_bytes);
1291
- defineJsonValue(frame.target, key, child);
1292
- } else if (typeof child === "number") {
1293
- if (!Number.isFinite(child)) {
1294
- throw new TypeError(`${label}.${key} must be a finite JSON number.`);
1295
- }
1296
- defineJsonValue(frame.target, key, child);
1297
- } else if (typeof child === "object") {
1298
- const childClone = jsonContainerClone(child, `${label}.${key}`);
1299
- defineJsonValue(frame.target, key, childClone);
1300
- stack.push({
1301
- depth: frame.depth + 1,
1302
- source: child,
1303
- target: childClone,
1304
- exiting: false,
1305
- });
1306
- } else {
1307
- throw new TypeError(`${label}.${key} is not a JSON wire value.`);
1308
- }
1309
- }
1310
- }
1311
- return clone;
1312
- }
1313
-
1314
- function jsonContainerClone(value, label) {
1315
- if (Array.isArray(value)) return [];
1316
- if (!isPlainObject(value)) {
1317
- throw new TypeError(`${label} must contain only arrays and plain objects.`);
1318
- }
1319
- return Object.getPrototypeOf(value) === null ? Object.create(null) : {};
1320
- }
1321
-
1322
- function jsonContainerEntries(value, label, remainingMembers, maxMembers) {
1323
- if (Array.isArray(value)) {
1324
- if (value.length > remainingMembers) {
1325
- throw new RangeError(`${label} exceeds the member-work limit ${maxMembers}.`);
1326
- }
1327
- const keys = Reflect.ownKeys(value);
1328
- if (keys.some((key) => typeof key === "symbol")) {
1329
- throw new TypeError(`${label} must not contain symbol keys.`);
1330
- }
1331
- for (let index = 0; index < value.length; index += 1) {
1332
- if (!Object.hasOwn(value, index)) {
1333
- throw new TypeError(`${label} arrays must not contain holes.`);
1334
- }
1335
- }
1336
- if (keys.length !== value.length + 1) {
1337
- throw new TypeError(`${label} arrays must not contain custom properties.`);
1338
- }
1339
- const entries = new Array(value.length);
1340
- for (let index = 0; index < value.length; index += 1) {
1341
- const key = String(index);
1342
- const descriptor = Object.getOwnPropertyDescriptor(value, key);
1343
- if (!descriptor?.enumerable || !("value" in descriptor)) {
1344
- throw new TypeError(`${label}.${key} must be an enumerable data property.`);
1345
- }
1346
- entries[index] = [key, descriptor.value];
1347
- }
1348
- return entries;
1349
- }
1350
-
1351
- const entries = [];
1352
- for (const key of Reflect.ownKeys(value)) {
1353
- if (typeof key === "symbol") {
1354
- throw new TypeError(`${label} must not contain symbol keys.`);
1355
- }
1356
- const descriptor = Object.getOwnPropertyDescriptor(value, key);
1357
- if (!descriptor?.enumerable || !("value" in descriptor)) {
1358
- throw new TypeError(`${label}.${key} must be an enumerable data property.`);
1359
- }
1360
- entries.push([key, descriptor.value]);
1361
- }
1362
- return entries;
1363
- }
1364
-
1365
- function defineJsonValue(target, key, value) {
1366
- if (Array.isArray(target)) {
1367
- target[Number(key)] = value;
1368
- return;
1369
- }
1370
- Object.defineProperty(target, key, {
1371
- configurable: true,
1372
- enumerable: true,
1373
- value,
1374
- writable: true,
1375
- });
1376
- }
1377
-
1378
1254
  function isPlainObject(value) {
1379
1255
  if (!value || typeof value !== "object" || Array.isArray(value)) return false;
1380
1256
  const prototype = Object.getPrototypeOf(value);