@lynx-js/web-worker-runtime-canary 0.19.0-canary-20251205-6400f87b → 0.19.0

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.0-canary-20251205074811-6400f87b9b0370e5fe53ce37711d45932fede695
3
+ ## 0.19.0
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies [[`40c3a1a`](https://github.com/lynx-family/lynx-stack/commit/40c3a1a0436701e46b505301c4ba66a8f68de7c0), [`46bd5ee`](https://github.com/lynx-family/lynx-stack/commit/46bd5eea324d0c8348f44b3d0b437e745411ab5c)]:
8
- - @lynx-js/web-mainthread-apis@0.19.0-canary-20251205074811-6400f87b9b0370e5fe53ce37711d45932fede695
9
- - @lynx-js/web-constants@0.19.0-canary-20251205074811-6400f87b9b0370e5fe53ce37711d45932fede695
10
- - @lynx-js/web-worker-rpc@0.19.0-canary-20251205074811-6400f87b9b0370e5fe53ce37711d45932fede695
8
+ - @lynx-js/web-mainthread-apis@0.19.0
9
+ - @lynx-js/web-constants@0.19.0
10
+ - @lynx-js/web-worker-rpc@0.19.0
11
11
 
12
12
  ## 0.18.4
13
13
 
@@ -235,14 +235,14 @@
235
235
  Usage:
236
236
 
237
237
  ```ts
238
- import { pluginWebPlatform } from "@lynx-js/web-platform-rsbuild-plugin";
239
- import { defineConfig } from "@rsbuild/core";
238
+ import { pluginWebPlatform } from '@lynx-js/web-platform-rsbuild-plugin';
239
+ import { defineConfig } from '@rsbuild/core';
240
240
 
241
241
  export default defineConfig({
242
242
  plugins: [
243
243
  pluginWebPlatform({
244
244
  // replace with your actual napi-modules file path
245
- napiModulesPath: path.resolve(__dirname, "./index.napi-modules.ts"),
245
+ napiModulesPath: path.resolve(__dirname, './index.napi-modules.ts'),
246
246
  }),
247
247
  ],
248
248
  });
@@ -253,10 +253,10 @@
253
253
  ```ts
254
254
  // index.napi-modules.ts
255
255
  export default {
256
- custom_module: function (NapiModules, NapiModulesCall) {
256
+ custom_module: function(NapiModules, NapiModulesCall) {
257
257
  return {
258
258
  async test(name) {
259
- console.log("CustomModule", NapiModules, NapiModulesCall);
259
+ console.log('CustomModule', NapiModules, NapiModulesCall);
260
260
  },
261
261
  };
262
262
  },
@@ -308,25 +308,25 @@
308
308
  lynxView.initI18nResources = [
309
309
  {
310
310
  options: {
311
- locale: "en",
312
- channel: "1",
313
- fallback_url: "",
311
+ locale: 'en',
312
+ channel: '1',
313
+ fallback_url: '',
314
314
  },
315
315
  resource: {
316
- hello: "hello",
317
- lynx: "lynx web platform1",
316
+ hello: 'hello',
317
+ lynx: 'lynx web platform1',
318
318
  },
319
319
  },
320
320
  ];
321
- lynxView.addEventListener("i18nResourceMissed", (e) => {
321
+ lynxView.addEventListener('i18nResourceMissed', (e) => {
322
322
  console.log(e);
323
323
  });
324
324
 
325
325
  // mts
326
326
  _I18nResourceTranslation({
327
- locale: "en",
328
- channel: "1",
329
- fallback_url: "",
327
+ locale: 'en',
328
+ channel: '1',
329
+ fallback_url: '',
330
330
  });
331
331
  ```
332
332
 
@@ -576,8 +576,8 @@
576
576
  }
577
577
  };`,
578
578
  ],
579
- { type: "text/javascript" }
580
- )
579
+ { type: 'text/javascript' },
580
+ ),
581
581
  ),
582
582
  };
583
583
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -667,8 +667,8 @@
667
667
  };
668
668
  };`,
669
669
  ],
670
- { type: "text/javascript" }
671
- )
670
+ { type: 'text/javascript' },
671
+ ),
672
672
  );
673
673
 
674
674
  const color_methods = URL.createObjectURL(
@@ -683,8 +683,8 @@
683
683
  };
684
684
  };`,
685
685
  ],
686
- { type: "text/javascript" }
687
- )
686
+ { type: 'text/javascript' },
687
+ ),
688
688
  );
689
689
 
690
690
  lynxView.napiModuleMap = {
@@ -701,7 +701,7 @@
701
701
 
702
702
  ```js
703
703
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
704
- if (name === "getColor" && moduleName === "color_methods") {
704
+ if (name === 'getColor' && moduleName === 'color_methods') {
705
705
  return data.color;
706
706
  }
707
707
  };
@@ -756,8 +756,8 @@
756
756
  }
757
757
  };`,
758
758
  ],
759
- { type: "text/javascript" }
760
- )
759
+ { type: 'text/javascript' },
760
+ ),
761
761
  );
762
762
  ```
763
763
 
@@ -769,7 +769,7 @@
769
769
 
770
770
  ```js
771
771
  lynxView.onNativeModulesCall = (name, data, callback) => {
772
- if (name === "getColor") {
772
+ if (name === 'getColor') {
773
773
  callback(data.color);
774
774
  }
775
775
  };
@@ -779,7 +779,7 @@
779
779
 
780
780
  ```js
781
781
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
782
- if (name === "getColor" && moduleName === "bridge") {
782
+ if (name === 'getColor' && moduleName === 'bridge') {
783
783
  return data.color;
784
784
  }
785
785
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-worker-runtime-canary",
3
- "version": "0.19.0-canary-20251205-6400f87b",
3
+ "version": "0.19.0",
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.0-canary-20251205-6400f87b",
27
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.0-canary-20251205-6400f87b",
28
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.0-canary-20251205-6400f87b"
26
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.0",
27
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.0",
28
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@lynx-js/lynx-core": "0.1.3"