@lynx-js/web-worker-runtime-canary 0.15.7-canary-20250826-bc7f532b → 0.15.8-canary-20250826-1777bb4b

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,15 +1,24 @@
1
1
  # @lynx-js/web-worker-runtime
2
2
 
3
- ## 0.15.7-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
3
+ ## 0.15.8-canary-20250826060301-1777bb4bc1d031b0d30d5e2c079fc04cd72e402e
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @lynx-js/web-constants@0.15.8-canary-20250826060301-1777bb4bc1d031b0d30d5e2c079fc04cd72e402e
9
+ - @lynx-js/web-mainthread-apis@0.15.8-canary-20250826060301-1777bb4bc1d031b0d30d5e2c079fc04cd72e402e
10
+ - @lynx-js/web-worker-rpc@0.15.8-canary-20250826060301-1777bb4bc1d031b0d30d5e2c079fc04cd72e402e
11
+
12
+ ## 0.15.7
4
13
 
5
14
  ### Patch Changes
6
15
 
7
16
  - fix: globalThis is never accessible in MTS ([#1531](https://github.com/lynx-family/lynx-stack/pull/1531))
8
17
 
9
18
  - Updated dependencies [[`70863fb`](https://github.com/lynx-family/lynx-stack/commit/70863fbc311d8885ebda40855668097b0631f521)]:
10
- - @lynx-js/web-mainthread-apis@0.15.7-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
11
- - @lynx-js/web-constants@0.15.7-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
12
- - @lynx-js/web-worker-rpc@0.15.7-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
19
+ - @lynx-js/web-mainthread-apis@0.15.7
20
+ - @lynx-js/web-constants@0.15.7
21
+ - @lynx-js/web-worker-rpc@0.15.7
13
22
 
14
23
  ## 0.15.6
15
24
 
package/dist/index.js CHANGED
@@ -2,11 +2,15 @@
2
2
  // Licensed under the Apache License Version 2.0 that can be found in the
3
3
  // LICENSE file in the root directory of this source tree.
4
4
  import { startBackgroundThread } from './backgroundThread/index.js';
5
- import { startMainThreadWorker } from './mainThread/startMainThread.js';
6
- globalThis.onmessage = (ev) => {
5
+ globalThis.onmessage = async (ev) => {
7
6
  const { mode, toPeerThread, toUIThread } = ev
8
7
  .data;
9
8
  if (mode === 'main') {
9
+ const { startMainThreadWorker } = await import(
10
+ /* webpackChunkName: "web-worker-runtime-main-thread" */
11
+ /* webpackMode: "lazy-once" */
12
+ /* webpackPreload: true */
13
+ './mainThread/startMainThread.js');
10
14
  startMainThreadWorker(toUIThread, toPeerThread);
11
15
  }
12
16
  else {
@@ -7,8 +7,14 @@ import { createMarkTimingInternal } from './crossThreadHandlers/createMainthread
7
7
  import { OffscreenDocument } from '@lynx-js/offscreen-document/webworker';
8
8
  import { _onEvent } from '@lynx-js/offscreen-document/webworker';
9
9
  import { registerUpdateDataHandler } from './crossThreadHandlers/registerUpdateDataHandler.js';
10
+ const { prepareMainThreadAPIs } = await import(
11
+ /* webpackChunkName: "web-core-main-thread-apis" */
12
+ /* webpackMode: "lazy-once" */
13
+ /* webpackPreload: true */
14
+ /* webpackPrefetch: true */
15
+ /* webpackFetchPriority: "high" */
16
+ '@lynx-js/web-mainthread-apis');
10
17
  export async function startMainThreadWorker(uiThreadPort, backgroundThreadPort) {
11
- const { prepareMainThreadAPIs } = await import('@lynx-js/web-mainthread-apis');
12
18
  const uiThreadRpc = new Rpc(uiThreadPort, 'main-to-ui');
13
19
  const backgroundThreadRpc = new Rpc(backgroundThreadPort, 'main-to-bg');
14
20
  const { markTimingInternal, flushMarkTimingInternal } = createMarkTimingInternal(backgroundThreadRpc);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-worker-runtime-canary",
3
- "version": "0.15.7-canary-20250826-bc7f532b",
3
+ "version": "0.15.8-canary-20250826-1777bb4b",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -23,9 +23,9 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.3",
26
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.7-canary-20250826-bc7f532b",
27
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.7-canary-20250826-bc7f532b",
28
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.7-canary-20250826-bc7f532b"
26
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.8-canary-20250826-1777bb4b",
27
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.8-canary-20250826-1777bb4b",
28
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.8-canary-20250826-1777bb4b"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@lynx-js/lynx-core": "0.1.3"