@thi.ng/wasm-api-schedule 0.2.1 → 0.3.1

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-11-24T12:23:48Z
3
+ - **Last updated**: 2022-11-28T13:36:49Z
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.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api-schedule@0.3.0) (2022-11-24)
13
+
14
+ #### 🚀 Features
15
+
16
+ - add check if auto-initializer is present ([f5ad93c](https://github.com/thi-ng/umbrella/commit/f5ad93c))
17
+
12
18
  ## [0.2.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/wasm-api-schedule@0.2.0) (2022-11-23)
13
19
 
14
20
  #### 🚀 Features
package/README.md CHANGED
@@ -102,7 +102,7 @@ node --experimental-repl-await
102
102
  > const wasmApiSchedule = await import("@thi.ng/wasm-api-schedule");
103
103
  ```
104
104
 
105
- Package sizes (gzipped, pre-treeshake): ESM: 437 bytes
105
+ Package sizes (gzipped, pre-treeshake): ESM: 479 bytes
106
106
 
107
107
  ## Dependencies
108
108
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/wasm-api-schedule",
3
- "version": "0.2.1",
3
+ "version": "0.3.1",
4
4
  "description": "Delayed & scheduled function execution (via setTimeout() etc.) for hybrid WASM apps",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -35,9 +35,9 @@
35
35
  "test": "testament test"
36
36
  },
37
37
  "dependencies": {
38
- "@thi.ng/api": "^8.4.6",
39
- "@thi.ng/wasm-api": "^1.0.1",
40
- "@thi.ng/wasm-api-bindgen": "^0.2.0"
38
+ "@thi.ng/api": "^8.5.0",
39
+ "@thi.ng/wasm-api": "^1.1.0",
40
+ "@thi.ng/wasm-api-bindgen": "^0.2.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@microsoft/api-extractor": "^7.33.5",
@@ -92,5 +92,5 @@
92
92
  "status": "alpha",
93
93
  "year": 2022
94
94
  },
95
- "gitHead": "8d59e559a576ecb3d2c2d13edf5c3146df95d6ac\n"
95
+ "gitHead": "75ec32ff7f1b7b5e72e7a04ace24732cd5d6c774\n"
96
96
  }
package/schedule.js CHANGED
@@ -20,7 +20,12 @@ export class WasmSchedule {
20
20
  }
21
21
  async init(parent) {
22
22
  this.parent = parent;
23
- parent.exports._schedule_init();
23
+ if (parent.exports._schedule_init) {
24
+ parent.exports._schedule_init();
25
+ }
26
+ else {
27
+ parent.logger.warn("schedule module unused, skipping auto-init...");
28
+ }
24
29
  return true;
25
30
  }
26
31
  getImports() {