@lynx-js/web-worker-runtime-canary 0.19.2-canary-20251222-4d689a71 → 0.19.2

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.2-canary-20251222035207-4d689a7194cc9b431e6055e87792c1961a44af4d
3
+ ## 0.19.2
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies []:
8
- - @lynx-js/web-constants@0.19.2-canary-20251222035207-4d689a7194cc9b431e6055e87792c1961a44af4d
9
- - @lynx-js/web-mainthread-apis@0.19.2-canary-20251222035207-4d689a7194cc9b431e6055e87792c1961a44af4d
10
- - @lynx-js/web-worker-rpc@0.19.2-canary-20251222035207-4d689a7194cc9b431e6055e87792c1961a44af4d
8
+ - @lynx-js/web-constants@0.19.2
9
+ - @lynx-js/web-mainthread-apis@0.19.2
10
+ - @lynx-js/web-worker-rpc@0.19.2
11
11
 
12
12
  ## 0.19.1
13
13
 
@@ -253,14 +253,14 @@
253
253
  Usage:
254
254
 
255
255
  ```ts
256
- import { pluginWebPlatform } from "@lynx-js/web-platform-rsbuild-plugin";
257
- import { defineConfig } from "@rsbuild/core";
256
+ import { pluginWebPlatform } from '@lynx-js/web-platform-rsbuild-plugin';
257
+ import { defineConfig } from '@rsbuild/core';
258
258
 
259
259
  export default defineConfig({
260
260
  plugins: [
261
261
  pluginWebPlatform({
262
262
  // replace with your actual napi-modules file path
263
- napiModulesPath: path.resolve(__dirname, "./index.napi-modules.ts"),
263
+ napiModulesPath: path.resolve(__dirname, './index.napi-modules.ts'),
264
264
  }),
265
265
  ],
266
266
  });
@@ -271,10 +271,10 @@
271
271
  ```ts
272
272
  // index.napi-modules.ts
273
273
  export default {
274
- custom_module: function (NapiModules, NapiModulesCall) {
274
+ custom_module: function(NapiModules, NapiModulesCall) {
275
275
  return {
276
276
  async test(name) {
277
- console.log("CustomModule", NapiModules, NapiModulesCall);
277
+ console.log('CustomModule', NapiModules, NapiModulesCall);
278
278
  },
279
279
  };
280
280
  },
@@ -326,25 +326,25 @@
326
326
  lynxView.initI18nResources = [
327
327
  {
328
328
  options: {
329
- locale: "en",
330
- channel: "1",
331
- fallback_url: "",
329
+ locale: 'en',
330
+ channel: '1',
331
+ fallback_url: '',
332
332
  },
333
333
  resource: {
334
- hello: "hello",
335
- lynx: "lynx web platform1",
334
+ hello: 'hello',
335
+ lynx: 'lynx web platform1',
336
336
  },
337
337
  },
338
338
  ];
339
- lynxView.addEventListener("i18nResourceMissed", (e) => {
339
+ lynxView.addEventListener('i18nResourceMissed', (e) => {
340
340
  console.log(e);
341
341
  });
342
342
 
343
343
  // mts
344
344
  _I18nResourceTranslation({
345
- locale: "en",
346
- channel: "1",
347
- fallback_url: "",
345
+ locale: 'en',
346
+ channel: '1',
347
+ fallback_url: '',
348
348
  });
349
349
  ```
350
350
 
@@ -594,8 +594,8 @@
594
594
  }
595
595
  };`,
596
596
  ],
597
- { type: "text/javascript" }
598
- )
597
+ { type: 'text/javascript' },
598
+ ),
599
599
  ),
600
600
  };
601
601
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -685,8 +685,8 @@
685
685
  };
686
686
  };`,
687
687
  ],
688
- { type: "text/javascript" }
689
- )
688
+ { type: 'text/javascript' },
689
+ ),
690
690
  );
691
691
 
692
692
  const color_methods = URL.createObjectURL(
@@ -701,8 +701,8 @@
701
701
  };
702
702
  };`,
703
703
  ],
704
- { type: "text/javascript" }
705
- )
704
+ { type: 'text/javascript' },
705
+ ),
706
706
  );
707
707
 
708
708
  lynxView.napiModuleMap = {
@@ -719,7 +719,7 @@
719
719
 
720
720
  ```js
721
721
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
722
- if (name === "getColor" && moduleName === "color_methods") {
722
+ if (name === 'getColor' && moduleName === 'color_methods') {
723
723
  return data.color;
724
724
  }
725
725
  };
@@ -774,8 +774,8 @@
774
774
  }
775
775
  };`,
776
776
  ],
777
- { type: "text/javascript" }
778
- )
777
+ { type: 'text/javascript' },
778
+ ),
779
779
  );
780
780
  ```
781
781
 
@@ -787,7 +787,7 @@
787
787
 
788
788
  ```js
789
789
  lynxView.onNativeModulesCall = (name, data, callback) => {
790
- if (name === "getColor") {
790
+ if (name === 'getColor') {
791
791
  callback(data.color);
792
792
  }
793
793
  };
@@ -797,7 +797,7 @@
797
797
 
798
798
  ```js
799
799
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
800
- if (name === "getColor" && moduleName === "bridge") {
800
+ if (name === 'getColor' && moduleName === 'bridge') {
801
801
  return data.color;
802
802
  }
803
803
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-worker-runtime-canary",
3
- "version": "0.19.2-canary-20251222-4d689a71",
3
+ "version": "0.19.2",
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.2-canary-20251222-4d689a71",
27
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.2-canary-20251222-4d689a71",
28
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.2-canary-20251222-4d689a71"
26
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.2",
27
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.2",
28
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.2"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@lynx-js/lynx-core": "0.1.3"