@thi.ng/checks 3.7.15 → 3.7.16

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-07T16:21:26Z
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/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.16",
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": "9a998c33c7a524c95b552b9cbdc2734d28a5dafc\n"
294
294
  }