@thi.ng/wasm-api-schedule 0.3.46 → 0.3.49

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-10-30T14:31:56Z
3
+ - **Last updated**: 2023-11-24T09:35:46Z
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.
@@ -9,6 +9,12 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
9
9
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
10
10
  and/or version bumps of transitive dependencies.
11
11
 
12
+ ### [0.3.47](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api-schedule@0.3.47) (2023-11-09)
13
+
14
+ #### ♻️ Refactoring
15
+
16
+ - update all tests (packages A-S) ([e3085e4](https://github.com/thi-ng/umbrella/commit/e3085e4))
17
+
12
18
  ### [0.3.20](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api-schedule@0.3.20) (2023-03-27)
13
19
 
14
20
  #### ♻️ Refactoring
package/README.md CHANGED
@@ -100,7 +100,7 @@ For Node.js REPL:
100
100
  const wasmApiSchedule = await import("@thi.ng/wasm-api-schedule");
101
101
  ```
102
102
 
103
- Package sizes (brotli'd, pre-treeshake): ESM: 397 bytes
103
+ Package sizes (brotli'd, pre-treeshake): ESM: 495 bytes
104
104
 
105
105
  ## Dependencies
106
106
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/wasm-api-schedule",
3
- "version": "0.3.46",
3
+ "version": "0.3.49",
4
4
  "description": "Delayed & scheduled function execution (via setTimeout() etc.) for hybrid WASM apps",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -29,23 +29,22 @@
29
29
  "clean": "rimraf --glob '*.js' '*.d.ts' '*.map' doc generated",
30
30
  "doc": "typedoc --excludePrivate --excludeInternal --out doc src/index.ts",
31
31
  "doc:ae": "mkdir -p .ae/doc .ae/temp && api-extractor run --local --verbose",
32
- "doc:readme": "yarn doc:stats && tools:readme",
33
- "doc:stats": "tools:module-stats",
32
+ "doc:readme": "bun ../../tools/src/module-stats.ts && bun ../../tools/src/readme.ts",
34
33
  "pub": "yarn npm publish --access public",
35
- "test": "testament test"
34
+ "test": "bun test"
36
35
  },
37
36
  "dependencies": {
38
- "@thi.ng/api": "^8.9.6",
39
- "@thi.ng/wasm-api": "^1.4.31"
37
+ "@thi.ng/api": "^8.9.9",
38
+ "@thi.ng/wasm-api": "^1.4.34"
40
39
  },
41
40
  "devDependencies": {
42
- "@microsoft/api-extractor": "^7.38.0",
43
- "@thi.ng/testament": "^0.3.24",
44
- "@thi.ng/wasm-api-bindgen": "^0.4.27",
41
+ "@microsoft/api-extractor": "^7.38.3",
42
+ "@thi.ng/testament": "^0.4.2",
43
+ "@thi.ng/wasm-api-bindgen": "^0.4.30",
45
44
  "rimraf": "^5.0.5",
46
45
  "tools": "^0.0.1",
47
- "typedoc": "^0.25.2",
48
- "typescript": "^5.2.2"
46
+ "typedoc": "^0.25.3",
47
+ "typescript": "^5.3.2"
49
48
  },
50
49
  "keywords": [
51
50
  "browser",
@@ -95,5 +94,5 @@
95
94
  "status": "alpha",
96
95
  "year": 2022
97
96
  },
98
- "gitHead": "336bd1bf95825b3c318a3ab49c54451c94aaa883\n"
97
+ "gitHead": "f6de41f4991704fdbbb2899bb430ed4f4f6efab0\n"
99
98
  }
package/schedule.js CHANGED
@@ -12,10 +12,10 @@ const CANCEL = {
12
12
  [ScheduleType.IMMEDIATE]: typeof clearImmediate !== "undefined" ? clearImmediate : clearTimeout,
13
13
  };
14
14
  export class WasmSchedule {
15
- constructor() {
16
- this.id = WasmSchedule.id;
17
- this.listeners = {};
18
- }
15
+ static id = "schedule";
16
+ id = WasmSchedule.id;
17
+ parent;
18
+ listeners = {};
19
19
  async init(parent) {
20
20
  this.parent = parent;
21
21
  if (parent.exports._schedule_init) {
@@ -45,4 +45,3 @@ export class WasmSchedule {
45
45
  };
46
46
  }
47
47
  }
48
- WasmSchedule.id = "schedule";