@lynx-js/web-constants 0.13.2 → 0.13.3
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,19 @@
|
|
|
1
1
|
# @lynx-js/web-constants
|
|
2
2
|
|
|
3
|
+
## 0.13.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- refactor: code clean ([#897](https://github.com/lynx-family/lynx-stack/pull/897))
|
|
8
|
+
|
|
9
|
+
rename many internal apis to make logic be clear:
|
|
10
|
+
|
|
11
|
+
multi-thread: startMainWorker -> prepareMainThreadAPIs -> startMainThread -> createMainThreadContext(new MainThreadRuntime)
|
|
12
|
+
all-on-ui: prepareMainThreadAPIs -> startMainThread -> createMainThreadContext(new MainThreadRuntime)
|
|
13
|
+
|
|
14
|
+
- Updated dependencies []:
|
|
15
|
+
- @lynx-js/web-worker-rpc@0.13.3
|
|
16
|
+
|
|
3
17
|
## 0.13.2
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/dist/endpoints.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ExposureWorkerEvent, LynxCrossThreadEvent } from './types/EventType.js';
|
|
2
2
|
import type { Cloneable, CloneableObject } from './types/Cloneable.js';
|
|
3
|
-
import type {
|
|
3
|
+
import type { StartMainThreadContextConfig } from './types/MainThreadStartConfigs.js';
|
|
4
4
|
import type { IdentifierType, InvokeCallbackRes } from './types/NativeApp.js';
|
|
5
5
|
import type { LynxTemplate } from './types/LynxModule.js';
|
|
6
6
|
import type { NapiModulesMap } from './types/NapiModules.js';
|
|
@@ -19,7 +19,7 @@ export declare const publishEventEndpoint: import("@lynx-js/web-worker-rpc/dist/
|
|
|
19
19
|
}>]>;
|
|
20
20
|
export declare const postOffscreenEventEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[eventType: string, targetUniqueId: number, bubbles: boolean, unknown]>;
|
|
21
21
|
export declare const switchExposureServiceEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[boolean, boolean]>;
|
|
22
|
-
export declare const mainThreadStartEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[
|
|
22
|
+
export declare const mainThreadStartEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[StartMainThreadContextConfig]>;
|
|
23
23
|
export declare const updateDataEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[Cloneable, Record<string, string>], void>;
|
|
24
24
|
export declare const sendGlobalEventEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[string, Cloneable[] | undefined]>;
|
|
25
25
|
export declare const disposeEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[], void>;
|
|
@@ -3,7 +3,7 @@ import type { LynxTemplate } from './LynxModule.js';
|
|
|
3
3
|
import type { NapiModulesMap } from './NapiModules.js';
|
|
4
4
|
import type { NativeModulesMap } from './NativeModules.js';
|
|
5
5
|
import type { BrowserConfig } from './PageConfig.js';
|
|
6
|
-
export interface
|
|
6
|
+
export interface StartMainThreadContextConfig {
|
|
7
7
|
template: LynxTemplate;
|
|
8
8
|
initData: Cloneable;
|
|
9
9
|
globalProps: Cloneable;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-constants",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "",
|
|
6
6
|
"keywords": [],
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"**/*.css"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@lynx-js/web-worker-rpc": "0.13.
|
|
26
|
+
"@lynx-js/web-worker-rpc": "0.13.3"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
-
"@lynx-js/offscreen-document": "0.0.
|
|
29
|
+
"@lynx-js/offscreen-document": "0.0.4"
|
|
30
30
|
}
|
|
31
31
|
}
|