@thi.ng/wasm-api-bindgen 1.2.34 → 1.2.36

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
@@ -1,6 +1,6 @@
1
1
  # Change Log
2
2
 
3
- - **Last updated**: 2025-08-04T08:45:04Z
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 0.6.0
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
- -d, --debug enable debug output & functions
499
- --dry-run enable dry run (don't overwrite files)
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
- \u2588 \u2588 \u2588 \u2502
67
- \u2588\u2588 \u2588 \u2502
68
- \u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2502 ${PKG.name} ${PKG.version}
69
- \u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2588 \u2502 Multi-language data bindings code generator
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.34",
3
+ "version": "1.2.36",
4
4
  "description": "Polyglot bindings code generators (TS/JS, Zig, C11) for hybrid WebAssembly projects",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -41,19 +41,19 @@
41
41
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
42
42
  },
43
43
  "dependencies": {
44
- "@thi.ng/api": "^8.12.0",
45
- "@thi.ng/args": "^2.8.5",
46
- "@thi.ng/arrays": "^2.13.7",
47
- "@thi.ng/binary": "^3.4.58",
48
- "@thi.ng/checks": "^3.7.14",
49
- "@thi.ng/compare": "^2.4.26",
50
- "@thi.ng/defmulti": "^3.0.74",
51
- "@thi.ng/errors": "^2.5.40",
52
- "@thi.ng/file-io": "^2.2.5",
53
- "@thi.ng/logger": "^3.1.15",
54
- "@thi.ng/paths": "^5.2.17",
55
- "@thi.ng/strings": "^3.9.20",
56
- "@thi.ng/wasm-api": "^2.3.28"
44
+ "@thi.ng/api": "^8.12.1",
45
+ "@thi.ng/args": "^2.9.0",
46
+ "@thi.ng/arrays": "^2.13.8",
47
+ "@thi.ng/binary": "^3.4.59",
48
+ "@thi.ng/checks": "^3.7.15",
49
+ "@thi.ng/compare": "^2.4.27",
50
+ "@thi.ng/defmulti": "^3.0.75",
51
+ "@thi.ng/errors": "^2.5.41",
52
+ "@thi.ng/file-io": "^2.2.6",
53
+ "@thi.ng/logger": "^3.1.16",
54
+ "@thi.ng/paths": "^5.2.18",
55
+ "@thi.ng/strings": "^3.9.21",
56
+ "@thi.ng/wasm-api": "^2.3.29"
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": "d4e2e72dcdadf26da3400900f04f9eb0ebeb0a5b\n"
131
+ "gitHead": "03e0d1024805407fbec5dde688b6178bbe0a2f3a\n"
132
132
  }