@lynx-js/web-worker-runtime-canary 0.16.0-canary-20250830-d7d0b9b9 → 0.16.1-canary-20250910-c24b6021

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,15 @@
1
1
  # @lynx-js/web-worker-runtime
2
2
 
3
- ## 0.16.0-canary-20250830063332-d7d0b9b94e219cd057c935d723775c82b10559a6
3
+ ## 0.16.1-canary-20250910033502-c24b60214bbb194adfd96985f3f80d1e0f5a0e08
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @lynx-js/web-constants@0.16.1-canary-20250910033502-c24b60214bbb194adfd96985f3f80d1e0f5a0e08
9
+ - @lynx-js/web-mainthread-apis@0.16.1-canary-20250910033502-c24b60214bbb194adfd96985f3f80d1e0f5a0e08
10
+ - @lynx-js/web-worker-rpc@0.16.1-canary-20250910033502-c24b60214bbb194adfd96985f3f80d1e0f5a0e08
11
+
12
+ ## 0.16.0
4
13
 
5
14
  ### Minor Changes
6
15
 
@@ -19,10 +28,10 @@
19
28
  - fix: the SystemInfo in bts should be assigned to the globalThis ([#1599](https://github.com/lynx-family/lynx-stack/pull/1599))
20
29
 
21
30
  - Updated dependencies [[`1a32dd8`](https://github.com/lynx-family/lynx-stack/commit/1a32dd886fe736c95639f67028cf7685377d9769), [`bb53d9a`](https://github.com/lynx-family/lynx-stack/commit/bb53d9a035f607e7c89952098d4ed77877a2e3c1), [`1a32dd8`](https://github.com/lynx-family/lynx-stack/commit/1a32dd886fe736c95639f67028cf7685377d9769), [`c1f8715`](https://github.com/lynx-family/lynx-stack/commit/c1f8715a81b2e69ff46fc363013626db4468c209)]:
22
- - @lynx-js/web-mainthread-apis@0.16.0-canary-20250830063332-d7d0b9b94e219cd057c935d723775c82b10559a6
23
- - @lynx-js/web-constants@0.16.0-canary-20250830063332-d7d0b9b94e219cd057c935d723775c82b10559a6
24
- - @lynx-js/offscreen-document@0.1.4-canary-20250830063332-d7d0b9b94e219cd057c935d723775c82b10559a6
25
- - @lynx-js/web-worker-rpc@0.16.0-canary-20250830063332-d7d0b9b94e219cd057c935d723775c82b10559a6
31
+ - @lynx-js/web-mainthread-apis@0.16.0
32
+ - @lynx-js/web-constants@0.16.0
33
+ - @lynx-js/offscreen-document@0.1.4
34
+ - @lynx-js/web-worker-rpc@0.16.0
26
35
 
27
36
  ## 0.15.7
28
37
 
@@ -22,8 +22,10 @@ export async function createNativeApp(config) {
22
22
  const selectComponent = uiThreadRpc.createCallbackify(selectComponentEndpoint, 3);
23
23
  const reportError = uiThreadRpc.createCall(reportErrorEndpoint);
24
24
  const createBundleInitReturnObj = () => {
25
- const entry = globalThis.module.exports;
26
- return entry;
25
+ const ret = globalThis.module.exports ?? globalThis.__bundle__holder;
26
+ globalThis.module.exports = null;
27
+ globalThis.__bundle__holder = null;
28
+ return ret;
27
29
  };
28
30
  const i18nResource = new I18nResource();
29
31
  let release = '';
@@ -39,6 +41,8 @@ export async function createNativeApp(config) {
39
41
  const manifestUrl = template.manifest[`/${sourceURL}`];
40
42
  if (manifestUrl)
41
43
  sourceURL = manifestUrl;
44
+ globalThis.module.exports = null;
45
+ globalThis.__bundle__holder = null;
42
46
  import(
43
47
  /* webpackIgnore: true */
44
48
  sourceURL).catch(callback).then(async () => {
@@ -49,6 +53,8 @@ export async function createNativeApp(config) {
49
53
  const manifestUrl = template.manifest[`/${sourceURL}`];
50
54
  if (manifestUrl)
51
55
  sourceURL = manifestUrl;
56
+ globalThis.module.exports = null;
57
+ globalThis.__bundle__holder = null;
52
58
  importScripts(sourceURL);
53
59
  return createBundleInitReturnObj();
54
60
  },
@@ -15,15 +15,19 @@ const { prepareMainThreadAPIs } = await import(
15
15
  /* webpackFetchPriority: "high" */
16
16
  '@lynx-js/web-mainthread-apis');
17
17
  function loadScriptSync(url) {
18
+ globalThis.module.exports = null;
18
19
  importScripts(url);
19
- return globalThis.module?.exports;
20
+ const ret = globalThis.module?.exports;
21
+ return ret;
20
22
  }
21
23
  function loadScript(url) {
22
24
  return new Promise((resolve, reject) => {
23
25
  fetch(url)
24
26
  .then(() => {
27
+ globalThis.module.exports = null;
25
28
  importScripts(url);
26
- resolve(globalThis.module?.exports);
29
+ const ret = globalThis.module?.exports;
30
+ resolve(ret);
27
31
  }).catch(reject);
28
32
  });
29
33
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-worker-runtime-canary",
3
- "version": "0.16.0-canary-20250830-d7d0b9b9",
3
+ "version": "0.16.1-canary-20250910-c24b6021",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -22,10 +22,10 @@
22
22
  "README.md"
23
23
  ],
24
24
  "dependencies": {
25
- "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4-canary-20250830-d7d0b9b9",
26
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.16.0-canary-20250830-d7d0b9b9",
27
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.16.0-canary-20250830-d7d0b9b9",
28
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.16.0-canary-20250830-d7d0b9b9"
25
+ "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4",
26
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.16.1-canary-20250910-c24b6021",
27
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.16.1-canary-20250910-c24b6021",
28
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.16.1-canary-20250910-c24b6021"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@lynx-js/lynx-core": "0.1.3"