@thi.ng/wasm-api 1.5.1 → 1.5.3

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**: 2024-04-22T10:34:01Z
3
+ - **Last updated**: 2024-04-25T19:44:55Z
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.
@@ -15,6 +15,8 @@ and/or version bumps of transitive dependencies.
15
15
 
16
16
  - update build script for zig v0.12.0 (incomplete) ([99a1916](https://github.com/thi-ng/umbrella/commit/99a1916))
17
17
  - store existing script as build-v0.11.zig
18
+ - update build script for zig v0.12.0 (incomplete) ([d4fcc54](https://github.com/thi-ng/umbrella/commit/d4fcc54))
19
+ - store existing script as build-v0.11.zig
18
20
 
19
21
  #### 🩹 Bug fixes
20
22
 
@@ -23,6 +25,7 @@ and/or version bumps of transitive dependencies.
23
25
  #### ♻️ Refactoring
24
26
 
25
27
  - minor zig v0.12.0 updates ([4a0751c](https://github.com/thi-ng/umbrella/commit/4a0751c))
28
+ - minor zig v0.12.0 updates ([e3e074d](https://github.com/thi-ng/umbrella/commit/e3e074d))
26
29
 
27
30
  ### [1.4.69](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api@1.4.69) (2024-04-20)
28
31
 
package/README.md CHANGED
@@ -474,7 +474,7 @@ folder):
474
474
  # compile WASM binary (zig v0.12)
475
475
  zig build-exe \
476
476
  -fno-entry -fstrip -OReleaseSmall -target wasm32-freestanding \
477
- --name main -rdynamic --import-symbols \
477
+ --name hello -rdynamic --import-symbols \
478
478
  --dep wasm-api \
479
479
  -Mroot=hello.zig \
480
480
  -Mwasm-api=node_modules/@thi.ng/wasm-api/zig/lib.zig
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/wasm-api",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
4
4
  "description": "Generic, modular, extensible API bridge and infrastructure for hybrid JS & WebAssembly projects",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -27,28 +27,27 @@
27
27
  "build": "yarn build:esbuild && yarn build:decl",
28
28
  "build:decl": "tsc --declaration --emitDeclarationOnly",
29
29
  "build:esbuild": "esbuild --format=esm --platform=neutral --target=es2022 --tsconfig=tsconfig.json --outdir=. src/**/*.ts",
30
- "clean": "rimraf --glob '*.js' '*.d.ts' '*.map' doc",
30
+ "clean": "bun ../../tools/src/clean-package.ts",
31
31
  "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
32
32
  "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
33
33
  "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
34
34
  "pub": "yarn npm publish --access public",
35
- "test": "bun test",
35
+ "test": "zig test zig/managed-index.zig && bun test",
36
36
  "test:build-zig": "zig build-lib -O ReleaseSmall -target wasm32-freestanding -dynamic --strip --pkg-begin wasmapi zig/lib.zig --pkg-end test/custom.zig && wasm-dis -o custom.wast custom.wasm && cp custom.wasm test",
37
37
  "tool:tangle": "../../node_modules/.bin/tangle src/**/*.ts"
38
38
  },
39
39
  "dependencies": {
40
- "@thi.ng/api": "^8.11.0",
41
- "@thi.ng/arrays": "^2.9.4",
42
- "@thi.ng/checks": "^3.6.2",
43
- "@thi.ng/errors": "^2.5.5",
44
- "@thi.ng/hex": "^2.3.44",
45
- "@thi.ng/idgen": "^2.2.39",
46
- "@thi.ng/logger": "^3.0.10"
40
+ "@thi.ng/api": "^8.11.1",
41
+ "@thi.ng/arrays": "^2.9.5",
42
+ "@thi.ng/checks": "^3.6.3",
43
+ "@thi.ng/errors": "^2.5.6",
44
+ "@thi.ng/hex": "^2.3.45",
45
+ "@thi.ng/idgen": "^2.2.40",
46
+ "@thi.ng/logger": "^3.0.11"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@microsoft/api-extractor": "^7.43.0",
50
50
  "esbuild": "^0.20.2",
51
- "rimraf": "^5.0.5",
52
51
  "typedoc": "^0.25.12",
53
52
  "typescript": "^5.4.3"
54
53
  },
@@ -116,5 +115,5 @@
116
115
  "status": "alpha",
117
116
  "year": 2022
118
117
  },
119
- "gitHead": "7d3339310c56ac7fd3572fb3487b6f34f1de57ca\n"
118
+ "gitHead": "aed3421c21044c005fbcb7cc37965ccf85a870d2\n"
120
119
  }
@@ -1,8 +1,10 @@
1
1
  //! DEPRECATED build helpers for using modules/packages distributed via NPM
2
2
  //! Intended for use with https://thi.ng/wasm-api and support packages
3
3
  //!
4
- //! This version of the script is only compatible with Zig v0.10.1 or older
5
- //! Use build-v0.11.zig (in this same directory) for newer Zig versions
4
+ //! This version of the script is only compatible with:
5
+ //! Zig v0.10.1 or older
6
+ //!
7
+ //! Use other build.zig files in this same directory for newer Zig versions
6
8
 
7
9
  const std = @import("std");
8
10
 
@@ -1,10 +1,10 @@
1
- //! Build helpers for using modules/packages distributed via NPM
1
+ //! DEPRECATED build helpers for using modules/packages distributed via NPM
2
2
  //! Intended for use with https://thi.ng/wasm-api and support packages
3
3
  //!
4
4
  //! This version of the script is only compatible with:
5
- //! Zig 0.11.0-dev.3857+7322aa118 or newer
5
+ //! Zig v0.11.0
6
6
  //!
7
- //! Use build.zig (in this same directory) for earlier Zig versions
7
+ //! Use other build.zig files in this same directory for other Zig versions
8
8
 
9
9
  const std = @import("std");
10
10
  const Build = std.Build;
package/zig/build.zig CHANGED
@@ -2,9 +2,9 @@
2
2
  //! Intended for use with https://thi.ng/wasm-api and support packages
3
3
  //!
4
4
  //! This version of the script is only compatible with:
5
- //! Zig 0.11.0-dev.3857+7322aa118 or newer
5
+ //! Zig v0.12.0 or newer
6
6
  //!
7
- //! Use build.zig (in this same directory) for earlier Zig versions
7
+ //! Use other build.zig files in this same directory for older Zig versions
8
8
 
9
9
  const std = @import("std");
10
10
  const Build = std.Build;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes