@lynx-js/web-constants-canary 0.16.1-canary-20250915-59a0d600 → 0.16.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +22 -22
  2. package/package.json +2 -2
package/CHANGELOG.md CHANGED
@@ -1,13 +1,13 @@
1
1
  # @lynx-js/web-constants
2
2
 
3
- ## 0.16.1-canary-20250915090032-59a0d600e111d2ae5136f5ee7cd768bc38de018b
3
+ ## 0.16.1
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - feat: supports lazy bundle. (This feature requires `@lynx-js/lynx-core >= 0.1.3`) ([#1235](https://github.com/lynx-family/lynx-stack/pull/1235))
8
8
 
9
9
  - Updated dependencies []:
10
- - @lynx-js/web-worker-rpc@0.16.1-canary-20250915090032-59a0d600e111d2ae5136f5ee7cd768bc38de018b
10
+ - @lynx-js/web-worker-rpc@0.16.1
11
11
 
12
12
  ## 0.16.0
13
13
 
@@ -187,25 +187,25 @@
187
187
  lynxView.initI18nResources = [
188
188
  {
189
189
  options: {
190
- locale: "en",
191
- channel: "1",
192
- fallback_url: "",
190
+ locale: 'en',
191
+ channel: '1',
192
+ fallback_url: '',
193
193
  },
194
194
  resource: {
195
- hello: "hello",
196
- lynx: "lynx web platform1",
195
+ hello: 'hello',
196
+ lynx: 'lynx web platform1',
197
197
  },
198
198
  },
199
199
  ];
200
- lynxView.addEventListener("i18nResourceMissed", (e) => {
200
+ lynxView.addEventListener('i18nResourceMissed', (e) => {
201
201
  console.log(e);
202
202
  });
203
203
 
204
204
  // mts
205
205
  _I18nResourceTranslation({
206
- locale: "en",
207
- channel: "1",
208
- fallback_url: "",
206
+ locale: 'en',
207
+ channel: '1',
208
+ fallback_url: '',
209
209
  });
210
210
  ```
211
211
 
@@ -444,8 +444,8 @@
444
444
  }
445
445
  };`,
446
446
  ],
447
- { type: "text/javascript" }
448
- )
447
+ { type: 'text/javascript' },
448
+ ),
449
449
  ),
450
450
  };
451
451
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -531,8 +531,8 @@
531
531
  };
532
532
  };`,
533
533
  ],
534
- { type: "text/javascript" }
535
- )
534
+ { type: 'text/javascript' },
535
+ ),
536
536
  );
537
537
 
538
538
  const color_methods = URL.createObjectURL(
@@ -547,8 +547,8 @@
547
547
  };
548
548
  };`,
549
549
  ],
550
- { type: "text/javascript" }
551
- )
550
+ { type: 'text/javascript' },
551
+ ),
552
552
  );
553
553
 
554
554
  lynxView.napiModuleMap = {
@@ -565,7 +565,7 @@
565
565
 
566
566
  ```js
567
567
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
568
- if (name === "getColor" && moduleName === "color_methods") {
568
+ if (name === 'getColor' && moduleName === 'color_methods') {
569
569
  return data.color;
570
570
  }
571
571
  };
@@ -629,8 +629,8 @@
629
629
  }
630
630
  };`,
631
631
  ],
632
- { type: "text/javascript" }
633
- )
632
+ { type: 'text/javascript' },
633
+ ),
634
634
  );
635
635
  ```
636
636
 
@@ -642,7 +642,7 @@
642
642
 
643
643
  ```js
644
644
  lynxView.onNativeModulesCall = (name, data, callback) => {
645
- if (name === "getColor") {
645
+ if (name === 'getColor') {
646
646
  callback(data.color);
647
647
  }
648
648
  };
@@ -652,7 +652,7 @@
652
652
 
653
653
  ```js
654
654
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
655
- if (name === "getColor" && moduleName === "bridge") {
655
+ if (name === 'getColor' && moduleName === 'bridge') {
656
656
  return data.color;
657
657
  }
658
658
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-constants-canary",
3
- "version": "0.16.1-canary-20250915-59a0d600",
3
+ "version": "0.16.1",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -23,7 +23,7 @@
23
23
  "**/*.css"
24
24
  ],
25
25
  "dependencies": {
26
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.16.1-canary-20250915-59a0d600"
26
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.16.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4"