@lynx-js/web-worker-runtime-canary 0.19.1-canary-20251212-9c715ffe → 0.19.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 +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.1-canary-20251212100312-9c715ffe5ee3eb738b473010f1b8151583fb9124
3
+ ## 0.19.1
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies [[`f7256d5`](https://github.com/lynx-family/lynx-stack/commit/f7256d5bd920b2f6c0cadab44455585c35621b35)]:
8
- - @lynx-js/web-mainthread-apis@0.19.1-canary-20251212100312-9c715ffe5ee3eb738b473010f1b8151583fb9124
9
- - @lynx-js/web-constants@0.19.1-canary-20251212100312-9c715ffe5ee3eb738b473010f1b8151583fb9124
10
- - @lynx-js/web-worker-rpc@0.19.1-canary-20251212100312-9c715ffe5ee3eb738b473010f1b8151583fb9124
8
+ - @lynx-js/web-mainthread-apis@0.19.1
9
+ - @lynx-js/web-constants@0.19.1
10
+ - @lynx-js/web-worker-rpc@0.19.1
11
11
 
12
12
  ## 0.19.0
13
13
 
@@ -244,14 +244,14 @@
244
244
  Usage:
245
245
 
246
246
  ```ts
247
- import { pluginWebPlatform } from "@lynx-js/web-platform-rsbuild-plugin";
248
- import { defineConfig } from "@rsbuild/core";
247
+ import { pluginWebPlatform } from '@lynx-js/web-platform-rsbuild-plugin';
248
+ import { defineConfig } from '@rsbuild/core';
249
249
 
250
250
  export default defineConfig({
251
251
  plugins: [
252
252
  pluginWebPlatform({
253
253
  // replace with your actual napi-modules file path
254
- napiModulesPath: path.resolve(__dirname, "./index.napi-modules.ts"),
254
+ napiModulesPath: path.resolve(__dirname, './index.napi-modules.ts'),
255
255
  }),
256
256
  ],
257
257
  });
@@ -262,10 +262,10 @@
262
262
  ```ts
263
263
  // index.napi-modules.ts
264
264
  export default {
265
- custom_module: function (NapiModules, NapiModulesCall) {
265
+ custom_module: function(NapiModules, NapiModulesCall) {
266
266
  return {
267
267
  async test(name) {
268
- console.log("CustomModule", NapiModules, NapiModulesCall);
268
+ console.log('CustomModule', NapiModules, NapiModulesCall);
269
269
  },
270
270
  };
271
271
  },
@@ -317,25 +317,25 @@
317
317
  lynxView.initI18nResources = [
318
318
  {
319
319
  options: {
320
- locale: "en",
321
- channel: "1",
322
- fallback_url: "",
320
+ locale: 'en',
321
+ channel: '1',
322
+ fallback_url: '',
323
323
  },
324
324
  resource: {
325
- hello: "hello",
326
- lynx: "lynx web platform1",
325
+ hello: 'hello',
326
+ lynx: 'lynx web platform1',
327
327
  },
328
328
  },
329
329
  ];
330
- lynxView.addEventListener("i18nResourceMissed", (e) => {
330
+ lynxView.addEventListener('i18nResourceMissed', (e) => {
331
331
  console.log(e);
332
332
  });
333
333
 
334
334
  // mts
335
335
  _I18nResourceTranslation({
336
- locale: "en",
337
- channel: "1",
338
- fallback_url: "",
336
+ locale: 'en',
337
+ channel: '1',
338
+ fallback_url: '',
339
339
  });
340
340
  ```
341
341
 
@@ -585,8 +585,8 @@
585
585
  }
586
586
  };`,
587
587
  ],
588
- { type: "text/javascript" }
589
- )
588
+ { type: 'text/javascript' },
589
+ ),
590
590
  ),
591
591
  };
592
592
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -676,8 +676,8 @@
676
676
  };
677
677
  };`,
678
678
  ],
679
- { type: "text/javascript" }
680
- )
679
+ { type: 'text/javascript' },
680
+ ),
681
681
  );
682
682
 
683
683
  const color_methods = URL.createObjectURL(
@@ -692,8 +692,8 @@
692
692
  };
693
693
  };`,
694
694
  ],
695
- { type: "text/javascript" }
696
- )
695
+ { type: 'text/javascript' },
696
+ ),
697
697
  );
698
698
 
699
699
  lynxView.napiModuleMap = {
@@ -710,7 +710,7 @@
710
710
 
711
711
  ```js
712
712
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
713
- if (name === "getColor" && moduleName === "color_methods") {
713
+ if (name === 'getColor' && moduleName === 'color_methods') {
714
714
  return data.color;
715
715
  }
716
716
  };
@@ -765,8 +765,8 @@
765
765
  }
766
766
  };`,
767
767
  ],
768
- { type: "text/javascript" }
769
- )
768
+ { type: 'text/javascript' },
769
+ ),
770
770
  );
771
771
  ```
772
772
 
@@ -778,7 +778,7 @@
778
778
 
779
779
  ```js
780
780
  lynxView.onNativeModulesCall = (name, data, callback) => {
781
- if (name === "getColor") {
781
+ if (name === 'getColor') {
782
782
  callback(data.color);
783
783
  }
784
784
  };
@@ -788,7 +788,7 @@
788
788
 
789
789
  ```js
790
790
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
791
- if (name === "getColor" && moduleName === "bridge") {
791
+ if (name === 'getColor' && moduleName === 'bridge') {
792
792
  return data.color;
793
793
  }
794
794
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-worker-runtime-canary",
3
- "version": "0.19.1-canary-20251212-9c715ffe",
3
+ "version": "0.19.1",
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.1-canary-20251212-9c715ffe",
27
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.1-canary-20251212-9c715ffe",
28
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.1-canary-20251212-9c715ffe"
26
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.1",
27
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.1",
28
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@lynx-js/lynx-core": "0.1.3"