@lynx-js/web-core-server-canary 0.15.6-canary-20250815-7e47c4a7 → 0.15.6

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,6 +1,6 @@
1
1
  # @lynx-js/web-core-server
2
2
 
3
- ## 0.15.6-canary-20250815124729-7e47c4a777441a6782bc8aac31298b9af34b6f3e
3
+ ## 0.15.6
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -79,25 +79,25 @@
79
79
  lynxView.initI18nResources = [
80
80
  {
81
81
  options: {
82
- locale: "en",
83
- channel: "1",
84
- fallback_url: "",
82
+ locale: 'en',
83
+ channel: '1',
84
+ fallback_url: '',
85
85
  },
86
86
  resource: {
87
- hello: "hello",
88
- lynx: "lynx web platform1",
87
+ hello: 'hello',
88
+ lynx: 'lynx web platform1',
89
89
  },
90
90
  },
91
91
  ];
92
- lynxView.addEventListener("i18nResourceMissed", (e) => {
92
+ lynxView.addEventListener('i18nResourceMissed', (e) => {
93
93
  console.log(e);
94
94
  });
95
95
 
96
96
  // mts
97
97
  _I18nResourceTranslation({
98
- locale: "en",
99
- channel: "1",
100
- fallback_url: "",
98
+ locale: 'en',
99
+ channel: '1',
100
+ fallback_url: '',
101
101
  });
102
102
  ```
103
103
 
package/dist/index.js CHANGED
@@ -855,7 +855,7 @@ function registerCallLepusMethodHandler(rpc, runtime) {
855
855
  function registerGetCustomSectionHandler(rpc, customSections) {
856
856
  rpc.registerHandler(getCustomSectionsEndpoint, (key)=>customSections[key]?.content);
857
857
  }
858
- function createMainThreadLynx(config) {
858
+ function createMainThreadLynx(config, SystemInfo) {
859
859
  return {
860
860
  getJSContext () {
861
861
  return config.jsContext;
@@ -870,7 +870,8 @@ function createMainThreadLynx(config) {
870
870
  getCustomSectionSync (key) {
871
871
  return config.customSections[key]?.content;
872
872
  },
873
- markPipelineTiming: config.callbacks.markTiming
873
+ markPipelineTiming: config.callbacks.markTiming,
874
+ SystemInfo
874
875
  };
875
876
  }
876
877
  const referenceTypes = async ()=>WebAssembly.validate(new Uint8Array([
@@ -1796,6 +1797,10 @@ function createMainThreadGlobalThis(config) {
1796
1797
  };
1797
1798
  let release = '';
1798
1799
  const isCSSOG = !pageConfig.enableCSSSelector;
1800
+ const SystemInfo = {
1801
+ ...systemInfo,
1802
+ ...config.browserConfig
1803
+ };
1799
1804
  const mtsGlobalThis = {
1800
1805
  __ElementFromBinary,
1801
1806
  __GetTemplateParts: rootDom.querySelectorAll ? __GetTemplateParts : void 0,
@@ -1855,11 +1860,8 @@ function createMainThreadGlobalThis(config) {
1855
1860
  __LoadLepusChunk,
1856
1861
  __GetPageElement,
1857
1862
  __globalProps: globalProps,
1858
- SystemInfo: {
1859
- ...systemInfo,
1860
- ...config.browserConfig
1861
- },
1862
- lynx: createMainThreadLynx(config),
1863
+ SystemInfo,
1864
+ lynx: createMainThreadLynx(config, SystemInfo),
1863
1865
  _ReportError: (err, _)=>callbacks._ReportError(err, _, release),
1864
1866
  _SetSourceMapRelease: (errInfo)=>release = errInfo?.release,
1865
1867
  __OnLifecycleEvent: callbacks.__OnLifecycleEvent,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-core-server-canary",
3
- "version": "0.15.6-canary-20250815-7e47c4a7",
3
+ "version": "0.15.6",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -24,10 +24,10 @@
24
24
  ],
25
25
  "devDependencies": {
26
26
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.3",
27
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.6-canary-20250815-7e47c4a7",
27
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.6",
28
28
  "@lynx-js/web-elements-template": "npm:@lynx-js/web-elements-template-canary@0.8.4",
29
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.6-canary-20250815-7e47c4a7",
30
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.6-canary-20250815-7e47c4a7"
29
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.6",
30
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.6"
31
31
  },
32
32
  "scripts": {
33
33
  "build": "rslib build",