@lynx-js/web-core-canary 0.15.8-canary-20250826-1777bb4b → 0.15.8-canary-20250826-bb53d9a0

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-core
2
2
 
3
- ## 0.15.8-canary-20250826060301-1777bb4bc1d031b0d30d5e2c079fc04cd72e402e
3
+ ## 0.15.8-canary-20250826112003-bb53d9a035f607e7c89952098d4ed77877a2e3c1
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -8,11 +8,13 @@
8
8
 
9
9
  The default rendering mode is "all-on-ui". Therefore the preheating for "multi-thread" will be removed.
10
10
 
11
- - Updated dependencies []:
12
- - @lynx-js/web-constants@0.15.8-canary-20250826060301-1777bb4bc1d031b0d30d5e2c079fc04cd72e402e
13
- - @lynx-js/web-mainthread-apis@0.15.8-canary-20250826060301-1777bb4bc1d031b0d30d5e2c079fc04cd72e402e
14
- - @lynx-js/web-worker-rpc@0.15.8-canary-20250826060301-1777bb4bc1d031b0d30d5e2c079fc04cd72e402e
15
- - @lynx-js/web-worker-runtime@0.15.8-canary-20250826060301-1777bb4bc1d031b0d30d5e2c079fc04cd72e402e
11
+ - fix: the SystemInfo in bts should be assigned to the globalThis ([#1599](https://github.com/lynx-family/lynx-stack/pull/1599))
12
+
13
+ - Updated dependencies [[`bb53d9a`](https://github.com/lynx-family/lynx-stack/commit/bb53d9a035f607e7c89952098d4ed77877a2e3c1)]:
14
+ - @lynx-js/web-mainthread-apis@0.15.8-canary-20250826112003-bb53d9a035f607e7c89952098d4ed77877a2e3c1
15
+ - @lynx-js/web-worker-runtime@0.15.8-canary-20250826112003-bb53d9a035f607e7c89952098d4ed77877a2e3c1
16
+ - @lynx-js/web-constants@0.15.8-canary-20250826112003-bb53d9a035f607e7c89952098d4ed77877a2e3c1
17
+ - @lynx-js/web-worker-rpc@0.15.8-canary-20250826112003-bb53d9a035f607e7c89952098d4ed77877a2e3c1
16
18
 
17
19
  ## 0.15.7
18
20
 
@@ -1,8 +1,9 @@
1
+ import { type BrowserConfig } from '@lynx-js/web-constants';
1
2
  import { Rpc } from '@lynx-js/web-worker-rpc';
2
3
  interface LynxViewRpc {
3
4
  mainThreadRpc: Rpc;
4
5
  backgroundRpc: Rpc;
5
6
  terminateWorkers: () => void;
6
7
  }
7
- export declare function bootWorkers(lynxGroupId: number | undefined, allOnUI?: boolean): LynxViewRpc;
8
+ export declare function bootWorkers(lynxGroupId: number | undefined, allOnUI: boolean, browserConfig: BrowserConfig): LynxViewRpc;
8
9
  export {};
@@ -1,10 +1,11 @@
1
1
  // Copyright 2023 The Lynx Authors. All rights reserved.
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
+ import { systemInfo } from '@lynx-js/web-constants';
4
5
  import { Rpc } from '@lynx-js/web-worker-rpc';
5
6
  const backgroundWorkerContextCount = [];
6
7
  const contextIdToBackgroundWorker = [];
7
- export function bootWorkers(lynxGroupId, allOnUI) {
8
+ export function bootWorkers(lynxGroupId, allOnUI, browserConfig) {
8
9
  let curMainWorker;
9
10
  if (allOnUI) {
10
11
  curMainWorker = createUIChannel();
@@ -12,7 +13,7 @@ export function bootWorkers(lynxGroupId, allOnUI) {
12
13
  else {
13
14
  curMainWorker = createMainWorker();
14
15
  }
15
- const curBackgroundWorker = createBackgroundWorker(lynxGroupId, curMainWorker.channelMainThreadWithBackground);
16
+ const curBackgroundWorker = createBackgroundWorker(lynxGroupId, curMainWorker.channelMainThreadWithBackground, browserConfig);
16
17
  if (lynxGroupId !== undefined) {
17
18
  if (backgroundWorkerContextCount[lynxGroupId]) {
18
19
  backgroundWorkerContextCount[lynxGroupId]++;
@@ -69,7 +70,7 @@ function createMainWorker() {
69
70
  channelMainThreadWithBackground,
70
71
  };
71
72
  }
72
- function createBackgroundWorker(lynxGroupId, channelMainThreadWithBackground) {
73
+ function createBackgroundWorker(lynxGroupId, channelMainThreadWithBackground, browserConfig) {
73
74
  const channelToBackground = new MessageChannel();
74
75
  let backgroundThreadWorker;
75
76
  if (lynxGroupId) {
@@ -84,6 +85,7 @@ function createBackgroundWorker(lynxGroupId, channelMainThreadWithBackground) {
84
85
  mode: 'background',
85
86
  toUIThread: channelToBackground.port2,
86
87
  toPeerThread: channelMainThreadWithBackground.port2,
88
+ systemInfo: { ...systemInfo, ...browserConfig },
87
89
  };
88
90
  backgroundThreadWorker.postMessage(backgroundThreadMessage, [
89
91
  channelToBackground.port2,
@@ -12,7 +12,7 @@ import { createRenderAllOnUI } from './createRenderAllOnUI.js';
12
12
  export function startUIThread(templateUrl, configs, shadowRoot, lynxGroupId, threadStrategy, callbacks, ssr) {
13
13
  const createLynxStartTiming = performance.now() + performance.timeOrigin;
14
14
  const allOnUI = threadStrategy === 'all-on-ui';
15
- const { mainThreadRpc, backgroundRpc, terminateWorkers, } = bootWorkers(lynxGroupId, allOnUI);
15
+ const { mainThreadRpc, backgroundRpc, terminateWorkers, } = bootWorkers(lynxGroupId, allOnUI, configs.browserConfig);
16
16
  const { markTiming, sendGlobalEvent, updateDataBackground, updateI18nResourceBackground, } = startBackground(backgroundRpc, shadowRoot, callbacks);
17
17
  const cacheMarkTimings = {
18
18
  records: [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-canary",
3
- "version": "0.15.8-canary-20250826-1777bb4b",
3
+ "version": "0.15.8-canary-20250826-bb53d9a0",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -25,10 +25,10 @@
25
25
  ],
26
26
  "dependencies": {
27
27
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.3",
28
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.8-canary-20250826-1777bb4b",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.8-canary-20250826-1777bb4b",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.8-canary-20250826-1777bb4b",
31
- "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.15.8-canary-20250826-1777bb4b"
28
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.8-canary-20250826-bb53d9a0",
29
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.8-canary-20250826-bb53d9a0",
30
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.8-canary-20250826-bb53d9a0",
31
+ "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.15.8-canary-20250826-bb53d9a0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@lynx-js/lynx-core": "0.1.3",