@lynx-js/web-worker-runtime-canary 0.15.7-canary-20250826-bc7f532b → 0.15.7

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,15 +1,15 @@
1
1
  # @lynx-js/web-worker-runtime
2
2
 
3
- ## 0.15.7-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
3
+ ## 0.15.7
4
4
 
5
5
  ### Patch Changes
6
6
 
7
7
  - fix: globalThis is never accessible in MTS ([#1531](https://github.com/lynx-family/lynx-stack/pull/1531))
8
8
 
9
9
  - Updated dependencies [[`70863fb`](https://github.com/lynx-family/lynx-stack/commit/70863fbc311d8885ebda40855668097b0631f521)]:
10
- - @lynx-js/web-mainthread-apis@0.15.7-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
11
- - @lynx-js/web-constants@0.15.7-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
12
- - @lynx-js/web-worker-rpc@0.15.7-canary-20250826035202-bc7f532b048be97bae08b8b66137faaa7bc6deee
10
+ - @lynx-js/web-mainthread-apis@0.15.7
11
+ - @lynx-js/web-constants@0.15.7
12
+ - @lynx-js/web-worker-rpc@0.15.7
13
13
 
14
14
  ## 0.15.6
15
15
 
@@ -98,14 +98,14 @@
98
98
  Usage:
99
99
 
100
100
  ```ts
101
- import { pluginWebPlatform } from "@lynx-js/web-platform-rsbuild-plugin";
102
- import { defineConfig } from "@rsbuild/core";
101
+ import { pluginWebPlatform } from '@lynx-js/web-platform-rsbuild-plugin';
102
+ import { defineConfig } from '@rsbuild/core';
103
103
 
104
104
  export default defineConfig({
105
105
  plugins: [
106
106
  pluginWebPlatform({
107
107
  // replace with your actual napi-modules file path
108
- napiModulesPath: path.resolve(__dirname, "./index.napi-modules.ts"),
108
+ napiModulesPath: path.resolve(__dirname, './index.napi-modules.ts'),
109
109
  }),
110
110
  ],
111
111
  });
@@ -116,10 +116,10 @@
116
116
  ```ts
117
117
  // index.napi-modules.ts
118
118
  export default {
119
- custom_module: function (NapiModules, NapiModulesCall) {
119
+ custom_module: function(NapiModules, NapiModulesCall) {
120
120
  return {
121
121
  async test(name) {
122
- console.log("CustomModule", NapiModules, NapiModulesCall);
122
+ console.log('CustomModule', NapiModules, NapiModulesCall);
123
123
  },
124
124
  };
125
125
  },
@@ -171,25 +171,25 @@
171
171
  lynxView.initI18nResources = [
172
172
  {
173
173
  options: {
174
- locale: "en",
175
- channel: "1",
176
- fallback_url: "",
174
+ locale: 'en',
175
+ channel: '1',
176
+ fallback_url: '',
177
177
  },
178
178
  resource: {
179
- hello: "hello",
180
- lynx: "lynx web platform1",
179
+ hello: 'hello',
180
+ lynx: 'lynx web platform1',
181
181
  },
182
182
  },
183
183
  ];
184
- lynxView.addEventListener("i18nResourceMissed", (e) => {
184
+ lynxView.addEventListener('i18nResourceMissed', (e) => {
185
185
  console.log(e);
186
186
  });
187
187
 
188
188
  // mts
189
189
  _I18nResourceTranslation({
190
- locale: "en",
191
- channel: "1",
192
- fallback_url: "",
190
+ locale: 'en',
191
+ channel: '1',
192
+ fallback_url: '',
193
193
  });
194
194
  ```
195
195
 
@@ -439,8 +439,8 @@
439
439
  }
440
440
  };`,
441
441
  ],
442
- { type: "text/javascript" }
443
- )
442
+ { type: 'text/javascript' },
443
+ ),
444
444
  ),
445
445
  };
446
446
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -530,8 +530,8 @@
530
530
  };
531
531
  };`,
532
532
  ],
533
- { type: "text/javascript" }
534
- )
533
+ { type: 'text/javascript' },
534
+ ),
535
535
  );
536
536
 
537
537
  const color_methods = URL.createObjectURL(
@@ -546,8 +546,8 @@
546
546
  };
547
547
  };`,
548
548
  ],
549
- { type: "text/javascript" }
550
- )
549
+ { type: 'text/javascript' },
550
+ ),
551
551
  );
552
552
 
553
553
  lynxView.napiModuleMap = {
@@ -564,7 +564,7 @@
564
564
 
565
565
  ```js
566
566
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
567
- if (name === "getColor" && moduleName === "color_methods") {
567
+ if (name === 'getColor' && moduleName === 'color_methods') {
568
568
  return data.color;
569
569
  }
570
570
  };
@@ -619,8 +619,8 @@
619
619
  }
620
620
  };`,
621
621
  ],
622
- { type: "text/javascript" }
623
- )
622
+ { type: 'text/javascript' },
623
+ ),
624
624
  );
625
625
  ```
626
626
 
@@ -632,7 +632,7 @@
632
632
 
633
633
  ```js
634
634
  lynxView.onNativeModulesCall = (name, data, callback) => {
635
- if (name === "getColor") {
635
+ if (name === 'getColor') {
636
636
  callback(data.color);
637
637
  }
638
638
  };
@@ -642,7 +642,7 @@
642
642
 
643
643
  ```js
644
644
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
645
- if (name === "getColor" && moduleName === "bridge") {
645
+ if (name === 'getColor' && moduleName === 'bridge') {
646
646
  return data.color;
647
647
  }
648
648
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-worker-runtime-canary",
3
- "version": "0.15.7-canary-20250826-bc7f532b",
3
+ "version": "0.15.7",
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.7-canary-20250826-bc7f532b",
27
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.7-canary-20250826-bc7f532b",
28
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.7-canary-20250826-bc7f532b"
26
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.15.7",
27
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.15.7",
28
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.15.7"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@lynx-js/lynx-core": "0.1.3"