@mermanjs/node-wasm 0.11.0 → 0.12.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/CHANGELOG.md CHANGED
@@ -2,6 +2,30 @@
2
2
 
3
3
  All notable changes to the `@mermanjs/node` package group will be documented in this file.
4
4
 
5
+ ## [0.12.0] - 2026-12-04
6
+
7
+ ### Breaking changes
8
+
9
+ - Upgrade the loader and its native addon or Node-WASM artifact together for Node transport API `3` and Binding Options JSON schema `4`. Theme v2 uses `export-theme-preset` and `resolve-theme` for authoring (21 built-in presets, 31 Light/Dark appearances, `overrides[].data`, unified contrast grading, auto-fix writeback, and polarity notices; TypeScript types use `ThemeDocument` and `ResolvedTheme`) and reports `theme_outcome` in SVG operation metadata. [Theme v2 guide](../../docs/rendering/custom-diagram-themes.md), [Theme v1 to v2 migration](../../docs/migrations/theme-v1-to-v2.md), [Binding options](../../docs/bindings/OPTIONS_JSON.md#diagram-theme)
10
+
11
+ ### Added
12
+
13
+ - Support explicit async engine scope disposal (`Symbol.asyncDispose`) alongside synchronous `dispose()` in `@mermanjs/node`, and accept typed `options` objects alongside raw `optionsJson` on `MermanOperationRequest`. [#429](https://github.com/Latias94/merman/pull/429), [#540](https://github.com/Latias94/merman/pull/540)
14
+ - Export versioned `DrawList v1` JSON via `drawListJson()` and `drawListJsonSync()` (with optional `draw_list.expand_markers`) for currently supported Flowchart, Sequence, Class, State, and ER diagrams (unsupported families and constructs fail closed with an explicit error; coverage will expand in future releases). [SVG output pipeline](../../docs/rendering/SVG_OUTPUT_PIPELINE.md#native-drawlist-v1), [#484](https://github.com/Latias94/merman/pull/484), [#539](https://github.com/Latias94/merman/pull/539), [#540](https://github.com/Latias94/merman/pull/540)
15
+ - Support `svg.native_math_fallback` (`"strict"`, `"source-text"`, or `"drop"`) with `native_math_fallback` operation metadata, and `svg.outlines` on native builds compiled with `outlined-svg`. [#533](https://github.com/Latias94/merman/pull/533), [#534](https://github.com/Latias94/merman/pull/534)
16
+ - Bundle the experimental pure-Rust **Shoal** layout engine (`layout-shoal`) out of the box in both `@mermanjs/node` and `@mermanjs/node-wasm` (selected explicitly via Mermaid frontmatter `layout: shoal` or Options JSON `site_config.layout`), target Mermaid `12.4.1` semantics (including containment-cycle recovery), and retain opt-in local source builds for Mermaid `grid` and `layered` layouts. [Try Shoal](../../docs/FEATURES.md#try-the-experimental-shoal-layout), [Mermaid 12.4 migration](../../docs/migrations/mermaid-12-4.md), [#385](https://github.com/Latias94/merman/pull/385), [#461](https://github.com/Latias94/merman/pull/461), [#544](https://github.com/Latias94/merman/pull/544)
17
+
18
+ ### Performance
19
+
20
+ - Use `mimalloc` for Windows x64 N-API builds, bound direct SVG source admission before payload allocation, add a direct N-API string fast path for `drawListJson()` and `drawListJsonSync()` alongside faster JS bounded JSON scanning, and share zero-override configuration/theme sections alongside faster Dagre, ELK, Shoal, and Swimlane layout solvers. [#406](https://github.com/Latias94/merman/pull/406), [#445](https://github.com/Latias94/merman/pull/445), [#456](https://github.com/Latias94/merman/pull/456), [#541](https://github.com/Latias94/merman/pull/541)
21
+
22
+ ### Changed and fixed
23
+
24
+ - Preserve JSON wire limit traversal order, string field-limit diagnostics, byte-ceiling precedence on raw JSON documents, and explicit diagram ID admission; reject invalid async SVG options as promise rejections; fix package exports, TypeScript contracts, and Node-WASM lifecycle handling. [#394](https://github.com/Latias94/merman/pull/394), [#429](https://github.com/Latias94/merman/pull/429), [#469](https://github.com/Latias94/merman/pull/469), [#493](https://github.com/Latias94/merman/pull/493)
25
+ - Harden N-API and Node SDK security boundaries with bounded JS string admission, icon-pack envelope bounds, streaming icon-registry preflight, `AbortSignal` lifecycle validation, and workspace-wide parser, layout, and renderer DoS/complexity limits. [#522](https://github.com/Latias94/merman/pull/522), [#525](https://github.com/Latias94/merman/pull/525), [#528](https://github.com/Latias94/merman/pull/528), [#531](https://github.com/Latias94/merman/pull/531), [#532](https://github.com/Latias94/merman/pull/532)
26
+ - Default `svg.pipeline: "resvg-safe"` to static palette generation (omitting unused Flowchart/Agentflow/Swimlane container palette CSS rules; visually unchanged, smaller SVG snapshots). [#471](https://github.com/Latias94/merman/pull/471)
27
+ - Include Mermaid `12.4.1` ELK arrowhead spreading, HTML label overflow across graph backends, Flowchart inline class/shape-data and concatenated label fixes, Unicode LB30 East Asian line breaking, and geometry and contrast fixes across Flowchart, Sequence, Gantt, GitGraph, Journey, Mindmap, Chart, and Structured diagrams. [#348](https://github.com/Latias94/merman/pull/348), [#410](https://github.com/Latias94/merman/pull/410), [#459](https://github.com/Latias94/merman/pull/459), [#460](https://github.com/Latias94/merman/pull/460), [#480](https://github.com/Latias94/merman/pull/480), [#533](https://github.com/Latias94/merman/pull/533)
28
+
5
29
  ## [0.11.0] - 2026-11-21
6
30
 
7
31
  ### Upgrading
@@ -83,7 +107,7 @@ Changes below are relative to `0.9.3`. Install the exact prerelease with `npm in
83
107
 
84
108
  - Upgrade the loader and selected native or WASM transport packages together. Replace `metadataJson("presentation-catalog")` with `metadataJson("theme-catalog")`.
85
109
  - Update saved Options JSON from schema `2` to `3` in both transports: replace `presentation` styling inputs with top-level `theme: {preset: ...}` or `theme: {spec: ...}`, and use `raster.matte` and `pdf.page_paint` for export backgrounds. Removed presentation-profile and host-owned CSS/security fields are rejected.
86
- - For `edge-geometry-json`, replace operation-local `max_svg_bytes` with `max_geometry_json_bytes` and remove SVG-element/backend overrides. The geometry payload remains schema `1`. See the [migration guide](../../docs/migrations/edge-geometry-resources.md).
110
+ - For `edge-geometry-json`, replace operation-local `max_svg_bytes` with `max_geometry_json_bytes` and remove SVG-element/backend overrides. The geometry payload remains schema `1`. See the [migration guide](../../docs/migrations/render-reuse-host-integration.md#migrate-edge-geometry-budgets).
87
111
  - Formulas are rejected under `constrained` in both transports even when math is installed. Handle that rejection, or select `interactive` or an appropriate trusted policy for permitted workloads with host execution and memory limits.
88
112
 
89
113
  ### Added
package/README.md CHANGED
@@ -1,17 +1,19 @@
1
1
  # @mermanjs/node-wasm
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/%40mermanjs%2Fnode-wasm.svg)](https://www.npmjs.com/package/@mermanjs/node-wasm) [![Node.js >= 22](https://img.shields.io/badge/node-%3E%3D22-59636e.svg)](https://nodejs.org/) [![License](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-59636e.svg)](https://github.com/Latias94/merman/blob/main/LICENSE-MIT)
4
+
3
5
  Explicit Node-targeted WebAssembly rendering for Node.js 22+ and static-site build pipelines.
4
6
  This is a separate opt-in package; `@mermanjs/node` remains the native N-API package and never
5
7
  silently falls back to browser or Node WASM.
6
8
 
7
- The package remains experimental. Version `0.11.0` targets Mermaid `12.3.0` and uses Node transport API `2`, Options JSON schema `3`, and theme execution evidence schema `2`. Keep the facade, generated glue, and WASM at the same exact version and source revision. [Verified versions and installation](https://github.com/Latias94/merman/blob/main/docs/release/PREBUILT_PRODUCTS.md#published-versions) · [0.11.0 migration](https://github.com/Latias94/merman/blob/main/docs/migrations/render-reuse-host-integration.md#refresh-wrappers-and-runtime-artifacts)
8
-
9
- Version `0.10.0-alpha.1` retains Mermaid `12.2.0` and theme execution evidence schema `1`; Node binding API `1` and Options JSON schema `3` are unchanged. Upgrade all package assets together and update evidence consumers for the [render-evidence changes](https://github.com/Latias94/merman/blob/main/docs/release/UNRELEASED_CONTRACT_VERSIONS.md#source-appearance-and-render-evidence-follow-up).
9
+ The package remains experimental. `0.12.0` targets Mermaid `12.4.1`, bundles `layout-shoal` out of the box, and uses Node transport API `3` and Options JSON schema `4`. Keep the facade, generated glue, and WASM at the same exact version and source revision. [Verified versions and installation](https://github.com/Latias94/merman/blob/main/docs/release/PREBUILT_PRODUCTS.md#published-versions) · [0.11.0 to 0.12.0 upgrade guide](https://github.com/Latias94/merman/blob/main/docs/release/V0110_TO_V0120_UPGRADE_GUIDE.md)
10
10
 
11
11
  ## Quick start
12
12
 
13
+ The `0.12.0` package bundles the Node-targeted WASM artifact for transport API `3`.
14
+
13
15
  ```sh
14
- npm install --save-exact @mermanjs/node-wasm@0.11.0
16
+ npm install --save-exact @mermanjs/node-wasm@0.12.0
15
17
  ```
16
18
 
17
19
  ```js
@@ -31,6 +33,8 @@ The package embeds a Node-targeted wasm-bindgen artifact and does not depend on
31
33
  It is intended for Node-only server-side rendering and static generation. The WASM transport is
32
34
  single-threaded, so an `AbortSignal` cannot interrupt an operation after it enters WASM;
33
35
  operation deadlines remain available through `timeoutMs`.
36
+ In JavaScript or TypeScript with explicit resource management,
37
+ `await using engine = await createNodeEngine()` disposes the engine when its scope exits.
34
38
 
35
39
  `renderSvg()` and `renderSvgSync()` use the `parity` pipeline by default. This preserves the
36
40
  Mermaid-compatible SVG structure for trusted input and parity-sensitive consumers. For a resvg/usvg
@@ -47,14 +51,16 @@ illustrations to omit unused generated palette rules. `readable` is a text overl
47
51
  consumers that ignore HTML labels; browsers can display both copies and show overlapping text.
48
52
  Use `parity` for browser display, with a host-owned DOM-admission policy when embedding SVG into
49
53
  HTML. Pipeline selection alone does not establish browser DOM safety. The `resvg-safe` pipeline
50
- does not provide browser `Document` or owner-document admission APIs; use `@mermanjs/web*` for
51
- browser DOM mounting.
54
+ defaults to static palette generation and does not provide browser `Document` or owner-document
55
+ admission APIs; use `@mermanjs/web*` for browser DOM mounting.
52
56
 
53
57
  The native package is the recommended choice when a supported platform binary is available. Use
54
58
  this package when a deployment target cannot load the native package or when a single portable
55
59
  Node artifact is more useful than native startup and throughput.
56
60
 
57
- The package includes math, Cytoscape and ELK layouts, matching the native SVG recipe.
61
+ The package includes math, Dagre, Cytoscape, ELK, and experimental Shoal layouts (select Shoal
62
+ explicitly with `layout: shoal` or `site_config.layout`), plus versioned `DrawList v1` JSON
63
+ (`drawListJson()` and `drawListJsonSync()`), matching the native SVG recipe.
58
64
  `engine.renderSvg('flowchart LR\nA["$$x^2$$"]')` renders outlined formula geometry and the runtime
59
65
  catalog advertises `math`. The default `interactive` resource profile admits formulas; an
60
66
  explicitly `constrained` profile rejects them even when math is compiled. For untrusted input,
@@ -63,45 +69,25 @@ Node.js 22.0.0 is the minimum runtime.
63
69
 
64
70
  ## Compiled themes
65
71
 
66
- The catalog groups 11 designs with 14 concrete presets, including `paper-cut`, `carbon-copy`, and
67
- `pop-art`. Editor, Gruvbox, and Ayu provide both Light and Dark; other designs declare their own modes.
68
-
69
- Select a preset through the top-level `theme` group in Options JSON schema `3`. Discover preset
70
- IDs through the initialized engine's theme catalog:
72
+ Theme v2 is available in builds from the current source tree. `engine.themeCatalog()` returns the
73
+ same schema 2 catalog as the native package, with editable presets, appearances, swatches, and
74
+ native capabilities by diagram family. Use a preset ID, a v2 theme document, or a selector in the
75
+ Options JSON `theme` field. Use `theme: "none"` to clear a constructor selection for a request.
71
76
 
72
77
  ```js
73
- const catalog = JSON.parse(engine.metadataJson("theme-catalog"));
74
- const themedSvg = await engine.renderSvg("flowchart LR\nA --> B", {
75
- optionsJson: JSON.stringify({ version: 3, theme: { preset: "editor", appearance: "dark" } }),
78
+ const document = await engine.exportThemePreset("studio");
79
+ const preview = await engine.resolveTheme(document, { appearance: "dark" });
80
+ if (!preview.ok) throw new Error(preview.message);
81
+ const svg = await engine.renderSvg("flowchart LR\nA --> B", {
82
+ optionsJson: JSON.stringify({ theme: { document, appearance: "dark" } }),
76
83
  });
77
84
  ```
78
85
 
79
- The catalog groups one design's `supported_appearances`, `default_appearance`, and appearance-specific
80
- discovery details. `available` means that every declared appearance can compile under the current
81
- resource policy. All built-in presets remain `alpha` with empty appearance-specific `qualified_cells`; availability and unknown
82
- profile/admission IDs never establish portable output. Flowchart glow and shadow effects support
83
- documented shapes in Classic and Neo; other families retain their own look and output restrictions.
84
- SVG fonts resolve on the viewing host; exported recipes
85
- do not embed them.
86
-
87
- `engine.exportThemePreset("editor")` returns a complete editable V1 recipe with
88
- `design.appearances` and `design.default_appearance`. Serialize it with `JSON.stringify(recipe, null, 2)`,
89
- save and edit the JSON, then reload it with `JSON.parse(...)`, retaining `schema_version`, `kind`,
90
- and the complete `design`. Pass that recipe with a concrete appearance
91
- through `theme: { recipe, appearance: "dark" }`; omitted appearance uses its declared default.
92
- `engine.materializeTheme({ schema_version: 1, action: "inspect", recipe })` validates all modes,
93
- while `action: "materialize"` with an optional `appearance` returns a concrete specification.
94
- Keep the authored recipe when saving or sharing a theme. Resolve Follow-app/editor in the host.
95
-
96
- Both transports share the same async authoring helpers, generic `executeOperation()` and synchronous
97
- `executeOperationSync()` routes. The original `materialize-theme-json`,
98
- `describe-theme-support-json`, and `export-theme-preset-json` operation IDs remain unchanged.
99
- See the [native package examples](https://github.com/Latias94/merman/blob/main/platforms/node/packages/node/README.md#compiled-themes)
100
- and the
101
- [theme guide](https://github.com/Latias94/merman/blob/main/docs/rendering/custom-diagram-themes.md)
102
- for authoring and portability, and the
103
- [current Node changelog](https://github.com/Latias94/merman/blob/main/platforms/node/CHANGELOG.md)
104
- for upgrade actions.
86
+ `resolveTheme()` accepts raw JSON text for document-relative errors. Its optional `auto_fix_contrast`
87
+ flag adjusts foreground colors in the resolved preview. SVG callers can read `theme_outcome` from
88
+ the `metadata_json` returned by `executeOperation()` or `executeOperationSync()`. Both transports
89
+ use the same generic `export-theme-preset` and `resolve-theme` operations.
90
+ [Native package examples](https://github.com/Latias94/merman/blob/main/platforms/node/packages/node/README.md#compiled-themes)
105
91
 
106
92
  ## Loaded icon packs
107
93
 
@@ -0,0 +1,13 @@
1
+ Copyright 2010-2021 Mike Bostock
2
+
3
+ Permission to use, copy, modify, and/or distribute this software for any purpose
4
+ with or without fee is hereby granted, provided that the above copyright notice
5
+ and this permission notice appear in all copies.
6
+
7
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
9
+ FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
11
+ OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
12
+ TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
13
+ THIS SOFTWARE.
@@ -0,0 +1,27 @@
1
+ Copyright 2015, Mike Bostock
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification,
5
+ are permitted provided that the following conditions are met:
6
+
7
+ * Redistributions of source code must retain the above copyright notice, this
8
+ list of conditions and the following disclaimer.
9
+
10
+ * Redistributions in binary form must reproduce the above copyright notice,
11
+ this list of conditions and the following disclaimer in the documentation
12
+ and/or other materials provided with the distribution.
13
+
14
+ * Neither the name of the author nor the names of contributors may be used to
15
+ endorse or promote products derived from this software without specific prior
16
+ written permission.
17
+
18
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
22
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,116 @@
1
+ CC0 1.0 Universal
2
+
3
+ Statement of Purpose
4
+
5
+ The laws of most jurisdictions throughout the world automatically confer
6
+ exclusive Copyright and Related Rights (defined below) upon the creator and
7
+ subsequent owner(s) (each and all, an "owner") of an original work of
8
+ authorship and/or a database (each, a "Work").
9
+
10
+ Certain owners wish to permanently relinquish those rights to a Work for the
11
+ purpose of contributing to a commons of creative, cultural and scientific
12
+ works ("Commons") that the public can reliably and without fear of later
13
+ claims of infringement build upon, modify, incorporate in other works, reuse
14
+ and redistribute as freely as possible in any form whatsoever and for any
15
+ purposes, including without limitation commercial purposes. These owners may
16
+ contribute to the Commons to promote the ideal of a free culture and the
17
+ further production of creative, cultural and scientific works, or to gain
18
+ reputation or greater distribution for their Work in part through the use and
19
+ efforts of others.
20
+
21
+ For these and/or other purposes and motivations, and without any expectation
22
+ of additional consideration or compensation, the person associating CC0 with a
23
+ Work (the "Affirmer"), to the extent that he or she is an owner of Copyright
24
+ and Related Rights in the Work, voluntarily elects to apply CC0 to the Work
25
+ and publicly distribute the Work under its terms, with knowledge of his or her
26
+ Copyright and Related Rights in the Work and the meaning and intended legal
27
+ effect of CC0 on those rights.
28
+
29
+ 1. Copyright and Related Rights. A Work made available under CC0 may be
30
+ protected by copyright and related or neighboring rights ("Copyright and
31
+ Related Rights"). Copyright and Related Rights include, but are not limited
32
+ to, the following:
33
+
34
+ i. the right to reproduce, adapt, distribute, perform, display, communicate,
35
+ and translate a Work;
36
+
37
+ ii. moral rights retained by the original author(s) and/or performer(s);
38
+
39
+ iii. publicity and privacy rights pertaining to a person's image or likeness
40
+ depicted in a Work;
41
+
42
+ iv. rights protecting against unfair competition in regards to a Work,
43
+ subject to the limitations in paragraph 4(a), below;
44
+
45
+ v. rights protecting the extraction, dissemination, use and reuse of data in
46
+ a Work;
47
+
48
+ vi. database rights (such as those arising under Directive 96/9/EC of the
49
+ European Parliament and of the Council of 11 March 1996 on the legal
50
+ protection of databases, and under any national implementation thereof,
51
+ including any amended or successor version of such directive); and
52
+
53
+ vii. other similar, equivalent or corresponding rights throughout the world
54
+ based on applicable law or treaty, and any national implementations thereof.
55
+
56
+ 2. Waiver. To the greatest extent permitted by, but not in contravention of,
57
+ applicable law, Affirmer hereby overtly, fully, permanently, irrevocably and
58
+ unconditionally waives, abandons, and surrenders all of Affirmer's Copyright
59
+ and Related Rights and associated claims and causes of action, whether now
60
+ known or unknown (including existing as well as future claims and causes of
61
+ action), in the Work (i) in all territories worldwide, (ii) for the maximum
62
+ duration provided by applicable law or treaty (including future time
63
+ extensions), (iii) in any current or future medium and for any number of
64
+ copies, and (iv) for any purpose whatsoever, including without limitation
65
+ commercial, advertising or promotional purposes (the "Waiver"). Affirmer makes
66
+ the Waiver for the benefit of each member of the public at large and to the
67
+ detriment of Affirmer's heirs and successors, fully intending that such Waiver
68
+ shall not be subject to revocation, rescission, cancellation, termination, or
69
+ any other legal or equitable action to disrupt the quiet enjoyment of the Work
70
+ by the public as contemplated by Affirmer's express Statement of Purpose.
71
+
72
+ 3. Public License Fallback. Should any part of the Waiver for any reason be
73
+ judged legally invalid or ineffective under applicable law, then the Waiver
74
+ shall be preserved to the maximum extent permitted taking into account
75
+ Affirmer's express Statement of Purpose. In addition, to the extent the Waiver
76
+ is so judged Affirmer hereby grants to each affected person a royalty-free,
77
+ non transferable, non sublicensable, non exclusive, irrevocable and
78
+ unconditional license to exercise Affirmer's Copyright and Related Rights in
79
+ the Work (i) in all territories worldwide, (ii) for the maximum duration
80
+ provided by applicable law or treaty (including future time extensions), (iii)
81
+ in any current or future medium and for any number of copies, and (iv) for any
82
+ purpose whatsoever, including without limitation commercial, advertising or
83
+ promotional purposes (the "License"). The License shall be deemed effective as
84
+ of the date CC0 was applied by Affirmer to the Work. Should any part of the
85
+ License for any reason be judged legally invalid or ineffective under
86
+ applicable law, such partial invalidity or ineffectiveness shall not
87
+ invalidate the remainder of the License, and in such case Affirmer hereby
88
+ affirms that he or she will not (i) exercise any of his or her remaining
89
+ Copyright and Related Rights in the Work or (ii) assert any associated claims
90
+ and causes of action with respect to the Work, in either case contrary to
91
+ Affirmer's express Statement of Purpose.
92
+
93
+ 4. Limitations and Disclaimers.
94
+
95
+ a. No trademark or patent rights held by Affirmer are waived, abandoned,
96
+ surrendered, licensed or otherwise affected by this document.
97
+
98
+ b. Affirmer offers the Work as-is and makes no representations or warranties
99
+ of any kind concerning the Work, express, implied, statutory or otherwise,
100
+ including without limitation warranties of title, merchantability, fitness
101
+ for a particular purpose, non infringement, or the absence of latent or
102
+ other defects, accuracy, or the present or absence of errors, whether or not
103
+ discoverable, all to the greatest extent permissible under applicable law.
104
+
105
+ c. Affirmer disclaims responsibility for clearing rights of other persons
106
+ that may apply to the Work or any use thereof, including without limitation
107
+ any person's Copyright and Related Rights in the Work. Further, Affirmer
108
+ disclaims responsibility for obtaining any necessary consents, permissions
109
+ or other rights required for any use of the Work.
110
+
111
+ d. Affirmer understands and acknowledges that Creative Commons is not a
112
+ party to this document and has no duty or obligation with respect to this
113
+ CC0 or use of the Work.
114
+
115
+ For more information, please see
116
+ http://creativecommons.org/publicdomain/zero/1.0/
@@ -1,6 +1,6 @@
1
- The MIT License (MIT)
1
+ MIT License
2
2
 
3
- Copyright (c) 2018 Yevhenii Reizner
3
+ Copyright (c) 2024 Laurenz Stampfl
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
@@ -0,0 +1,24 @@
1
+ Copyright (c) 2011-2013, Pascal Getreuer
2
+ All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without
5
+ modification, are permitted provided that the following conditions are
6
+ met:
7
+ * Redistributions of source code must retain the above copyright
8
+ notice, this list of conditions and the following disclaimer.
9
+ * Redistributions in binary form must reproduce the above
10
+ copyright notice, this list of conditions and the following
11
+ disclaimer in the documentation and/or other materials provided
12
+ with the distribution.
13
+
14
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
15
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
16
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
17
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
18
+ HOLDER BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
22
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
23
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.