@lynx-js/web-constants 0.14.2 → 0.15.1

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,35 @@
1
1
  # @lynx-js/web-constants
2
2
 
3
+ ## 0.15.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @lynx-js/web-worker-rpc@0.15.1
9
+
10
+ ## 0.15.0
11
+
12
+ ### Minor Changes
13
+
14
+ - refactor: move exposure system to web-core ([#1254](https://github.com/lynx-family/lynx-stack/pull/1254))
15
+
16
+ **THIS IS A BREAKING CHANGE**
17
+
18
+ **You'll need to upgrade your @lynx-js/web-elements to >= 0.8.0**
19
+
20
+ For SSR and better performance, we moved the lynx's exposure system from web-element to web-core.
21
+
22
+ Before this commit, we create Intersection observers by creating HTMLElements.
23
+
24
+ After this commit, we will create such Intersection observers after dom stabled.
25
+
26
+ Also, the setInterval for exposure has been removed, now we use an on time lazy timer for such features.
27
+
28
+ ### Patch Changes
29
+
30
+ - Updated dependencies []:
31
+ - @lynx-js/web-worker-rpc@0.15.0
32
+
3
33
  ## 0.14.2
4
34
 
5
35
  ### Patch Changes
@@ -27,6 +27,7 @@ export declare const BackgroundThreadStartEndpoint: import("@lynx-js/web-worker-
27
27
  export declare const reportErrorEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[Error, unknown, string]>;
28
28
  export declare const flushElementTreeEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[operations: (string | number)[]], void>;
29
29
  export declare const callLepusMethodEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[name: string, data: unknown], void>;
30
+ export declare const multiThreadExposureChangedEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsyncVoid<[string[]]>;
30
31
  export declare const invokeUIMethodEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[type: IdentifierType, identifier: string, component_id: string, method: string, params: object, root_unique_id: number | undefined], InvokeCallbackRes>;
31
32
  export declare const setNativePropsEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[type: IdentifierType, identifier: string, component_id: string, first_only: boolean, native_props: object, root_unique_id: number | undefined], void>;
32
33
  export declare const nativeModulesCallEndpoint: import("@lynx-js/web-worker-rpc/dist/RpcEndpoint.js").RpcEndpointAsync<[name: string, data: Cloneable, moduleName: string], any>;
package/dist/endpoints.js CHANGED
@@ -18,6 +18,7 @@ export const BackgroundThreadStartEndpoint = createRpcEndpoint('start', false, t
18
18
  export const reportErrorEndpoint = createRpcEndpoint('reportError', false, false);
19
19
  export const flushElementTreeEndpoint = createRpcEndpoint('flushElementTree', false, true);
20
20
  export const callLepusMethodEndpoint = createRpcEndpoint('callLepusMethod', false, true);
21
+ export const multiThreadExposureChangedEndpoint = createRpcEndpoint('multiThreadExposureChangedEndpoint', false, false);
21
22
  export const invokeUIMethodEndpoint = createRpcEndpoint('__invokeUIMethod', false, true);
22
23
  export const setNativePropsEndpoint = createRpcEndpoint('__setNativeProps', false, true);
23
24
  export const nativeModulesCallEndpoint = createRpcEndpoint('nativeModulesCall', false, true);
@@ -16,7 +16,10 @@ export interface OneInfo {
16
16
  export interface StyleInfo {
17
17
  [cssId: string]: OneInfo;
18
18
  }
19
- export interface CssInJsInfo {
19
+ /**
20
+ * CSS Info for Old Generation CSS System
21
+ */
22
+ export interface CssOGInfo {
20
23
  [cssId: string]: {
21
24
  [className: string]: [string, string][];
22
25
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-constants",
3
- "version": "0.14.2",
3
+ "version": "0.15.1",
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.14.2"
26
+ "@lynx-js/web-worker-rpc": "0.15.1"
27
27
  },
28
28
  "devDependencies": {
29
- "@lynx-js/offscreen-document": "0.1.2"
29
+ "@lynx-js/offscreen-document": "0.1.3"
30
30
  }
31
31
  }