@lynx-js/web-worker-runtime-canary 0.19.6-canary-20260123-444f83bb → 0.19.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +29 -29
  2. package/package.json +4 -4
package/CHANGELOG.md CHANGED
@@ -1,15 +1,15 @@
1
1
  # @lynx-js/web-worker-runtime
2
2
 
3
- ## 0.19.6-canary-20260123091955-444f83bb390520f0c669bc522a70fb6d5709d63a
3
+ ## 0.19.6
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - feat: support lynx.reload() ([#2127](https://github.com/lynx-family/lynx-stack/pull/2127))
8
8
 
9
9
  - Updated dependencies [[`179f984`](https://github.com/lynx-family/lynx-stack/commit/179f9844adf00ff4b2cd450ffb943649441c87d3), [`f7133c1`](https://github.com/lynx-family/lynx-stack/commit/f7133c137f094063e991dfa0e993ea92177aa173), [`6c2b51a`](https://github.com/lynx-family/lynx-stack/commit/6c2b51a661ae244eb40671f63f29ee971e084ed4), [`556fe9f`](https://github.com/lynx-family/lynx-stack/commit/556fe9fded90945a7926093897288d5302c314d3), [`5b589ab`](https://github.com/lynx-family/lynx-stack/commit/5b589ab53b01a8e2357d3ccbb159edab004086d3)]:
10
- - @lynx-js/web-constants@0.19.6-canary-20260123091955-444f83bb390520f0c669bc522a70fb6d5709d63a
11
- - @lynx-js/web-mainthread-apis@0.19.6-canary-20260123091955-444f83bb390520f0c669bc522a70fb6d5709d63a
12
- - @lynx-js/web-worker-rpc@0.19.6-canary-20260123091955-444f83bb390520f0c669bc522a70fb6d5709d63a
10
+ - @lynx-js/web-constants@0.19.6
11
+ - @lynx-js/web-mainthread-apis@0.19.6
12
+ - @lynx-js/web-worker-rpc@0.19.6
13
13
 
14
14
  ## 0.19.5
15
15
 
@@ -291,14 +291,14 @@
291
291
  Usage:
292
292
 
293
293
  ```ts
294
- import { pluginWebPlatform } from "@lynx-js/web-platform-rsbuild-plugin";
295
- import { defineConfig } from "@rsbuild/core";
294
+ import { pluginWebPlatform } from '@lynx-js/web-platform-rsbuild-plugin';
295
+ import { defineConfig } from '@rsbuild/core';
296
296
 
297
297
  export default defineConfig({
298
298
  plugins: [
299
299
  pluginWebPlatform({
300
300
  // replace with your actual napi-modules file path
301
- napiModulesPath: path.resolve(__dirname, "./index.napi-modules.ts"),
301
+ napiModulesPath: path.resolve(__dirname, './index.napi-modules.ts'),
302
302
  }),
303
303
  ],
304
304
  });
@@ -309,10 +309,10 @@
309
309
  ```ts
310
310
  // index.napi-modules.ts
311
311
  export default {
312
- custom_module: function (NapiModules, NapiModulesCall) {
312
+ custom_module: function(NapiModules, NapiModulesCall) {
313
313
  return {
314
314
  async test(name) {
315
- console.log("CustomModule", NapiModules, NapiModulesCall);
315
+ console.log('CustomModule', NapiModules, NapiModulesCall);
316
316
  },
317
317
  };
318
318
  },
@@ -364,25 +364,25 @@
364
364
  lynxView.initI18nResources = [
365
365
  {
366
366
  options: {
367
- locale: "en",
368
- channel: "1",
369
- fallback_url: "",
367
+ locale: 'en',
368
+ channel: '1',
369
+ fallback_url: '',
370
370
  },
371
371
  resource: {
372
- hello: "hello",
373
- lynx: "lynx web platform1",
372
+ hello: 'hello',
373
+ lynx: 'lynx web platform1',
374
374
  },
375
375
  },
376
376
  ];
377
- lynxView.addEventListener("i18nResourceMissed", (e) => {
377
+ lynxView.addEventListener('i18nResourceMissed', (e) => {
378
378
  console.log(e);
379
379
  });
380
380
 
381
381
  // mts
382
382
  _I18nResourceTranslation({
383
- locale: "en",
384
- channel: "1",
385
- fallback_url: "",
383
+ locale: 'en',
384
+ channel: '1',
385
+ fallback_url: '',
386
386
  });
387
387
  ```
388
388
 
@@ -632,8 +632,8 @@
632
632
  }
633
633
  };`,
634
634
  ],
635
- { type: "text/javascript" }
636
- )
635
+ { type: 'text/javascript' },
636
+ ),
637
637
  ),
638
638
  };
639
639
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -723,8 +723,8 @@
723
723
  };
724
724
  };`,
725
725
  ],
726
- { type: "text/javascript" }
727
- )
726
+ { type: 'text/javascript' },
727
+ ),
728
728
  );
729
729
 
730
730
  const color_methods = URL.createObjectURL(
@@ -739,8 +739,8 @@
739
739
  };
740
740
  };`,
741
741
  ],
742
- { type: "text/javascript" }
743
- )
742
+ { type: 'text/javascript' },
743
+ ),
744
744
  );
745
745
 
746
746
  lynxView.napiModuleMap = {
@@ -757,7 +757,7 @@
757
757
 
758
758
  ```js
759
759
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
760
- if (name === "getColor" && moduleName === "color_methods") {
760
+ if (name === 'getColor' && moduleName === 'color_methods') {
761
761
  return data.color;
762
762
  }
763
763
  };
@@ -812,8 +812,8 @@
812
812
  }
813
813
  };`,
814
814
  ],
815
- { type: "text/javascript" }
816
- )
815
+ { type: 'text/javascript' },
816
+ ),
817
817
  );
818
818
  ```
819
819
 
@@ -825,7 +825,7 @@
825
825
 
826
826
  ```js
827
827
  lynxView.onNativeModulesCall = (name, data, callback) => {
828
- if (name === "getColor") {
828
+ if (name === 'getColor') {
829
829
  callback(data.color);
830
830
  }
831
831
  };
@@ -835,7 +835,7 @@
835
835
 
836
836
  ```js
837
837
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
838
- if (name === "getColor" && moduleName === "bridge") {
838
+ if (name === 'getColor' && moduleName === 'bridge') {
839
839
  return data.color;
840
840
  }
841
841
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-worker-runtime-canary",
3
- "version": "0.19.6-canary-20260123-444f83bb",
3
+ "version": "0.19.6",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -23,9 +23,9 @@
23
23
  ],
24
24
  "dependencies": {
25
25
  "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4",
26
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.6-canary-20260123-444f83bb",
27
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.6-canary-20260123-444f83bb",
28
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.6-canary-20260123-444f83bb"
26
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.6",
27
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.6",
28
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.6"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@lynx-js/lynx-core": "0.1.3"