@lynx-js/web-worker-runtime-canary 0.16.0-canary-20250830-d7d0b9b9 → 0.16.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 +30 -30
  2. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @lynx-js/web-worker-runtime
2
2
 
3
- ## 0.16.0-canary-20250830063332-d7d0b9b94e219cd057c935d723775c82b10559a6
3
+ ## 0.16.0
4
4
 
5
5
  ### Minor Changes
6
6
 
@@ -19,10 +19,10 @@
19
19
  - fix: the SystemInfo in bts should be assigned to the globalThis ([#1599](https://github.com/lynx-family/lynx-stack/pull/1599))
20
20
 
21
21
  - Updated dependencies [[`1a32dd8`](https://github.com/lynx-family/lynx-stack/commit/1a32dd886fe736c95639f67028cf7685377d9769), [`bb53d9a`](https://github.com/lynx-family/lynx-stack/commit/bb53d9a035f607e7c89952098d4ed77877a2e3c1), [`1a32dd8`](https://github.com/lynx-family/lynx-stack/commit/1a32dd886fe736c95639f67028cf7685377d9769), [`c1f8715`](https://github.com/lynx-family/lynx-stack/commit/c1f8715a81b2e69ff46fc363013626db4468c209)]:
22
- - @lynx-js/web-mainthread-apis@0.16.0-canary-20250830063332-d7d0b9b94e219cd057c935d723775c82b10559a6
23
- - @lynx-js/web-constants@0.16.0-canary-20250830063332-d7d0b9b94e219cd057c935d723775c82b10559a6
24
- - @lynx-js/offscreen-document@0.1.4-canary-20250830063332-d7d0b9b94e219cd057c935d723775c82b10559a6
25
- - @lynx-js/web-worker-rpc@0.16.0-canary-20250830063332-d7d0b9b94e219cd057c935d723775c82b10559a6
22
+ - @lynx-js/web-mainthread-apis@0.16.0
23
+ - @lynx-js/web-constants@0.16.0
24
+ - @lynx-js/offscreen-document@0.1.4
25
+ - @lynx-js/web-worker-rpc@0.16.0
26
26
 
27
27
  ## 0.15.7
28
28
 
@@ -122,14 +122,14 @@
122
122
  Usage:
123
123
 
124
124
  ```ts
125
- import { pluginWebPlatform } from "@lynx-js/web-platform-rsbuild-plugin";
126
- import { defineConfig } from "@rsbuild/core";
125
+ import { pluginWebPlatform } from '@lynx-js/web-platform-rsbuild-plugin';
126
+ import { defineConfig } from '@rsbuild/core';
127
127
 
128
128
  export default defineConfig({
129
129
  plugins: [
130
130
  pluginWebPlatform({
131
131
  // replace with your actual napi-modules file path
132
- napiModulesPath: path.resolve(__dirname, "./index.napi-modules.ts"),
132
+ napiModulesPath: path.resolve(__dirname, './index.napi-modules.ts'),
133
133
  }),
134
134
  ],
135
135
  });
@@ -140,10 +140,10 @@
140
140
  ```ts
141
141
  // index.napi-modules.ts
142
142
  export default {
143
- custom_module: function (NapiModules, NapiModulesCall) {
143
+ custom_module: function(NapiModules, NapiModulesCall) {
144
144
  return {
145
145
  async test(name) {
146
- console.log("CustomModule", NapiModules, NapiModulesCall);
146
+ console.log('CustomModule', NapiModules, NapiModulesCall);
147
147
  },
148
148
  };
149
149
  },
@@ -195,25 +195,25 @@
195
195
  lynxView.initI18nResources = [
196
196
  {
197
197
  options: {
198
- locale: "en",
199
- channel: "1",
200
- fallback_url: "",
198
+ locale: 'en',
199
+ channel: '1',
200
+ fallback_url: '',
201
201
  },
202
202
  resource: {
203
- hello: "hello",
204
- lynx: "lynx web platform1",
203
+ hello: 'hello',
204
+ lynx: 'lynx web platform1',
205
205
  },
206
206
  },
207
207
  ];
208
- lynxView.addEventListener("i18nResourceMissed", (e) => {
208
+ lynxView.addEventListener('i18nResourceMissed', (e) => {
209
209
  console.log(e);
210
210
  });
211
211
 
212
212
  // mts
213
213
  _I18nResourceTranslation({
214
- locale: "en",
215
- channel: "1",
216
- fallback_url: "",
214
+ locale: 'en',
215
+ channel: '1',
216
+ fallback_url: '',
217
217
  });
218
218
  ```
219
219
 
@@ -463,8 +463,8 @@
463
463
  }
464
464
  };`,
465
465
  ],
466
- { type: "text/javascript" }
467
- )
466
+ { type: 'text/javascript' },
467
+ ),
468
468
  ),
469
469
  };
470
470
  lynxView.nativeModulesMap = nativeModulesMap;
@@ -554,8 +554,8 @@
554
554
  };
555
555
  };`,
556
556
  ],
557
- { type: "text/javascript" }
558
- )
557
+ { type: 'text/javascript' },
558
+ ),
559
559
  );
560
560
 
561
561
  const color_methods = URL.createObjectURL(
@@ -570,8 +570,8 @@
570
570
  };
571
571
  };`,
572
572
  ],
573
- { type: "text/javascript" }
574
- )
573
+ { type: 'text/javascript' },
574
+ ),
575
575
  );
576
576
 
577
577
  lynxView.napiModuleMap = {
@@ -588,7 +588,7 @@
588
588
 
589
589
  ```js
590
590
  lynxView.onNapiModulesCall = (name, data, moduleName) => {
591
- if (name === "getColor" && moduleName === "color_methods") {
591
+ if (name === 'getColor' && moduleName === 'color_methods') {
592
592
  return data.color;
593
593
  }
594
594
  };
@@ -643,8 +643,8 @@
643
643
  }
644
644
  };`,
645
645
  ],
646
- { type: "text/javascript" }
647
- )
646
+ { type: 'text/javascript' },
647
+ ),
648
648
  );
649
649
  ```
650
650
 
@@ -656,7 +656,7 @@
656
656
 
657
657
  ```js
658
658
  lynxView.onNativeModulesCall = (name, data, callback) => {
659
- if (name === "getColor") {
659
+ if (name === 'getColor') {
660
660
  callback(data.color);
661
661
  }
662
662
  };
@@ -666,7 +666,7 @@
666
666
 
667
667
  ```js
668
668
  lynxView.onNativeModulesCall = (name, data, moduleName) => {
669
- if (name === "getColor" && moduleName === "bridge") {
669
+ if (name === 'getColor' && moduleName === 'bridge') {
670
670
  return data.color;
671
671
  }
672
672
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-worker-runtime-canary",
3
- "version": "0.16.0-canary-20250830-d7d0b9b9",
3
+ "version": "0.16.0",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "keywords": [],
@@ -22,10 +22,10 @@
22
22
  "README.md"
23
23
  ],
24
24
  "dependencies": {
25
- "@lynx-js/offscreen-document": "npm:@lynx-js/offscreen-document-canary@0.1.4-canary-20250830-d7d0b9b9",
26
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.16.0-canary-20250830-d7d0b9b9",
27
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.16.0-canary-20250830-d7d0b9b9",
28
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.16.0-canary-20250830-d7d0b9b9"
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.16.0",
27
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.16.0",
28
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.16.0"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@lynx-js/lynx-core": "0.1.3"