@thi.ng/wasm-api-schedule 0.3.7 → 0.3.9

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**: 2022-12-16T12:52:25Z
3
+ - **Last updated**: 2022-12-22T21:47:08Z
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
@@ -20,7 +20,7 @@ This project is part of the
20
20
 
21
21
  ## About
22
22
 
23
- Delayed & scheduled function execution (via setTimeout() etc.) for hybrid WASM apps
23
+ Delayed & scheduled function execution (via setTimeout() etc.) for hybrid WASM apps. This is a support package for [@thi.ng/wasm-api](https://github.com/thi-ng/umbrella/tree/develop/packages/wasm-api).
24
24
 
25
25
  The package provides a WASM bridge API and abstraction for scheduling function
26
26
  calls via:
@@ -99,7 +99,7 @@ For Node.js REPL:
99
99
  const wasmApiSchedule = await import("@thi.ng/wasm-api-schedule");
100
100
  ```
101
101
 
102
- Package sizes (brotli'd, pre-treeshake): ESM: 400 bytes
102
+ Package sizes (brotli'd, pre-treeshake): ESM: 396 bytes
103
103
 
104
104
  ## Dependencies
105
105
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/wasm-api-schedule",
3
- "version": "0.3.7",
3
+ "version": "0.3.9",
4
4
  "description": "Delayed & scheduled function execution (via setTimeout() etc.) for hybrid WASM apps",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,13 +35,13 @@
35
35
  "test": "testament test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.6.0",
39
- "@thi.ng/wasm-api": "^1.2.3"
38
+ "@thi.ng/api": "^8.6.2",
39
+ "@thi.ng/wasm-api": "^1.2.5"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@microsoft/api-extractor": "^7.33.7",
43
- "@thi.ng/testament": "^0.3.7",
44
- "@thi.ng/wasm-api-bindgen": "^0.2.6",
43
+ "@thi.ng/testament": "^0.3.8",
44
+ "@thi.ng/wasm-api-bindgen": "^0.2.8",
45
45
  "rimraf": "^3.0.2",
46
46
  "tools": "^0.0.1",
47
47
  "typedoc": "^0.23.22",
@@ -95,5 +95,5 @@
95
95
  "status": "alpha",
96
96
  "year": 2022
97
97
  },
98
- "gitHead": "f445a9cc8022bcdebbf6ff91fd66ced016d72f01\n"
98
+ "gitHead": "bc6f7f5e2765bb96fe64db804eaf4b2443b47fc6\n"
99
99
  }
package/schedule.d.ts CHANGED
@@ -8,9 +8,9 @@ interface ScheduledCall {
8
8
  }
9
9
  export declare class WasmSchedule implements IWasmAPI<WasmScheduleExports> {
10
10
  static readonly id = "schedule";
11
+ readonly id = "schedule";
11
12
  parent: WasmBridge<WasmScheduleExports>;
12
13
  listeners: Record<number, ScheduledCall>;
13
- get id(): string;
14
14
  init(parent: WasmBridge<WasmScheduleExports>): Promise<boolean>;
15
15
  getImports(): WasmScheduleImports;
16
16
  }
package/schedule.js CHANGED
@@ -13,11 +13,9 @@ const CANCEL = {
13
13
  };
14
14
  export class WasmSchedule {
15
15
  constructor() {
16
+ this.id = WasmSchedule.id;
16
17
  this.listeners = {};
17
18
  }
18
- get id() {
19
- return WasmSchedule.id;
20
- }
21
19
  async init(parent) {
22
20
  this.parent = parent;
23
21
  if (parent.exports._schedule_init) {