@lynx-js/web-worker-runtime-canary 0.15.6-canary-20250815-405a9170 → 0.15.6

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.15.6-canary-20250815130727-405a9170442ae32603b7687549b49ab4b34aff92
3
+ ## 0.15.6
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - Updated dependencies [[`405a917`](https://github.com/lynx-family/lynx-stack/commit/405a9170442ae32603b7687549b49ab4b34aff92), [`b8f89e2`](https://github.com/lynx-family/lynx-stack/commit/b8f89e25f106a15ba9d70f2df06dfb684cbb6633), [`f76aae9`](https://github.com/lynx-family/lynx-stack/commit/f76aae9ea06abdc7022ba508d22f9f4eb00864e8), [`b8b060b`](https://github.com/lynx-family/lynx-stack/commit/b8b060b9bef722bb47bd90c33fab3922160c711d), [`d8381a5`](https://github.com/lynx-family/lynx-stack/commit/d8381a58d12af6424cab4955617251e798bdc9f1), [`214898b`](https://github.com/lynx-family/lynx-stack/commit/214898bb9c74fc9b44e68cb220a4c02485102ce2), [`ab8cee4`](https://github.com/lynx-family/lynx-stack/commit/ab8cee4bab384fa905c045c4b4b93e5d4a95d57f)]:
8
- - @lynx-js/web-mainthread-apis@0.15.6-canary-20250815130727-405a9170442ae32603b7687549b49ab4b34aff92
9
- - @lynx-js/web-constants@0.15.6-canary-20250815130727-405a9170442ae32603b7687549b49ab4b34aff92
10
- - @lynx-js/web-worker-rpc@0.15.6-canary-20250815130727-405a9170442ae32603b7687549b49ab4b34aff92
8
+ - @lynx-js/web-mainthread-apis@0.15.6
9
+ - @lynx-js/web-constants@0.15.6
10
+ - @lynx-js/web-worker-rpc@0.15.6
11
11
 
12
12
  ## 0.15.5
13
13
 
@@ -87,14 +87,14 @@
87
87
  Usage:
88
88
 
89
89
  ```ts
90
- import { pluginWebPlatform } from "@lynx-js/web-platform-rsbuild-plugin";
91
- import { defineConfig } from "@rsbuild/core";
90
+ import { pluginWebPlatform } from '@lynx-js/web-platform-rsbuild-plugin';
91
+ import { defineConfig } from '@rsbuild/core';
92
92
 
93
93
  export default defineConfig({
94
94
  plugins: [
95
95
  pluginWebPlatform({
96
96
  // replace with your actual napi-modules file path
97
- napiModulesPath: path.resolve(__dirname, "./index.napi-modules.ts"),
97
+ napiModulesPath: path.resolve(__dirname, './index.napi-modules.ts'),
98
98
  }),
99
99
  ],
100
100
  });
@@ -105,10 +105,10 @@
105
105
  ```ts
106
106
  // index.napi-modules.ts
107
107
  export default {
108
- custom_module: function (NapiModules, NapiModulesCall) {
108
+ custom_module: function(NapiModules, NapiModulesCall) {
109
109
  return {
110
110
  async test(name) {
111
- console.log("CustomModule", NapiModules, NapiModulesCall);
111
+ console.log('CustomModule', NapiModules, NapiModulesCall);
112
112
  },
113
113
  };
114
114
  },
@@ -160,25 +160,25 @@
160
160
  lynxView.initI18nResources = [
161
161
  {
162
162
  options: {
163
- locale: "en",
164
- channel: "1",
165
- fallback_url: "",
163
+ locale: 'en',
164
+ channel: '1',
165
+ fallback_url: '',
166
166
  },
167
167
  resource: {
168
- hello: "hello",
169
- lynx: "lynx web platform1",
168
+ hello: 'hello',
169
+ lynx: 'lynx web platform1',
170
170
  },
171
171
  },
172
172
  ];
173
- lynxView.addEventListener("i18nResourceMissed", (e) => {
173
+ lynxView.addEventListener('i18nResourceMissed', (e) => {
174
174
  console.log(e);
175
175
  });
176
176
 
177
177
  // mts
178
178
  _I18nResourceTranslation({
179
- locale: "en",
180
- channel: "1",
181
- fallback_url: "",
179
+ locale: 'en',
180
+ channel: '1',
181
+ fallback_url: '',
182
182
  });
183
183
  ```
184
184
 
@@ -428,8 +428,8 @@
428
428
  }
429
429
  };`,
430
430
  ],
431
- { type: "text/javascript" }
432
- )
431
+ { type: 'text/javascript' },
432
+ ),
433
433
  ),
434
434
  };
435
435
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -519,8 +519,8 @@
519
519
  };
520
520
  };`,
521
521
  ],
522
- { type: "text/javascript" }
523
- )
522
+ { type: 'text/javascript' },
523
+ ),
524
524
  );
525
525
 
526
526
  const color_methods = URL.createObjectURL(
@@ -535,8 +535,8 @@
535
535
  };
536
536
  };`,
537
537
  ],
538
- { type: "text/javascript" }
539
- )
538
+ { type: 'text/javascript' },
539
+ ),
540
540
  );
541
541
 
542
542
  lynxView.napiModuleMap = {
@@ -553,7 +553,7 @@
553
553
 
554
554
  ```js
555
555
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
556
- if (name === "getColor" && moduleName === "color_methods") {
556
+ if (name === 'getColor' && moduleName === 'color_methods') {
557
557
  return data.color;
558
558
  }
559
559
  };
@@ -608,8 +608,8 @@
608
608
  }
609
609
  };`,
610
610
  ],
611
- { type: "text/javascript" }
612
- )
611
+ { type: 'text/javascript' },
612
+ ),
613
613
  );
614
614
  ```
615
615
 
@@ -621,7 +621,7 @@
621
621
 
622
622
  ```js
623
623
  lynxView.onNativeModulesCall = (name, data, callback) => {
624
- if (name === "getColor") {
624
+ if (name === 'getColor') {
625
625
  callback(data.color);
626
626
  }
627
627
  };
@@ -631,7 +631,7 @@
631
631
 
632
632
  ```js
633
633
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
634
- if (name === "getColor" && moduleName === "bridge") {
634
+ if (name === 'getColor' && moduleName === 'bridge') {
635
635
  return data.color;
636
636
  }
637
637
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-worker-runtime-canary",
3
- "version": "0.15.6-canary-20250815-405a9170",
3
+ "version": "0.15.6",
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.6-canary-20250815-405a9170",
27
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.6-canary-20250815-405a9170",
28
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.6-canary-20250815-405a9170"
26
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.6",
27
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.6",
28
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.6"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@lynx-js/lynx-core": "0.1.3"