@thi.ng/wasm-api 1.4.43 → 1.4.45

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-01-23T15:58:27Z
3
+ - **Last updated**: 2024-01-29T20:39:37Z
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.
package/README.md CHANGED
@@ -7,9 +7,13 @@
7
7
  ![npm downloads](https://img.shields.io/npm/dm/@thi.ng/wasm-api.svg)
8
8
  [![Mastodon Follow](https://img.shields.io/mastodon/follow/109331703950160316?domain=https%3A%2F%2Fmastodon.thi.ng&style=social)](https://mastodon.thi.ng/@toxi)
9
9
 
10
- This is a standalone project, maintained as part of the
11
- [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo and
12
- anti-framework.
10
+ > [!NOTE]
11
+ > This is one of 189 standalone projects, maintained as part
12
+ > of the [@thi.ng/umbrella](https://github.com/thi-ng/umbrella/) monorepo
13
+ > and anti-framework.
14
+ >
15
+ > 🚀 Help me to work full-time on these projects by [sponsoring me on
16
+ > GitHub](https://github.com/sponsors/postspectacular). Thank you! ❤️
13
17
 
14
18
  - [About](#about)
15
19
  - [Custom API modules](#custom-api-modules)
package/bridge.d.ts CHANGED
@@ -178,11 +178,8 @@ export declare class WasmBridge<T extends WasmExports = WasmExports> implements
178
178
  getString(addr: number, len?: number): string;
179
179
  setString(str: string, addr: number, maxBytes: number, terminate?: boolean): number;
180
180
  getElementById(addr: number, len?: number): HTMLElement;
181
- /** {@inheritDoc @thi.ng/api#INotify.addListener} */
182
181
  addListener(id: BridgeEventType, fn: Listener<BridgeEventType>, scope?: any): boolean;
183
- /** {@inheritDoc @thi.ng/api#INotify.removeListener} */
184
182
  removeListener(id: BridgeEventType, fn: Listener<BridgeEventType>, scope?: any): boolean;
185
- /** {@inheritDoc @thi.ng/api#INotify.notify} */
186
183
  notify(event: Event<BridgeEventType>): boolean;
187
184
  }
188
185
  //# sourceMappingURL=bridge.d.ts.map
package/bridge.js CHANGED
@@ -421,17 +421,14 @@ let WasmBridge = class {
421
421
  assert(!!el, `missing DOM element #${id}`);
422
422
  return el;
423
423
  }
424
- /** {@inheritDoc @thi.ng/api#INotify.addListener} */
425
424
  // @ts-ignore: mixin
426
425
  // prettier-ignore
427
426
  addListener(id, fn, scope) {
428
427
  }
429
- /** {@inheritDoc @thi.ng/api#INotify.removeListener} */
430
428
  // @ts-ignore: mixin
431
429
  // prettier-ignore
432
430
  removeListener(id, fn, scope) {
433
431
  }
434
- /** {@inheritDoc @thi.ng/api#INotify.notify} */
435
432
  // @ts-ignore: mixin
436
433
  notify(event) {
437
434
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/wasm-api",
3
- "version": "1.4.43",
3
+ "version": "1.4.45",
4
4
  "description": "Generic, modular, extensible API bridge and infrastructure for hybrid JS & WebAssembly projects",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -36,13 +36,13 @@
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
  },
38
38
  "dependencies": {
39
- "@thi.ng/api": "^8.9.17",
40
- "@thi.ng/arrays": "^2.7.14",
41
- "@thi.ng/checks": "^3.4.17",
42
- "@thi.ng/errors": "^2.4.11",
43
- "@thi.ng/hex": "^2.3.29",
44
- "@thi.ng/idgen": "^2.2.20",
45
- "@thi.ng/logger": "^2.1.4"
39
+ "@thi.ng/api": "^8.9.19",
40
+ "@thi.ng/arrays": "^2.7.16",
41
+ "@thi.ng/checks": "^3.4.19",
42
+ "@thi.ng/errors": "^2.4.12",
43
+ "@thi.ng/hex": "^2.3.31",
44
+ "@thi.ng/idgen": "^2.2.22",
45
+ "@thi.ng/logger": "^2.1.5"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@microsoft/api-extractor": "^7.39.0",
@@ -115,5 +115,5 @@
115
115
  "status": "alpha",
116
116
  "year": 2022
117
117
  },
118
- "gitHead": "417b5a7ea7bd54a3b4f086fe0fc2ce8e8933c9b2\n"
118
+ "gitHead": "20909ffc46f23f61ec7647e8d27ed17752ce9828\n"
119
119
  }
package/pointer.d.ts CHANGED
@@ -21,14 +21,15 @@ export declare class Pointer<T> implements IDeref<T> {
21
21
  deref(): T;
22
22
  }
23
23
  /**
24
- * Generic pointer facility for {@link WASM64} target, which on
25
- * {@link Pointer64.deref()} calls wrapper function (provided as ctor arg) to
26
- * realise the pointer's target value. The pointer's target address can be
27
- * accessed via {@link Pointer.addr} (read/write).
24
+ * Generic pointer facility for
25
+ * [`WASM64`](https://docs.thi.ng/umbrella/wasm-api-bindgen/variables/WASM64.html)
26
+ * target, which on {@link Pointer64.deref()} calls wrapper function (provided
27
+ * as ctor arg) to realize the pointer's target value. The pointer's target
28
+ * address can be accessed via {@link Pointer.addr} (read/write).
28
29
  *
29
30
  * @remarks
30
31
  * The pointer always behaves like `volatile`, i.e. memoization of target values
31
- * is purposfully avoided and the wrapper function is executed anew _each_ time
32
+ * is purposefully avoided and the wrapper function is executed anew _each_ time
32
33
  * the pointer is deref'd.
33
34
  */
34
35
  export declare class Pointer64<T> implements IDeref<T> {