@lynx-js/web-worker-runtime-canary 0.15.5-canary-20250809-c8ce6aa3 → 0.15.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,6 +1,6 @@
1
1
  # @lynx-js/web-worker-runtime
2
2
 
3
- ## 0.15.5-canary-20250809042721-c8ce6aa33abf42a7954e1e345b3a36febe76d048
3
+ ## 0.15.5
4
4
 
5
5
  ### Patch Changes
6
6
 
@@ -11,9 +11,9 @@
11
11
  - Implemented `nativeApp.getPathInfo()`
12
12
 
13
13
  - Updated dependencies [[`29434ae`](https://github.com/lynx-family/lynx-stack/commit/29434aec853f14242f521316429cf07a93b8c371), [`fb7096b`](https://github.com/lynx-family/lynx-stack/commit/fb7096bb3c79166cd619a407095b8206eccb7918)]:
14
- - @lynx-js/web-mainthread-apis@0.15.5-canary-20250809042721-c8ce6aa33abf42a7954e1e345b3a36febe76d048
15
- - @lynx-js/web-constants@0.15.5-canary-20250809042721-c8ce6aa33abf42a7954e1e345b3a36febe76d048
16
- - @lynx-js/web-worker-rpc@0.15.5-canary-20250809042721-c8ce6aa33abf42a7954e1e345b3a36febe76d048
14
+ - @lynx-js/web-mainthread-apis@0.15.5
15
+ - @lynx-js/web-constants@0.15.5
16
+ - @lynx-js/web-worker-rpc@0.15.5
17
17
 
18
18
  ## 0.15.4
19
19
 
@@ -78,14 +78,14 @@
78
78
  Usage:
79
79
 
80
80
  ```ts
81
- import { pluginWebPlatform } from "@lynx-js/web-platform-rsbuild-plugin";
82
- import { defineConfig } from "@rsbuild/core";
81
+ import { pluginWebPlatform } from '@lynx-js/web-platform-rsbuild-plugin';
82
+ import { defineConfig } from '@rsbuild/core';
83
83
 
84
84
  export default defineConfig({
85
85
  plugins: [
86
86
  pluginWebPlatform({
87
87
  // replace with your actual napi-modules file path
88
- napiModulesPath: path.resolve(__dirname, "./index.napi-modules.ts"),
88
+ napiModulesPath: path.resolve(__dirname, './index.napi-modules.ts'),
89
89
  }),
90
90
  ],
91
91
  });
@@ -96,10 +96,10 @@
96
96
  ```ts
97
97
  // index.napi-modules.ts
98
98
  export default {
99
- custom_module: function (NapiModules, NapiModulesCall) {
99
+ custom_module: function(NapiModules, NapiModulesCall) {
100
100
  return {
101
101
  async test(name) {
102
- console.log("CustomModule", NapiModules, NapiModulesCall);
102
+ console.log('CustomModule', NapiModules, NapiModulesCall);
103
103
  },
104
104
  };
105
105
  },
@@ -151,25 +151,25 @@
151
151
  lynxView.initI18nResources = [
152
152
  {
153
153
  options: {
154
- locale: "en",
155
- channel: "1",
156
- fallback_url: "",
154
+ locale: 'en',
155
+ channel: '1',
156
+ fallback_url: '',
157
157
  },
158
158
  resource: {
159
- hello: "hello",
160
- lynx: "lynx web platform1",
159
+ hello: 'hello',
160
+ lynx: 'lynx web platform1',
161
161
  },
162
162
  },
163
163
  ];
164
- lynxView.addEventListener("i18nResourceMissed", (e) => {
164
+ lynxView.addEventListener('i18nResourceMissed', (e) => {
165
165
  console.log(e);
166
166
  });
167
167
 
168
168
  // mts
169
169
  _I18nResourceTranslation({
170
- locale: "en",
171
- channel: "1",
172
- fallback_url: "",
170
+ locale: 'en',
171
+ channel: '1',
172
+ fallback_url: '',
173
173
  });
174
174
  ```
175
175
 
@@ -419,8 +419,8 @@
419
419
  }
420
420
  };`,
421
421
  ],
422
- { type: "text/javascript" }
423
- )
422
+ { type: 'text/javascript' },
423
+ ),
424
424
  ),
425
425
  };
426
426
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -510,8 +510,8 @@
510
510
  };
511
511
  };`,
512
512
  ],
513
- { type: "text/javascript" }
514
- )
513
+ { type: 'text/javascript' },
514
+ ),
515
515
  );
516
516
 
517
517
  const color_methods = URL.createObjectURL(
@@ -526,8 +526,8 @@
526
526
  };
527
527
  };`,
528
528
  ],
529
- { type: "text/javascript" }
530
- )
529
+ { type: 'text/javascript' },
530
+ ),
531
531
  );
532
532
 
533
533
  lynxView.napiModuleMap = {
@@ -544,7 +544,7 @@
544
544
 
545
545
  ```js
546
546
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
547
- if (name === "getColor" && moduleName === "color_methods") {
547
+ if (name === 'getColor' && moduleName === 'color_methods') {
548
548
  return data.color;
549
549
  }
550
550
  };
@@ -599,8 +599,8 @@
599
599
  }
600
600
  };`,
601
601
  ],
602
- { type: "text/javascript" }
603
- )
602
+ { type: 'text/javascript' },
603
+ ),
604
604
  );
605
605
  ```
606
606
 
@@ -612,7 +612,7 @@
612
612
 
613
613
  ```js
614
614
  lynxView.onNativeModulesCall = (name, data, callback) => {
615
- if (name === "getColor") {
615
+ if (name === 'getColor') {
616
616
  callback(data.color);
617
617
  }
618
618
  };
@@ -622,7 +622,7 @@
622
622
 
623
623
  ```js
624
624
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
625
- if (name === "getColor" && moduleName === "bridge") {
625
+ if (name === 'getColor' && moduleName === 'bridge') {
626
626
  return data.color;
627
627
  }
628
628
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-worker-runtime-canary",
3
- "version": "0.15.5-canary-20250809-c8ce6aa3",
3
+ "version": "0.15.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.3",
26
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.5-canary-20250809-c8ce6aa3",
27
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.5-canary-20250809-c8ce6aa3",
28
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.5-canary-20250809-c8ce6aa3"
26
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.5",
27
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.5",
28
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.5"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@lynx-js/lynx-core": "0.1.2"