@lynx-js/web-worker-runtime-canary 0.19.5-canary-20260111-9646114b → 0.19.5

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,13 +1,13 @@
1
1
  # @lynx-js/web-worker-runtime
2
2
 
3
- ## 0.19.5-canary-20260111163415-9646114ba965de25ef18230718c6df291f0ea479
3
+ ## 0.19.5
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies [[`a91173c`](https://github.com/lynx-family/lynx-stack/commit/a91173c986ce3f358f1c11c788ca46a0529c701d)]:
8
- - @lynx-js/web-worker-rpc@0.19.5-canary-20260111163415-9646114ba965de25ef18230718c6df291f0ea479
9
- - @lynx-js/web-constants@0.19.5-canary-20260111163415-9646114ba965de25ef18230718c6df291f0ea479
10
- - @lynx-js/web-mainthread-apis@0.19.5-canary-20260111163415-9646114ba965de25ef18230718c6df291f0ea479
8
+ - @lynx-js/web-worker-rpc@0.19.5
9
+ - @lynx-js/web-constants@0.19.5
10
+ - @lynx-js/web-mainthread-apis@0.19.5
11
11
 
12
12
  ## 0.19.4
13
13
 
@@ -280,14 +280,14 @@
280
280
  Usage:
281
281
 
282
282
  ```ts
283
- import { pluginWebPlatform } from "@lynx-js/web-platform-rsbuild-plugin";
284
- import { defineConfig } from "@rsbuild/core";
283
+ import { pluginWebPlatform } from '@lynx-js/web-platform-rsbuild-plugin';
284
+ import { defineConfig } from '@rsbuild/core';
285
285
 
286
286
  export default defineConfig({
287
287
  plugins: [
288
288
  pluginWebPlatform({
289
289
  // replace with your actual napi-modules file path
290
- napiModulesPath: path.resolve(__dirname, "./index.napi-modules.ts"),
290
+ napiModulesPath: path.resolve(__dirname, './index.napi-modules.ts'),
291
291
  }),
292
292
  ],
293
293
  });
@@ -298,10 +298,10 @@
298
298
  ```ts
299
299
  // index.napi-modules.ts
300
300
  export default {
301
- custom_module: function (NapiModules, NapiModulesCall) {
301
+ custom_module: function(NapiModules, NapiModulesCall) {
302
302
  return {
303
303
  async test(name) {
304
- console.log("CustomModule", NapiModules, NapiModulesCall);
304
+ console.log('CustomModule', NapiModules, NapiModulesCall);
305
305
  },
306
306
  };
307
307
  },
@@ -353,25 +353,25 @@
353
353
  lynxView.initI18nResources = [
354
354
  {
355
355
  options: {
356
- locale: "en",
357
- channel: "1",
358
- fallback_url: "",
356
+ locale: 'en',
357
+ channel: '1',
358
+ fallback_url: '',
359
359
  },
360
360
  resource: {
361
- hello: "hello",
362
- lynx: "lynx web platform1",
361
+ hello: 'hello',
362
+ lynx: 'lynx web platform1',
363
363
  },
364
364
  },
365
365
  ];
366
- lynxView.addEventListener("i18nResourceMissed", (e) => {
366
+ lynxView.addEventListener('i18nResourceMissed', (e) => {
367
367
  console.log(e);
368
368
  });
369
369
 
370
370
  // mts
371
371
  _I18nResourceTranslation({
372
- locale: "en",
373
- channel: "1",
374
- fallback_url: "",
372
+ locale: 'en',
373
+ channel: '1',
374
+ fallback_url: '',
375
375
  });
376
376
  ```
377
377
 
@@ -621,8 +621,8 @@
621
621
  }
622
622
  };`,
623
623
  ],
624
- { type: "text/javascript" }
625
- )
624
+ { type: 'text/javascript' },
625
+ ),
626
626
  ),
627
627
  };
628
628
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -712,8 +712,8 @@
712
712
  };
713
713
  };`,
714
714
  ],
715
- { type: "text/javascript" }
716
- )
715
+ { type: 'text/javascript' },
716
+ ),
717
717
  );
718
718
 
719
719
  const color_methods = URL.createObjectURL(
@@ -728,8 +728,8 @@
728
728
  };
729
729
  };`,
730
730
  ],
731
- { type: "text/javascript" }
732
- )
731
+ { type: 'text/javascript' },
732
+ ),
733
733
  );
734
734
 
735
735
  lynxView.napiModuleMap = {
@@ -746,7 +746,7 @@
746
746
 
747
747
  ```js
748
748
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
749
- if (name === "getColor" && moduleName === "color_methods") {
749
+ if (name === 'getColor' && moduleName === 'color_methods') {
750
750
  return data.color;
751
751
  }
752
752
  };
@@ -801,8 +801,8 @@
801
801
  }
802
802
  };`,
803
803
  ],
804
- { type: "text/javascript" }
805
- )
804
+ { type: 'text/javascript' },
805
+ ),
806
806
  );
807
807
  ```
808
808
 
@@ -814,7 +814,7 @@
814
814
 
815
815
  ```js
816
816
  lynxView.onNativeModulesCall = (name, data, callback) => {
817
- if (name === "getColor") {
817
+ if (name === 'getColor') {
818
818
  callback(data.color);
819
819
  }
820
820
  };
@@ -824,7 +824,7 @@
824
824
 
825
825
  ```js
826
826
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
827
- if (name === "getColor" && moduleName === "bridge") {
827
+ if (name === 'getColor' && moduleName === 'bridge') {
828
828
  return data.color;
829
829
  }
830
830
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-worker-runtime-canary",
3
- "version": "0.19.5-canary-20260111-9646114b",
3
+ "version": "0.19.5",
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.5-canary-20260111-9646114b",
27
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.5-canary-20260111-9646114b",
28
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.5-canary-20260111-9646114b"
26
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.5",
27
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.5",
28
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.5"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@lynx-js/lynx-core": "0.1.3"