@thi.ng/wasm-api 1.4.42 → 1.4.44

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**: 2023-12-31T09:44:24Z
3
+ - **Last updated**: 2024-01-26T18:03:04Z
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
@@ -545,4 +545,4 @@ If this project contributes to an academic publication, please cite it as:
545
545
 
546
546
  ## License
547
547
 
548
- © 2022 - 2023 Karsten Schmidt // Apache License 2.0
548
+ © 2022 - 2024 Karsten Schmidt // Apache License 2.0
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.42",
3
+ "version": "1.4.44",
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.16",
40
- "@thi.ng/arrays": "^2.7.13",
41
- "@thi.ng/checks": "^3.4.16",
42
- "@thi.ng/errors": "^2.4.10",
43
- "@thi.ng/hex": "^2.3.28",
44
- "@thi.ng/idgen": "^2.2.19",
45
- "@thi.ng/logger": "^2.1.3"
39
+ "@thi.ng/api": "^8.9.18",
40
+ "@thi.ng/arrays": "^2.7.15",
41
+ "@thi.ng/checks": "^3.4.18",
42
+ "@thi.ng/errors": "^2.4.11",
43
+ "@thi.ng/hex": "^2.3.30",
44
+ "@thi.ng/idgen": "^2.2.21",
45
+ "@thi.ng/logger": "^2.1.4"
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": "b3db173682e1148cf08a6bd907b8d90b47b7c066\n"
118
+ "gitHead": "7426e2ae6fca5482c6eaf649872296fc89955374\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> {