@hpcc-js/wasm 2.15.3 → 2.16.0-next.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hpcc-js/wasm",
3
- "version": "2.15.3",
3
+ "version": "2.16.0-next.0",
4
4
  "description": "hpcc-js - WASM Libraries",
5
5
  "keywords": [
6
6
  "graphviz",
@@ -73,7 +73,7 @@
73
73
  "install-vcpkg:win32": "wsl -e ./scripts/cpp-install-vcpkg.sh",
74
74
  "install-build-deps": "run-s install-emsdk install-vcpkg",
75
75
  "uninstall-build-deps": "rimraf ./emsdk ./vcpkg ./src-expat ./src-vcpkg",
76
- "clean-build": "rimraf .nyc_output bin build coverage dist* lib* output-* tmp types *.tsbuildinfo",
76
+ "clean-build": "rimraf .nyc_output bin build coverage dist* lib* output-* tmp types *.tsbuildinfo vcpkg/vcpkg",
77
77
  "clean-docs": "rimraf docs/.vitepress/dist docs/classes docs/interfaces docs/modules docs/.nojekyll docs/README.md",
78
78
  "clean": "run-p clean-build clean-docs",
79
79
  "copy-res": "cp ./docs/*.png ./docs/.vitepress/dist",
@@ -97,6 +97,7 @@
97
97
  "build-docker": "run-s build-docker-image build-docker-wasm",
98
98
  "build": "mkdirp ./lib-esm && run-s compile-cpp compile bundle",
99
99
  "standard-version": "standard-version",
100
+ "standard-version-next": "standard-version -p next",
100
101
  "standard-version-dryrun": "standard-version --dry-run",
101
102
  "git-push": "git push --follow-tags upstream trunk",
102
103
  "watch": "run-p compile-watch bundle-watch",
@@ -116,9 +117,10 @@
116
117
  "coverage": "nyc npm run test-node",
117
118
  "coverage-report": "nyc report --reporter=lcov",
118
119
  "tag": "run-s standard-version git-push",
120
+ "tag-next": "run-s standard-version-next git-push",
119
121
  "purge-jsdelivr": "node ./utils/purge-jsdelivr.js",
120
- "update-major": "npx npm-check-updates -u",
121
- "update": "npx npm-check-updates -u -t minor"
122
+ "update": "npx npm-check-updates -u -t minor",
123
+ "update-major": "npx npm-check-updates -u"
122
124
  },
123
125
  "dependencies": {
124
126
  "yargs": "17.7.2"
@@ -131,12 +133,12 @@
131
133
  "@types/chai": "4.3.11",
132
134
  "@types/emscripten": "1.39.10",
133
135
  "@types/mocha": "10.0.6",
134
- "@types/node": "20.10.5",
136
+ "@types/node": "20.11.6",
135
137
  "@types/yargs": "17.0.32",
136
- "@typescript-eslint/eslint-plugin": "6.15.0",
137
- "@typescript-eslint/parser": "6.15.0",
138
- "assemblyscript": "0.27.22",
139
- "chai": "4.3.10",
138
+ "@typescript-eslint/eslint-plugin": "6.19.1",
139
+ "@typescript-eslint/parser": "6.19.1",
140
+ "assemblyscript": "0.27.23",
141
+ "chai": "5.0.0",
140
142
  "coveralls": "3.1.1",
141
143
  "eslint": "8.56.0",
142
144
  "fzstd": "0.1.0",
@@ -146,20 +148,20 @@
146
148
  "karma-firefox-launcher": "2.1.2",
147
149
  "karma-mocha": "2.0.1",
148
150
  "karma-spec-reporter": "0.0.36",
149
- "local-web-server": "5.3.0",
151
+ "local-web-server": "5.3.1",
150
152
  "mocha": "10.2.0",
151
153
  "npm-run-all": "4.1.5",
152
154
  "nyc": "15.1.0",
153
155
  "rimraf": "5.0.5",
154
- "rollup": "4.9.1",
156
+ "rollup": "4.9.6",
155
157
  "rollup-plugin-sourcemaps": "0.6.3",
156
158
  "run-script-os": "1.1.6",
157
159
  "standard-version": "9.5.0",
158
160
  "tslib": "2.6.2",
159
- "typedoc": "0.25.4",
161
+ "typedoc": "0.25.7",
160
162
  "typedoc-plugin-markdown": "3.17.1",
161
163
  "typescript": "5.3.3",
162
- "vitepress": "1.0.0-rc.32"
164
+ "vitepress": "1.0.0-rc.40"
163
165
  },
164
166
  "repository": {
165
167
  "type": "git",
@@ -91,16 +91,41 @@ export declare class Graphviz {
91
91
  * @returns A string containing the calculated layout in the format specified by `outputFormat`
92
92
  */
93
93
  layout(dotSource: string, outputFormat?: Format, layoutEngine?: Engine, options?: Options): string;
94
+ /**
95
+ * acyclic is a filter that takes a directed graph as input and outputs a copy of the graph with sufficient edges reversed to make the graph acyclic. The reversed edge inherits all of the attributes of the original edge. The optional file argument specifies where the input graph is stored; by default.
96
+ *
97
+ * @param dotSource Required - graph definition in [DOT](https://graphviz.gitlab.io/doc/info/lang.html) language
98
+ * @param doWrite Enable output is produced, though the return value will indicate whether the graph is acyclic or not.
99
+ * @param verbose Print information about whether the file is acyclic, has a cycle or is undirected.
100
+ * @returns `{ acyclic: boolean, num_rev: number, outFile: string }` `acyclic` will be true if a cycle was found, `num_rev` will contain the number of reversed edges and `outFile` will (optionally) contain the output.
101
+ */
102
+ acyclic(dotSource: string, doWrite?: boolean, verbose?: boolean): {
103
+ acyclic: boolean;
104
+ num_rev: number;
105
+ outFile: string;
106
+ };
107
+ /**
108
+ * tred computes the transitive reduction of directed graphs, and prints the resulting graphs to standard output. This removes edges implied by transitivity. Nodes and subgraphs are not otherwise affected. The ‘‘meaning’’ and validity of the reduced graphs is application dependent. tred is particularly useful as a preprocessor to dot to reduce clutter in dense layouts. Undirected graphs are silently ignored.
109
+ *
110
+ * @param dotSource Required - graph definition in [DOT](https://graphviz.gitlab.io/doc/info/lang.html) language
111
+ * @param verbose Print additional information.
112
+ * @param printRemovedEdges Print information about removed edges.
113
+ * @returns `{ out: string, err: string }`.
114
+ */
115
+ tred(dotSource: string, verbose?: boolean, printRemovedEdges?: boolean): {
116
+ out: string;
117
+ err: string;
118
+ };
94
119
  /**
95
120
  * unflatten is a preprocessor to dot that is used to improve the aspect ratio of graphs having many leaves or disconnected nodes. The usual layout for such a graph is generally very wide or tall. unflatten inserts invisible edges or adjusts the minlen on edges to improve layout compaction.
96
121
  *
97
122
  * @param dotSource Required - graph definition in [DOT](https://graphviz.gitlab.io/doc/info/lang.html) language
98
- * @param l The minimum length of leaf edges is staggered between 1 and len (a small integer).
99
- * @param f Enables the staggering of the -l option to fanout nodes whose indegree and outdegree are both 1. This helps with structures such as a -> \{w x y \} -> b. This option only works if the -l flag is set.
100
- * @param c Form disconnected nodes into chains of up to len nodes.
123
+ * @param maxMinlen The minimum length of leaf edges is staggered between 1 and len (a small integer).
124
+ * @param do_fans Enables the staggering of the -maxMinlen option to fanout nodes whose indegree and outdegree are both 1. This helps with structures such as a -> \{w x y \} -> b. This option only works if the -maxMinlen flag is set.
125
+ * @param chainLimit Form disconnected nodes into chains of up to len nodes.
101
126
  * @returns A string containing the "unflattened" dotSource.
102
127
  */
103
- unflatten(dotSource: string, l?: number, f?: boolean, c?: number): string;
128
+ unflatten(dotSource: string, maxMinlen?: number, do_fans?: boolean, chainLimit?: number): string;
104
129
  /**
105
130
  * Convenience function that performs the **circo** layout, is equivalent to `layout(dotSource, outputFormat, "circo");`.
106
131
  *
@@ -1 +1 @@
1
- {"version":3,"file":"graphviz.d.ts","sourceRoot":"","sources":["../src-ts/graphviz.ts"],"names":[],"mappings":"AAGA;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,UAAU,GAAG,WAAW,GAAG,OAAO,GAAG,WAAW,CAAC;AAE/F;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,OAAO,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,GAAG,WAAW,GAAG,OAAO,GAAG,KAAK,GAAG,MAAM,CAAC;AAEnH;;;;;;;;;;;;;;;GAeG;AACH,MAAM,WAAW,KAAK;IAClB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,IAAI;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,OAAO;IACpB,MAAM,CAAC,EAAE,KAAK,EAAE,CAAC;IACjB,KAAK,CAAC,EAAE,IAAI,EAAE,CAAC;IACf,OAAO,CAAC,EAAE,O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