@thi.ng/checks 3.7.15 → 3.7.17

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**: 2025-08-04T09:13:01Z
3
+ - **Last updated**: 2025-08-11T16:41:24Z
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.
@@ -11,6 +11,13 @@ See [Conventional Commits](https://conventionalcommits.org/) for commit guidelin
11
11
  **Note:** Unlisted _patch_ versions only involve non-code or otherwise excluded changes
12
12
  and/or version bumps of transitive dependencies.
13
13
 
14
+ ### [3.7.16](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.7.16) (2025-08-07)
15
+
16
+ #### 🩹 Bug fixes
17
+
18
+ - fix [#540](https://github.com/thi-ng/umbrella/issues/540), update hasCrypto() & hasWASM() checks ([a626425](https://github.com/thi-ng/umbrella/commit/a626425))
19
+ - use `self` vs `window` to include worker support
20
+
14
21
  ## [3.7.0](https://github.com/thi-ng/umbrella/tree/@thi.ng/checks@3.7.0) (2025-02-21)
15
22
 
16
23
  #### 🚀 Features
package/README.md CHANGED
@@ -135,7 +135,7 @@ For Node.js REPL:
135
135
  const ch = await import("@thi.ng/checks");
136
136
  ```
137
137
 
138
- Package sizes (brotli'd, pre-treeshake): ESM: 1.70 KB
138
+ Package sizes (brotli'd, pre-treeshake): ESM: 1.71 KB
139
139
 
140
140
  ## Dependencies
141
141
 
package/has-crypto.js CHANGED
@@ -1,4 +1,4 @@
1
- const hasCrypto = () => typeof window !== "undefined" && window["crypto"] !== void 0;
1
+ const hasCrypto = () => typeof self !== "undefined" && self["crypto"] !== void 0 || typeof global !== "undefined" && global["crypto"] !== void 0;
2
2
  export {
3
3
  hasCrypto
4
4
  };
package/has-wasm.js CHANGED
@@ -1,4 +1,4 @@
1
- const hasWASM = () => typeof window !== "undefined" && typeof window["WebAssembly"] !== "undefined" || typeof global !== "undefined" && typeof global["WebAssembly"] !== "undefined";
1
+ const hasWASM = () => typeof self !== "undefined" && typeof self["WebAssembly"] !== "undefined" || typeof global !== "undefined" && typeof global["WebAssembly"] !== "undefined";
2
2
  export {
3
3
  hasWASM
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thi.ng/checks",
3
- "version": "3.7.15",
3
+ "version": "3.7.17",
4
4
  "description": "Collection of 70+ type, feature & value checks",
5
5
  "type": "module",
6
6
  "module": "./index.js",
@@ -290,5 +290,5 @@
290
290
  "thi.ng": {
291
291
  "alias": "ch"
292
292
  },
293
- "gitHead": "0bcedf8d1dd4f30cd06bb2c668599628f2f0141e\n"
293
+ "gitHead": "f6ebc1302dc9211d588293aa0897173c6e54f4e5\n"
294
294
  }