@lynx-js/web-core-canary 0.17.1 → 0.17.2-canary-20250928-19f823aa

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,22 @@
1
1
  # @lynx-js/web-core
2
2
 
3
+ ## 0.17.2-canary-20250928124601-19f823aae4ce6d99c173d28d157b7514ae8453cf
4
+
5
+ ### Patch Changes
6
+
7
+ - feat: support load bts chunk from remote address ([#1834](https://github.com/lynx-family/lynx-stack/pull/1834))
8
+
9
+ - re-support chunk splitting
10
+ - support lynx.requireModule with a json file
11
+ - support lynx.requireModule, lynx.requireModuleAsync with a remote url
12
+ - support to add a breakpoint in chrome after reloading the web page
13
+
14
+ - Updated dependencies [[`a35a245`](https://github.com/lynx-family/lynx-stack/commit/a35a2452e5355bda3c475f9a750a86085e0cf56a)]:
15
+ - @lynx-js/web-worker-runtime@0.17.2-canary-20250928124601-19f823aae4ce6d99c173d28d157b7514ae8453cf
16
+ - @lynx-js/web-constants@0.17.2-canary-20250928124601-19f823aae4ce6d99c173d28d157b7514ae8453cf
17
+ - @lynx-js/web-mainthread-apis@0.17.2-canary-20250928124601-19f823aae4ce6d99c173d28d157b7514ae8453cf
18
+ - @lynx-js/web-worker-rpc@0.17.2-canary-20250928124601-19f823aae4ce6d99c173d28d157b7514ae8453cf
19
+
3
20
  ## 0.17.1
4
21
 
5
22
  ### Patch Changes
@@ -313,25 +330,25 @@
313
330
  lynxView.initI18nResources = [
314
331
  {
315
332
  options: {
316
- locale: 'en',
317
- channel: '1',
318
- fallback_url: '',
333
+ locale: "en",
334
+ channel: "1",
335
+ fallback_url: "",
319
336
  },
320
337
  resource: {
321
- hello: 'hello',
322
- lynx: 'lynx web platform1',
338
+ hello: "hello",
339
+ lynx: "lynx web platform1",
323
340
  },
324
341
  },
325
342
  ];
326
- lynxView.addEventListener('i18nResourceMissed', (e) => {
343
+ lynxView.addEventListener("i18nResourceMissed", (e) => {
327
344
  console.log(e);
328
345
  });
329
346
 
330
347
  // mts
331
348
  _I18nResourceTranslation({
332
- locale: 'en',
333
- channel: '1',
334
- fallback_url: '',
349
+ locale: "en",
350
+ channel: "1",
351
+ fallback_url: "",
335
352
  });
336
353
  ```
337
354
 
@@ -739,8 +756,8 @@
739
756
  }
740
757
  };`,
741
758
  ],
742
- { type: 'text/javascript' },
743
- ),
759
+ { type: "text/javascript" }
760
+ )
744
761
  ),
745
762
  };
746
763
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -855,8 +872,8 @@
855
872
  };
856
873
  };`,
857
874
  ],
858
- { type: 'text/javascript' },
859
- ),
875
+ { type: "text/javascript" }
876
+ )
860
877
  );
861
878
 
862
879
  const color_methods = URL.createObjectURL(
@@ -871,8 +888,8 @@
871
888
  };
872
889
  };`,
873
890
  ],
874
- { type: 'text/javascript' },
875
- ),
891
+ { type: "text/javascript" }
892
+ )
876
893
  );
877
894
 
878
895
  lynxView.napiModuleMap = {
@@ -889,7 +906,7 @@
889
906
 
890
907
  ```js
891
908
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
892
- if (name === 'getColor' && moduleName === 'color_methods') {
909
+ if (name === "getColor" && moduleName === "color_methods") {
893
910
  return data.color;
894
911
  }
895
912
  };
@@ -968,8 +985,8 @@
968
985
  }
969
986
  };`,
970
987
  ],
971
- { type: 'text/javascript' },
972
- ),
988
+ { type: "text/javascript" }
989
+ )
973
990
  );
974
991
  ```
975
992
 
@@ -981,7 +998,7 @@
981
998
 
982
999
  ```js
983
1000
  lynxView.onNativeModulesCall = (name, data, callback) => {
984
- if (name === 'getColor') {
1001
+ if (name === "getColor") {
985
1002
  callback(data.color);
986
1003
  }
987
1004
  };
@@ -991,7 +1008,7 @@
991
1008
 
992
1009
  ```js
993
1010
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
994
- if (name === 'getColor' && moduleName === 'bridge') {
1011
+ if (name === "getColor" && moduleName === "bridge") {
995
1012
  return data.color;
996
1013
  }
997
1014
  };
@@ -1349,7 +1366,7 @@
1349
1366
  This flag changes the behaviour of cascading. It provide a way to do this
1350
1367
 
1351
1368
  ```jsx
1352
- <view class='class-a class-b' />;
1369
+ <view class="class-a class-b" />
1353
1370
  ```
1354
1371
 
1355
1372
  The class-b will override (cascading) styles of class-a.
@@ -1449,11 +1466,11 @@
1449
1466
  There is also a simple way to use this feature
1450
1467
 
1451
1468
  ```javascript
1452
- import { LynxCard } from '@lynx-js/web-core';
1453
- import { loadElement } from '@lynx-js/web-elements/lazy';
1454
- import '@lynx-js/web-elements/index.css';
1455
- import '@lynx-js/web-core/index.css';
1456
- import './index.css';
1469
+ import { LynxCard } from "@lynx-js/web-core";
1470
+ import { loadElement } from "@lynx-js/web-elements/lazy";
1471
+ import "@lynx-js/web-elements/index.css";
1472
+ import "@lynx-js/web-core/index.css";
1473
+ import "./index.css";
1457
1474
 
1458
1475
  const lynxcard = new LynxCard({
1459
1476
  ...beforeConfigs,
@@ -19,7 +19,7 @@ export function createTemplateLoader(customTemplateLoader, markTimingInternal) {
19
19
  : (await (await fetch(url, {
20
20
  method: 'GET',
21
21
  })).json());
22
- const decodedTemplate = await generateTemplate(template, createJsModuleUrl);
22
+ const decodedTemplate = await generateTemplate(template, createJsModuleUrl, encodeURIComponent(url));
23
23
  resolve(decodedTemplate);
24
24
  }
25
25
  catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-canary",
3
- "version": "0.17.1",
3
+ "version": "0.17.2-canary-20250928-19f823aa",
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.17.1",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.17.1",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.17.1",
31
- "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.17.1"
28
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.17.2-canary-20250928-19f823aa",
29
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.17.2-canary-20250928-19f823aa",
30
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.17.2-canary-20250928-19f823aa",
31
+ "@lynx-js/web-worker-runtime": "npm:@lynx-js/web-worker-runtime-canary@0.17.2-canary-20250928-19f823aa"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@lynx-js/lynx-core": "0.1.3",