@mermanjs/node-wasm 0.9.3 → 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.
- package/CHANGELOG.md +48 -6
- package/README.md +50 -8
- package/THIRD_PARTY_LICENSES/d3-path/LICENSE +13 -0
- package/THIRD_PARTY_LICENSES/eclipse-elk/LICENSE.md +1 -2
- package/THIRD_PARTY_LICENSES/elkjs/LICENSE.md +1 -2
- package/THIRD_PARTY_LICENSES/roxmltree-dom/LICENSE-APACHE +201 -0
- package/THIRD_PARTY_LICENSES/roxmltree-dom/LICENSE-ISC +13 -0
- package/THIRD_PARTY_LICENSES/roxmltree-dom/LICENSE-MIT +21 -0
- package/THIRD_PARTY_LICENSES/rust-cargo-dependencies.json +112 -67
- package/THIRD_PARTY_NOTICES.md +83 -47
- package/artifact/merman_node.cjs +53 -44
- package/artifact/merman_node_bg.wasm +0 -0
- package/dist/engine.mjs +50 -161
- package/dist/errors.mjs +96 -39
- package/dist/generated/binding-contract.mjs +204 -12
- package/dist/generated/capability-surface.mjs +61 -15
- package/dist/generated/node-wire-contract.json +10 -6
- package/dist/index.d.ts +5 -2
- package/dist/native-loader.mjs +7 -5
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,15 +2,57 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to the `@mermanjs/node` package group will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.10.0-alpha.2] - 2026-11-06
|
|
6
|
+
|
|
7
|
+
Changes since `0.10.0-alpha.1`. See the [host installation guide](../../docs/release/PREBUILT_PRODUCTS.md) for independently verified package availability.
|
|
8
|
+
|
|
9
|
+
### Breaking changes
|
|
10
|
+
|
|
11
|
+
- Upgrade the loader and selected native or Node-targeted WASM package together to the same exact version. Custom builds must pair their JavaScript facade and native/WASM artifact from the same source revision; browser `@mermanjs/web` packages are not Node transport substitutes.
|
|
12
|
+
- Custom render-metadata decoders must handle `theme_execution_evidence.version: 2` and its required nullable `materialized_theme`, which records the Mermaid palette actually used by the render. Keep unknown evidence versions opaque and inspect target admission separately from successful theme application. Options JSON remains schema `3`; see the [contract migration](../../docs/release/UNRELEASED_CONTRACT_VERSIONS.md#source-appearance-and-render-evidence-follow-up). [#277](https://github.com/Latias94/merman/pull/277)
|
|
13
|
+
|
|
14
|
+
### Changed
|
|
15
|
+
|
|
16
|
+
- Advance Mermaid compatibility from `12.2.0` to `12.3.0`, adding timed Flowchart Step edges and numbered badges, nine `bpmn-*` Flowchart shapes, updated Swimlane behavior and Usecase Include/Extend labels. Step animation is browser-only; static output keeps ordinary edges and badges. ELK follows the selected `0.12.1` behavior for label clearance, compound containers, self-loops and packing, so review SVG/layout snapshots after upgrading. See the [Mermaid migration guide](../../docs/migrations/mermaid-12-3.md). [#277](https://github.com/Latias94/merman/pull/277)
|
|
17
|
+
- Core theme colors and typography reach all 34 diagram families in the complete SVG product, including supported paint on BPMN event rings and annotation brackets. Shadows, glows and other effects retain their family, shape and look restrictions; successful rendering does not certify output portability. See the [theme coverage guide](../../docs/rendering/diagram-theme-coverage.md). [#277](https://github.com/Latias94/merman/pull/277), [#278](https://github.com/Latias94/merman/pull/278)
|
|
18
|
+
- Reuse 15 editable designs from the [theme design gallery](../../CHANGELOG.md#theme-design-gallery), with dedicated Flowchart, Sequence, Class, XY Chart and Pie examples. These are independent JSON recipes, not additions to the 11 built-in presets. Pass a downloaded recipe as the `theme` value in [Options JSON](../../docs/bindings/OPTIONS_JSON.md#diagram-theme); fonts and other diagram/output combinations need their own review. [#279](https://github.com/Latias94/merman/pull/279)
|
|
19
|
+
|
|
20
|
+
### Fixed
|
|
21
|
+
|
|
22
|
+
- Apply JSON byte, member, token and string limits consistently when constructing native and Node WASM engines, including inserted defaults and repeated shared values, without mutating caller input or executing getters and `toJSON` hooks. [#277](https://github.com/Latias94/merman/pull/277)
|
|
23
|
+
- Preserve Flowchart source-class precedence over theme colors and fonts, and use supported source font sizes during label measurement. [#278](https://github.com/Latias94/merman/pull/278)
|
|
24
|
+
- Avoid false strict-theme rejections when resetting supported Pie text styles or Architecture group colors to their defaults. [#278](https://github.com/Latias94/merman/pull/278)
|
|
25
|
+
- Preserve supported inline font sizes, weights and code fonts during HTML-to-SVG conversion; retain Railroad, Cynefin and Wardley label text, and emit valid SVG for State labels with HTML line breaks. [#277](https://github.com/Latias94/merman/pull/277), [#278](https://github.com/Latias94/merman/pull/278)
|
|
26
|
+
- Render Brutalist shadows on supported Classic and Neo Flowchart shapes and match Usecase arrowheads to connector colors. Explicit Sequence theme backgrounds now contain the full lifeline when bottom participants are hidden. [#278](https://github.com/Latias94/merman/pull/278), [#279](https://github.com/Latias94/merman/pull/279)
|
|
27
|
+
|
|
28
|
+
## [0.10.0-alpha.1] - 2026-11-02
|
|
29
|
+
|
|
30
|
+
Changes below are relative to `0.9.3`. Install the exact prerelease with `npm install --save-exact @mermanjs/node@0.10.0-alpha.1`, or explicitly select `@mermanjs/node-wasm@0.10.0-alpha.1`; see the [host installation guide](../../docs/release/PREBUILT_PRODUCTS.md).
|
|
31
|
+
|
|
32
|
+
### Breaking changes
|
|
33
|
+
|
|
34
|
+
- Upgrade the loader and selected native or WASM transport packages together. Replace `metadataJson("presentation-catalog")` with `metadataJson("theme-catalog")`.
|
|
35
|
+
- 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.
|
|
36
|
+
- 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).
|
|
37
|
+
- 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.
|
|
38
|
+
|
|
39
|
+
### Added
|
|
40
|
+
|
|
41
|
+
- Install `@mermanjs/node` on GNU or musl Linux ARM64 as well as the existing native targets. Installing the root package selects the matching exact-version optional dependency. Native GNU Linux builds require glibc 2.31 or newer. See the [package guide](README.md). [#265](https://github.com/Latias94/merman/pull/265), [#266](https://github.com/Latias94/merman/pull/266)
|
|
42
|
+
- Render formulas with both native `@mermanjs/node` and explicit `@mermanjs/node-wasm` SVG products; no custom math-enabled build is needed.
|
|
43
|
+
- Apply 11 alpha theme presets or share your own editable JSON recipe. `metadataJson("theme-catalog")` lists presets and their intended diagram families; theme authoring operations export recipes and query styling support for your diagram and output. See the [theme guide and gallery](../../docs/rendering/custom-diagram-themes.md) for examples and alpha limitations. [#178](https://github.com/Latias94/merman/pull/178), [#223](https://github.com/Latias94/merman/pull/223), [#234](https://github.com/Latias94/merman/pull/234), [#253](https://github.com/Latias94/merman/pull/253)
|
|
44
|
+
|
|
5
45
|
## [0.9.3] - 2026-10-30
|
|
6
46
|
|
|
7
|
-
|
|
47
|
+
These fixes are included in the published `0.9.3` npm package group.
|
|
48
|
+
|
|
49
|
+
- Use loaded Iconify packs with `createNodeEngine({ iconPacks })`; icons are scoped to that engine. [#247](https://github.com/Latias94/merman/pull/247)
|
|
50
|
+
- Fix clipped labels, font sizing, literal text, and HTML/entity handling, including wrapped Swimlane edge labels and valid Class-note XML. [#245](https://github.com/Latias94/merman/pull/245), [#247](https://github.com/Latias94/merman/pull/247), [#250](https://github.com/Latias94/merman/pull/250)
|
|
51
|
+
- Restore Neo shadows in Sequence diagrams and GitGraph tag backgrounds, and prevent Sequence boxes from clipping at the diagram edges. [#255](https://github.com/Latias94/merman/pull/255)
|
|
52
|
+
- Honor Gantt `tickInterval`, Mindmap root padding/width, and Sequence numbering, participant visibility, and note alignment. When combining init directives, replace legacy `config` with explicit namespaces or frontmatter. [#252](https://github.com/Latias94/merman/pull/252)
|
|
53
|
+
- Preserve `%` in Flowchart node IDs and accept brackets in YAML frontmatter comments and block text. Separate Flowchart header directions from the diagram body with a newline or semicolon. [#241](https://github.com/Latias94/merman/pull/241), [#251](https://github.com/Latias94/merman/pull/251)
|
|
8
54
|
|
|
9
|
-
|
|
10
|
-
- `createNodeEngine({ iconPacks })` accepts already-loaded Iconify JSON for icons scoped to that engine. The application owns loading and credentials. [#247](https://github.com/Latias94/merman/pull/247)
|
|
11
|
-
- Correct label sizing, configured fonts, literal text, and HTML/entity handling across SVG diagrams, including wrapped Swimlane edge labels and valid Class-note XML. Review updated output snapshots. [#245](https://github.com/Latias94/merman/pull/245), [#247](https://github.com/Latias94/merman/pull/247), [#250](https://github.com/Latias94/merman/pull/250)
|
|
12
|
-
- Apply Gantt `tickInterval`, Mindmap root padding and width settings, and Sequence numbering, participant visibility, and note alignment. Init directives follow Mermaid 12.1.0's filtering and merge order. [#252](https://github.com/Latias94/merman/pull/252)
|
|
13
|
-
- Refresh the native and WASM dependency graphs while retaining Mermaid 12.1.0, Options JSON schema 2, Node transport 1, and text-measurement protocol 1 with its 22 operations (0..21). The host literal-height extension (operation 22) is deferred; see the [host guide](../../docs/bindings/HOST_TEXT_MEASUREMENT.md) for callback limits. Native C/WASI SDK archives have separate APIs and capabilities; this package continues to provide its own SVG recipe. See the [workspace changelog](../../CHANGELOG.md). [#245](https://github.com/Latias94/merman/pull/245), [#247](https://github.com/Latias94/merman/pull/247)
|
|
55
|
+
Review SVG snapshots after upgrading. See the [workspace changelog](../../CHANGELOG.md) for the complete release.
|
|
14
56
|
|
|
15
57
|
## [0.9.2] - 2026-10-22
|
|
16
58
|
|
package/README.md
CHANGED
|
@@ -4,10 +4,14 @@ Explicit Node-targeted WebAssembly rendering for Node.js 22+ and static-site bui
|
|
|
4
4
|
This is a separate opt-in package; `@mermanjs/node` remains the native N-API package and never
|
|
5
5
|
silently falls back to browser or Node WASM.
|
|
6
6
|
|
|
7
|
+
Version `0.10.0-alpha.2` targets Mermaid `12.3.0` and uses Node binding API `1`, 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. Check the [host installation guide](https://github.com/Latias94/merman/blob/main/docs/release/PREBUILT_PRODUCTS.md#published-versions) for verified versions and channel availability.
|
|
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).
|
|
10
|
+
|
|
7
11
|
## Quick start
|
|
8
12
|
|
|
9
13
|
```sh
|
|
10
|
-
npm install @mermanjs/node-wasm@0.
|
|
14
|
+
npm install --save-exact @mermanjs/node-wasm@0.10.0-alpha.2
|
|
11
15
|
```
|
|
12
16
|
|
|
13
17
|
```js
|
|
@@ -29,9 +33,8 @@ single-threaded, so an `AbortSignal` cannot interrupt an operation after it ente
|
|
|
29
33
|
operation deadlines remain available through `timeoutMs`.
|
|
30
34
|
|
|
31
35
|
`renderSvg()` and `renderSvgSync()` use the `parity` pipeline by default. This preserves the
|
|
32
|
-
Mermaid-compatible SVG structure for trusted input and parity-sensitive consumers. For
|
|
33
|
-
|
|
34
|
-
sealed `resvg-safe` pipeline through `optionsJson`:
|
|
36
|
+
Mermaid-compatible SVG structure for trusted input and parity-sensitive consumers. For a resvg/usvg
|
|
37
|
+
consumer that cannot display HTML labels, select `resvg-safe` explicitly through `optionsJson`:
|
|
35
38
|
|
|
36
39
|
```js
|
|
37
40
|
const svg = await engine.renderSvg(source, {
|
|
@@ -39,14 +42,53 @@ const svg = await engine.renderSvg(source, {
|
|
|
39
42
|
});
|
|
40
43
|
```
|
|
41
44
|
|
|
42
|
-
The pipeline values are `parity`, `readable`, and `resvg-safe`.
|
|
43
|
-
|
|
45
|
+
The pipeline values are `parity`, `readable`, and `resvg-safe`. `readable` is a text overlay for
|
|
46
|
+
consumers that ignore HTML labels; browsers can display both copies and show overlapping text.
|
|
47
|
+
Use `parity` for browser display, with a host-owned DOM-admission policy when embedding SVG into
|
|
48
|
+
HTML. Pipeline selection alone does not establish browser DOM safety. The `resvg-safe` pipeline
|
|
49
|
+
does not provide browser `Document` or owner-document admission APIs; use `@mermanjs/web*` for
|
|
50
|
+
browser DOM mounting.
|
|
44
51
|
|
|
45
52
|
The native package is the recommended choice when a supported platform binary is available. Use
|
|
46
53
|
this package when a deployment target cannot load the native package or when a single portable
|
|
47
54
|
Node artifact is more useful than native startup and throughput.
|
|
48
55
|
|
|
49
|
-
|
|
56
|
+
The package includes math, Cytoscape and ELK layouts, matching the native SVG recipe.
|
|
57
|
+
`engine.renderSvg('flowchart LR\nA["$$x^2$$"]')` renders outlined formula geometry and the runtime
|
|
58
|
+
catalog advertises `math`. The default `interactive` resource profile admits formulas; an
|
|
59
|
+
explicitly `constrained` profile rejects them even when math is compiled. For untrusted input,
|
|
60
|
+
enforce host execution, memory, and concurrency limits alongside the selected resource profile.
|
|
61
|
+
Node.js 22.0.0 is the minimum runtime.
|
|
62
|
+
|
|
63
|
+
## Compiled themes
|
|
64
|
+
|
|
65
|
+
Select a preset through the top-level `theme` group in Options JSON schema `3`. Discover preset
|
|
66
|
+
IDs through the initialized engine's theme catalog:
|
|
67
|
+
|
|
68
|
+
```js
|
|
69
|
+
const catalog = JSON.parse(engine.metadataJson("theme-catalog"));
|
|
70
|
+
const themedSvg = await engine.renderSvg("flowchart LR\nA --> B", {
|
|
71
|
+
optionsJson: JSON.stringify({ version: 3, theme: { preset: "spotless" } }),
|
|
72
|
+
});
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
Catalog `available` means that the recipe can compile under the current resource policy. All
|
|
76
|
+
built-in presets remain `alpha` with empty `qualified_cells`; availability and unknown
|
|
77
|
+
profile/admission IDs never establish portable output. Flowchart glow and shadow effects require
|
|
78
|
+
the Classic look and supported shapes. SVG fonts resolve on the viewing host; exported recipes
|
|
79
|
+
do not embed them.
|
|
80
|
+
|
|
81
|
+
Use `executeOperation()` or `executeOperationSync()` with operation IDs
|
|
82
|
+
`materialize-theme-json`, `describe-theme-support-json`, or `export-theme-preset-json` for
|
|
83
|
+
shared definition JSON, support queries and preset export. Materialization returns a complete
|
|
84
|
+
spec that can be passed as `theme: { spec }`; no intermediate file is required. Replace old
|
|
85
|
+
`presentation.theme` inputs and `presentation-catalog` metadata calls when upgrading. See the
|
|
86
|
+
[theme guide](https://github.com/Latias94/merman/blob/main/docs/rendering/custom-diagram-themes.md)
|
|
87
|
+
for authoring and portability, and the
|
|
88
|
+
[current Node changelog](https://github.com/Latias94/merman/blob/main/platforms/node/CHANGELOG.md)
|
|
89
|
+
for upgrade actions.
|
|
90
|
+
|
|
91
|
+
## Loaded icon packs
|
|
50
92
|
|
|
51
93
|
The native and Node-WASM packages accept the same
|
|
52
94
|
`createNodeEngine({ iconPacks: [{ json, registrationName? }] })` constructor argument. `json` is
|
|
@@ -55,7 +97,7 @@ optionally replaces the pack prefix. The registry is immutable and scoped to tha
|
|
|
55
97
|
per-request options preserve it, and `dispose()` releases it after queued work settles.
|
|
56
98
|
An omitted argument or `[]` preserves ordinary rendering.
|
|
57
99
|
|
|
58
|
-
Use the [native package example](https://github.com/Latias94/merman/blob/main/platforms/node/packages/node/README.md#loaded-icon-packs
|
|
100
|
+
Use the [native package example](https://github.com/Latias94/merman/blob/main/platforms/node/packages/node/README.md#loaded-icon-packs)
|
|
59
101
|
with the import changed to `@mermanjs/node-wasm`. Keep packs outside `bindingOptions`.
|
|
60
102
|
The `icon-registry` constructor catalog exposes the same fixed resource ceilings on both
|
|
61
103
|
transports. Construction errors preserve `MermanOperationError.iconRegistryDetails` and,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright 2015-2026 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.
|
|
@@ -250,8 +250,7 @@ No third-party beneficiary rights are created under this Agreement.
|
|
|
250
250
|
|
|
251
251
|
“This Source Code may also be made available under the following
|
|
252
252
|
Secondary Licenses when the conditions for such availability set forth
|
|
253
|
-
in the Eclipse Public License, v. 2.0 are satisfied:
|
|
254
|
-
version(s), and exceptions or additional permissions here}.”
|
|
253
|
+
in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License v3.0 or later.”
|
|
255
254
|
|
|
256
255
|
> Simply including a copy of this Agreement, including this Exhibit A is
|
|
257
256
|
> not sufficient to license the Source Code under Secondary Licenses.
|
|
@@ -250,8 +250,7 @@ No third-party beneficiary rights are created under this Agreement.
|
|
|
250
250
|
|
|
251
251
|
“This Source Code may also be made available under the following
|
|
252
252
|
Secondary Licenses when the conditions for such availability set forth
|
|
253
|
-
in the Eclipse Public License, v. 2.0 are satisfied:
|
|
254
|
-
version(s), and exceptions or additional permissions here}.”
|
|
253
|
+
in the Eclipse Public License, v. 2.0 are satisfied: GNU General Public License v3.0 or later”
|
|
255
254
|
|
|
256
255
|
> Simply including a copy of this Agreement, including this Exhibit A is
|
|
257
256
|
> not sufficient to license the Source Code under Secondary Licenses.
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright © 2016, June McEnroe <june@causal.agency>
|
|
2
|
+
|
|
3
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
4
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
5
|
+
copyright notice and this permission notice appear in all copies.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
8
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
9
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
10
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
11
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
12
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
13
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Yevhenii Reizner
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|