@lynx-js/web-core-canary 0.19.2-canary-20251222-e9baa022 → 0.19.2-canary-20251222-c5da3b2e
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 +15 -5
- package/dist/apis/LynxView.d.ts +1 -1
- package/dist/apis/LynxView.js +4 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,16 +1,26 @@
|
|
|
1
1
|
# @lynx-js/web-core
|
|
2
2
|
|
|
3
|
-
## 0.19.2-canary-
|
|
3
|
+
## 0.19.2-canary-20251222040638-c5da3b2e8ffc0298bebb8014a84e7809bcf43ffd
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
+
- chore: mark the "multi-thread" deprecated ([#2030](https://github.com/lynx-family/lynx-stack/pull/2030))
|
|
8
|
+
|
|
9
|
+
**NOTICE This will be a breaking change in the future**
|
|
10
|
+
|
|
11
|
+
mark the thread strategy "multi-thread" as deprecated.
|
|
12
|
+
|
|
13
|
+
Please use "all-on-ui" instead. If you still want to use multi-thread mode, please try to use a cross-origin isolated iframe.
|
|
14
|
+
|
|
15
|
+
A console warning will be printed if `thread-strategy` is set to `multi-thread`.
|
|
16
|
+
|
|
7
17
|
- fix csp issue for mts realm ([#1998](https://github.com/lynx-family/lynx-stack/pull/1998))
|
|
8
18
|
|
|
9
19
|
- Updated dependencies []:
|
|
10
|
-
- @lynx-js/web-constants@0.19.2-canary-
|
|
11
|
-
- @lynx-js/web-mainthread-apis@0.19.2-canary-
|
|
12
|
-
- @lynx-js/web-worker-rpc@0.19.2-canary-
|
|
13
|
-
- @lynx-js/web-worker-runtime@0.19.2-canary-
|
|
20
|
+
- @lynx-js/web-constants@0.19.2-canary-20251222040638-c5da3b2e8ffc0298bebb8014a84e7809bcf43ffd
|
|
21
|
+
- @lynx-js/web-mainthread-apis@0.19.2-canary-20251222040638-c5da3b2e8ffc0298bebb8014a84e7809bcf43ffd
|
|
22
|
+
- @lynx-js/web-worker-rpc@0.19.2-canary-20251222040638-c5da3b2e8ffc0298bebb8014a84e7809bcf43ffd
|
|
23
|
+
- @lynx-js/web-worker-runtime@0.19.2-canary-20251222040638-c5da3b2e8ffc0298bebb8014a84e7809bcf43ffd
|
|
14
24
|
|
|
15
25
|
## 0.19.1
|
|
16
26
|
|
package/dist/apis/LynxView.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ export type INapiModulesCall = (name: string, data: any, moduleName: string, lyn
|
|
|
23
23
|
* @property {"false" | "true" | null} injectHeadLinks [optional] (attribute: "inject-head-links") @default true set it to "false" to disable injecting the <link href="" ref="stylesheet"> styles into shadowroot
|
|
24
24
|
* @property {string[]} injectStyleRules [optional] the css rules which will be injected into shadowroot. Each items will be inserted by `insertRule` method. @see https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule
|
|
25
25
|
* @property {number} lynxGroupId [optional] (attribute: "lynx-group-id") the background shared context id, which is used to share webworker between different lynx cards
|
|
26
|
-
* @property {"all-on-ui" | "multi-thread"} threadStrategy [optional] @default "multi-thread" (attribute: "thread-strategy") controls the thread strategy for current lynx view
|
|
27
26
|
* @property {(string)=>Promise<LynxTemplate>} customTemplateLoader [optional] the custom template loader, which is used to load the template
|
|
28
27
|
* @property {InitI18nResources} initI18nResources [optional] (attribute: "init-i18n-resources") the complete set of i18nResources that on the container side, which can be obtained synchronously by _I18nResourceTranslation
|
|
29
28
|
*
|
|
@@ -165,6 +164,7 @@ export declare class LynxView extends HTMLElement {
|
|
|
165
164
|
/**
|
|
166
165
|
* @param
|
|
167
166
|
* @property
|
|
167
|
+
* @deprecated multi-thread is deprecated, please use "all-on-ui" instead. If you still want to use multi-thread mode, please try to use a cross-origin isolated iframe.
|
|
168
168
|
*/
|
|
169
169
|
get threadStrategy(): 'all-on-ui' | 'multi-thread';
|
|
170
170
|
set threadStrategy(val: 'all-on-ui' | 'multi-thread');
|
package/dist/apis/LynxView.js
CHANGED
|
@@ -20,7 +20,6 @@ import { inShadowRootStyles, lynxDisposedAttribute, lynxTagAttribute, } from '@l
|
|
|
20
20
|
* @property {"false" | "true" | null} injectHeadLinks [optional] (attribute: "inject-head-links") @default true set it to "false" to disable injecting the <link href="" ref="stylesheet"> styles into shadowroot
|
|
21
21
|
* @property {string[]} injectStyleRules [optional] the css rules which will be injected into shadowroot. Each items will be inserted by `insertRule` method. @see https://developer.mozilla.org/docs/Web/API/CSSStyleSheet/insertRule
|
|
22
22
|
* @property {number} lynxGroupId [optional] (attribute: "lynx-group-id") the background shared context id, which is used to share webworker between different lynx cards
|
|
23
|
-
* @property {"all-on-ui" | "multi-thread"} threadStrategy [optional] @default "multi-thread" (attribute: "thread-strategy") controls the thread strategy for current lynx view
|
|
24
23
|
* @property {(string)=>Promise<LynxTemplate>} customTemplateLoader [optional] the custom template loader, which is used to load the template
|
|
25
24
|
* @property {InitI18nResources} initI18nResources [optional] (attribute: "init-i18n-resources") the complete set of i18nResources that on the container side, which can be obtained synchronously by _I18nResourceTranslation
|
|
26
25
|
*
|
|
@@ -284,6 +283,7 @@ export class LynxView extends HTMLElement {
|
|
|
284
283
|
/**
|
|
285
284
|
* @param
|
|
286
285
|
* @property
|
|
286
|
+
* @deprecated multi-thread is deprecated, please use "all-on-ui" instead. If you still want to use multi-thread mode, please try to use a cross-origin isolated iframe.
|
|
287
287
|
*/
|
|
288
288
|
get threadStrategy() {
|
|
289
289
|
// @ts-expect-error
|
|
@@ -362,6 +362,9 @@ export class LynxView extends HTMLElement {
|
|
|
362
362
|
}
|
|
363
363
|
const lynxGroupId = this.lynxGroupId;
|
|
364
364
|
const threadStrategy = (this.threadStrategy ?? 'all-on-ui');
|
|
365
|
+
if (threadStrategy === 'multi-thread') {
|
|
366
|
+
console.warn(`[LynxView] multi-thread strategy is deprecated, please use "all-on-ui" instead. If you still want to use multi-thread mode, please try to use a cross-origin isolated iframe.`);
|
|
367
|
+
}
|
|
365
368
|
const lynxView = createLynxView({
|
|
366
369
|
threadStrategy,
|
|
367
370
|
tagMap,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/web-core-canary",
|
|
3
|
-
"version": "0.19.2-canary-20251222-
|
|
3
|
+
"version": "0.19.2-canary-20251222-c5da3b2e",
|
|
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.4",
|
|
28
|
-
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.2-canary-20251222-
|
|
29
|
-
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.2-canary-20251222-
|
|
30
|
-
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.2-canary-20251222-
|
|
31
|
-
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.2-canary-20251222-
|
|
28
|
+
"@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.2-canary-20251222-c5da3b2e",
|
|
29
|
+
"@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.2-canary-20251222-c5da3b2e",
|
|
30
|
+
"@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.2-canary-20251222-c5da3b2e",
|
|
31
|
+
"@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.19.2-canary-20251222-c5da3b2e"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@lynx-js/lynx-core": "0.1.3",
|