@thi.ng/wasm-api-bindgen 1.2.35 → 1.2.37
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 +7 -1
- package/README.md +3 -3
- package/cli.js +9 -12
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
-
- **Last updated**: 2025-08-
|
|
3
|
+
- **Last updated**: 2025-08-06T18:02:31Z
|
|
4
4
|
- **Generator**: [thi.ng/monopub](https://thi.ng/monopub)
|
|
5
5
|
|
|
6
6
|
All notable changes to this project will be documented in this file.
|
|
@@ -11,6 +11,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
|
|
|
11
11
|
**Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
|
|
12
12
|
and/or version bumps of transitive dependencies.
|
|
13
13
|
|
|
14
|
+
### [1.2.36](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api-bindgen@1.2.36) (2025-08-06)
|
|
15
|
+
|
|
16
|
+
#### ♻️ Refactoring
|
|
17
|
+
|
|
18
|
+
- update CLI internals ([51a7659](https://github.com/thi-ng/umbrella/commit/51a7659))
|
|
19
|
+
|
|
14
20
|
## [1.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api-bindgen@1.2.0) (2025-02-11)
|
|
15
21
|
|
|
16
22
|
#### 🚀 Features
|
package/README.md
CHANGED
|
@@ -485,7 +485,7 @@ $ npx @thi.ng/wasm-api
|
|
|
485
485
|
|
|
486
486
|
█ █ █ │
|
|
487
487
|
██ █ │
|
|
488
|
-
█ █ █ █ █ █ █ █ │ @thi.ng/wasm-api-bindgen
|
|
488
|
+
█ █ █ █ █ █ █ █ │ @thi.ng/wasm-api-bindgen v1.2.35
|
|
489
489
|
█ █ █ █ █ █ █ █ █ │ Multi-language data bindings code generator
|
|
490
490
|
█ │
|
|
491
491
|
█ █ │
|
|
@@ -495,8 +495,8 @@ usage: wasm-api-bindgen [OPTS] JSON-INPUT-FILE(S) ...
|
|
|
495
495
|
|
|
496
496
|
Flags:
|
|
497
497
|
|
|
498
|
-
-
|
|
499
|
-
|
|
498
|
+
--dry-run Dry run (no changes applied)
|
|
499
|
+
-v, --verbose Display extra information
|
|
500
500
|
|
|
501
501
|
Main:
|
|
502
502
|
|
package/cli.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
+
ARG_DRY_RUN,
|
|
2
3
|
ParseError,
|
|
4
|
+
THING_HEADER,
|
|
3
5
|
flag,
|
|
4
6
|
oneOf,
|
|
5
7
|
oneOfMulti,
|
|
@@ -28,6 +30,7 @@ import { TYPESCRIPT } from "./typescript.js";
|
|
|
28
30
|
import { ZIG } from "./zig.js";
|
|
29
31
|
const GENERATORS = { c11: C11, ts: TYPESCRIPT, zig: ZIG };
|
|
30
32
|
const argOpts = {
|
|
33
|
+
...ARG_DRY_RUN,
|
|
31
34
|
analytics: string({
|
|
32
35
|
alias: "a",
|
|
33
36
|
hint: "FILE",
|
|
@@ -43,10 +46,6 @@ const argOpts = {
|
|
|
43
46
|
default: false,
|
|
44
47
|
desc: "enable debug output & functions"
|
|
45
48
|
}),
|
|
46
|
-
dryRun: flag({
|
|
47
|
-
default: false,
|
|
48
|
-
desc: "enable dry run (don't overwrite files)"
|
|
49
|
-
}),
|
|
50
49
|
lang: oneOfMulti(Object.keys(GENERATORS), {
|
|
51
50
|
alias: "l",
|
|
52
51
|
desc: "target language",
|
|
@@ -62,17 +61,15 @@ const argOpts = {
|
|
|
62
61
|
};
|
|
63
62
|
const PKG = readJSON(join(process.argv[2], "package.json"));
|
|
64
63
|
const APP_NAME = PKG.name.split("/")[1];
|
|
65
|
-
const HEADER =
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
\u2588 \u2502
|
|
71
|
-
\u2588 \u2588 \u2502
|
|
72
|
-
`;
|
|
64
|
+
const HEADER = THING_HEADER(
|
|
65
|
+
PKG.name,
|
|
66
|
+
PKG.version,
|
|
67
|
+
"Multi-language data bindings code generator"
|
|
68
|
+
);
|
|
73
69
|
const usageOpts = {
|
|
74
70
|
lineWidth: process.stdout.columns,
|
|
75
71
|
prefix: `${HEADER}
|
|
72
|
+
|
|
76
73
|
usage: ${APP_NAME} [OPTS] JSON-INPUT-FILE(S) ...
|
|
77
74
|
${APP_NAME} --help
|
|
78
75
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/wasm-api-bindgen",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.37",
|
|
4
4
|
"description": "Polyglot bindings code generators (TS/JS, Zig, C11) for hybrid WebAssembly projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -42,18 +42,18 @@
|
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@thi.ng/api": "^8.12.1",
|
|
45
|
-
"@thi.ng/args": "^2.
|
|
46
|
-
"@thi.ng/arrays": "^2.13.
|
|
45
|
+
"@thi.ng/args": "^2.9.1",
|
|
46
|
+
"@thi.ng/arrays": "^2.13.9",
|
|
47
47
|
"@thi.ng/binary": "^3.4.59",
|
|
48
|
-
"@thi.ng/checks": "^3.7.
|
|
48
|
+
"@thi.ng/checks": "^3.7.16",
|
|
49
49
|
"@thi.ng/compare": "^2.4.27",
|
|
50
50
|
"@thi.ng/defmulti": "^3.0.75",
|
|
51
51
|
"@thi.ng/errors": "^2.5.41",
|
|
52
|
-
"@thi.ng/file-io": "^2.2.
|
|
52
|
+
"@thi.ng/file-io": "^2.2.7",
|
|
53
53
|
"@thi.ng/logger": "^3.1.16",
|
|
54
|
-
"@thi.ng/paths": "^5.2.
|
|
54
|
+
"@thi.ng/paths": "^5.2.19",
|
|
55
55
|
"@thi.ng/strings": "^3.9.21",
|
|
56
|
-
"@thi.ng/wasm-api": "^2.3.
|
|
56
|
+
"@thi.ng/wasm-api": "^2.3.30"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@types/node": "^24.1.0",
|
|
@@ -128,5 +128,5 @@
|
|
|
128
128
|
"tag": "wasm",
|
|
129
129
|
"year": 2022
|
|
130
130
|
},
|
|
131
|
-
"gitHead": "
|
|
131
|
+
"gitHead": "9a998c33c7a524c95b552b9cbdc2734d28a5dafc\n"
|
|
132
132
|
}
|