@lynx-js/web-worker-runtime-canary 0.15.8-canary-20250826-1777bb4b → 0.15.8-canary-20250826-d65ef500
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,13 +1,15 @@
|
|
|
1
1
|
# @lynx-js/web-worker-runtime
|
|
2
2
|
|
|
3
|
-
## 0.15.8-canary-
|
|
3
|
+
## 0.15.8-canary-20250826132859-d65ef500d012f108f150e9a1a3f3e399e25bfde4
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
- @lynx-js/web-
|
|
7
|
+
- fix: the SystemInfo in bts should be assigned to the globalThis ([#1599](https://github.com/lynx-family/lynx-stack/pull/1599))
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`bb53d9a`](https://github.com/lynx-family/lynx-stack/commit/bb53d9a035f607e7c89952098d4ed77877a2e3c1)]:
|
|
10
|
+
- @lynx-js/web-mainthread-apis@0.15.8-canary-20250826132859-d65ef500d012f108f150e9a1a3f3e399e25bfde4
|
|
11
|
+
- @lynx-js/web-constants@0.15.8-canary-20250826132859-d65ef500d012f108f150e9a1a3f3e399e25bfde4
|
|
12
|
+
- @lynx-js/web-worker-rpc@0.15.8-canary-20250826132859-d65ef500d012f108f150e9a1a3f3e399e25bfde4
|
|
11
13
|
|
|
12
14
|
## 0.15.7
|
|
13
15
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { callLepusMethodEndpoint, setNativePropsEndpoint, triggerComponentEventEndpoint, selectComponentEndpoint,
|
|
1
|
+
import { callLepusMethodEndpoint, setNativePropsEndpoint, triggerComponentEventEndpoint, selectComponentEndpoint, I18nResource, reportErrorEndpoint, globalDisallowedVars, } from '@lynx-js/web-constants';
|
|
2
2
|
import { createInvokeUIMethod } from './crossThreadHandlers/createInvokeUIMethod.js';
|
|
3
3
|
import { registerPublicComponentEventHandler } from './crossThreadHandlers/registerPublicComponentEventHandler.js';
|
|
4
4
|
import { registerGlobalExposureEventHandler } from './crossThreadHandlers/registerGlobalExposureEventHandler.js';
|
|
@@ -14,7 +14,7 @@ import { createGetPathInfo } from './crossThreadHandlers/createGetPathInfo.js';
|
|
|
14
14
|
let nativeAppCount = 0;
|
|
15
15
|
const sharedData = {};
|
|
16
16
|
export async function createNativeApp(config) {
|
|
17
|
-
const { mainThreadRpc, uiThreadRpc, template, nativeModulesMap, timingSystem,
|
|
17
|
+
const { mainThreadRpc, uiThreadRpc, template, nativeModulesMap, timingSystem, } = config;
|
|
18
18
|
const performanceApis = createPerformanceApis(timingSystem);
|
|
19
19
|
const callLepusMethod = mainThreadRpc.createCallbackify(callLepusMethodEndpoint, 2);
|
|
20
20
|
const setNativeProps = uiThreadRpc.createCall(setNativePropsEndpoint);
|
|
@@ -43,9 +43,6 @@ export async function createNativeApp(config) {
|
|
|
43
43
|
return Reflect.ownKeys(target).filter((key) => key !== 'globalThis');
|
|
44
44
|
},
|
|
45
45
|
});
|
|
46
|
-
Object.assign(lynxCoreInject.tt, {
|
|
47
|
-
SystemInfo: { ...systemInfo, ...browserConfig },
|
|
48
|
-
});
|
|
49
46
|
const ret = entry?.(lynxCoreInject.tt);
|
|
50
47
|
return ret;
|
|
51
48
|
},
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3,8 +3,11 @@
|
|
|
3
3
|
// LICENSE file in the root directory of this source tree.
|
|
4
4
|
import { startBackgroundThread } from './backgroundThread/index.js';
|
|
5
5
|
globalThis.onmessage = async (ev) => {
|
|
6
|
-
const { mode, toPeerThread, toUIThread } = ev
|
|
6
|
+
const { mode, toPeerThread, toUIThread, systemInfo } = ev
|
|
7
7
|
.data;
|
|
8
|
+
if (!globalThis.SystemInfo) {
|
|
9
|
+
globalThis.SystemInfo = systemInfo;
|
|
10
|
+
}
|
|
8
11
|
if (mode === 'main') {
|
|
9
12
|
const { startMainThreadWorker } = await import(
|
|
10
13
|
/* webpackChunkName: "web-worker-runtime-main-thread" */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-worker-runtime-canary",
|
|
3
|
-
"version": "0.15.8-canary-20250826-
|
|
3
|
+
"version": "0.15.8-canary-20250826-d65ef500",
|
|
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.8-canary-20250826-
|
|
27
|
-
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.8-canary-20250826-
|
|
28
|
-
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.8-canary-20250826-
|
|
26
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.8-canary-20250826-d65ef500",
|
|
27
|
+
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.8-canary-20250826-d65ef500",
|
|
28
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.8-canary-20250826-d65ef500"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@lynx-js/lynx-core": "0.1.3"
|