@lynx-js/web-mainthread-apis-canary 0.19.6-canary-20260122-f7133c13 → 0.19.6-canary-20260123-01c77389

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
  # @lynx-js/web-mainthread-apis
2
2
 
3
- ## 0.19.6-canary-20260122140843-f7133c137f094063e991dfa0e993ea92177aa173
3
+ ## 0.19.6-canary-20260123084618-01c77389764854235c8fb342680143b565f55877
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -15,7 +15,7 @@
15
15
  - fix: mts && bts events can be binded both ([#2121](https://github.com/lynx-family/lynx-stack/pull/2121))
16
16
 
17
17
  - Updated dependencies [[`179f984`](https://github.com/lynx-family/lynx-stack/commit/179f9844adf00ff4b2cd450ffb943649441c87d3), [`f7133c1`](https://github.com/lynx-family/lynx-stack/commit/f7133c137f094063e991dfa0e993ea92177aa173), [`6c2b51a`](https://github.com/lynx-family/lynx-stack/commit/6c2b51a661ae244eb40671f63f29ee971e084ed4), [`5b589ab`](https://github.com/lynx-family/lynx-stack/commit/5b589ab53b01a8e2357d3ccbb159edab004086d3)]:
18
- - @lynx-js/web-constants@0.19.6-canary-20260122140843-f7133c137f094063e991dfa0e993ea92177aa173
18
+ - @lynx-js/web-constants@0.19.6-canary-20260123084618-01c77389764854235c8fb342680143b565f55877
19
19
 
20
20
  ## 0.19.5
21
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-mainthread-apis-canary",
3
- "version": "0.19.6-canary-20260122-f7133c13",
3
+ "version": "0.19.6-canary-20260123-01c77389",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -26,7 +26,7 @@
26
26
  "**/*.css"
27
27
  ],
28
28
  "dependencies": {
29
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.6-canary-20260122-f7133c13",
29
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.6-canary-20260123-01c77389",
30
30
  "hyphenate-style-name": "^1.1.0",
31
31
  "wasm-feature-detect": "^1.8.0"
32
32
  },
package/wasm/index.js CHANGED
@@ -1,8 +1,11 @@
1
- import { referenceTypes } from 'wasm-feature-detect';
1
+ import { referenceTypes, simd } from 'wasm-feature-detect';
2
2
  export let wasm;
3
3
  export async function initWasm() {
4
- const supportsReferenceTypes = await referenceTypes();
5
- if (supportsReferenceTypes) {
4
+ const [supportsReferenceTypes, supportsSimd] = await Promise.all([
5
+ referenceTypes(),
6
+ simd(),
7
+ ]);
8
+ if (supportsReferenceTypes && supportsSimd) {
6
9
  wasm = await import(
7
10
  /* webpackMode: "eager" */
8
11
  /* webpackFetchPriority: "high" */