@lynx-js/web-worker-runtime 0.15.2 → 0.15.4

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,5 +1,25 @@
1
1
  # @lynx-js/web-worker-runtime
2
2
 
3
+ ## 0.15.4
4
+
5
+ ### Patch Changes
6
+
7
+ - optimize IO for all-on-ui: make startMainThreadWorker async and defer import ([#1385](https://github.com/lynx-family/lynx-stack/pull/1385))
8
+
9
+ - Updated dependencies [[`22ca433`](https://github.com/lynx-family/lynx-stack/commit/22ca433eb96b39724c6eb47ce0a938d291bbdef2), [`143e481`](https://github.com/lynx-family/lynx-stack/commit/143e481b4353b3c3d2e8d9cc4f201442ca56f097)]:
10
+ - @lynx-js/web-mainthread-apis@0.15.4
11
+ - @lynx-js/web-constants@0.15.4
12
+ - @lynx-js/web-worker-rpc@0.15.4
13
+
14
+ ## 0.15.3
15
+
16
+ ### Patch Changes
17
+
18
+ - Updated dependencies [[`0da5ef0`](https://github.com/lynx-family/lynx-stack/commit/0da5ef03e41f20e9f8019c6dc03cb4a38ab18854)]:
19
+ - @lynx-js/web-constants@0.15.3
20
+ - @lynx-js/web-mainthread-apis@0.15.3
21
+ - @lynx-js/web-worker-rpc@0.15.3
22
+
3
23
  ## 0.15.2
4
24
 
5
25
  ### Patch Changes
@@ -1 +1 @@
1
- export declare function startMainThreadWorker(uiThreadPort: MessagePort, backgroundThreadPort: MessagePort): void;
1
+ export declare function startMainThreadWorker(uiThreadPort: MessagePort, backgroundThreadPort: MessagePort): Promise<void>;
@@ -7,8 +7,8 @@ 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('@lynx-js/web-mainthread-apis');
11
- export function startMainThreadWorker(uiThreadPort, backgroundThreadPort) {
10
+ export async function startMainThreadWorker(uiThreadPort, backgroundThreadPort) {
11
+ const { prepareMainThreadAPIs } = await import('@lynx-js/web-mainthread-apis');
12
12
  const uiThreadRpc = new Rpc(uiThreadPort, 'main-to-ui');
13
13
  const backgroundThreadRpc = new Rpc(backgroundThreadPort, 'main-to-bg');
14
14
  const { markTimingInternal, flushMarkTimingInternal } = createMarkTimingInternal(backgroundThreadRpc);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-worker-runtime",
3
- "version": "0.15.2",
3
+ "version": "0.15.4",
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": "0.1.3",
26
- "@lynx-js/web-constants": "0.15.2",
27
- "@lynx-js/web-mainthread-apis": "0.15.2",
28
- "@lynx-js/web-worker-rpc": "0.15.2"
26
+ "@lynx-js/web-constants": "0.15.4",
27
+ "@lynx-js/web-mainthread-apis": "0.15.4",
28
+ "@lynx-js/web-worker-rpc": "0.15.4"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@lynx-js/lynx-core": "0.1.2"