@lynx-js/web-worker-runtime 0.18.2 → 0.18.4

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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @lynx-js/web-worker-runtime
2
2
 
3
+ ## 0.18.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies []:
8
+ - @lynx-js/web-constants@0.18.4
9
+ - @lynx-js/web-mainthread-apis@0.18.4
10
+ - @lynx-js/web-worker-rpc@0.18.4
11
+
12
+ ## 0.18.3
13
+
14
+ ### Patch Changes
15
+
16
+ - fix: `this` may be undefined in Card(). ([#1922](https://github.com/lynx-family/lynx-stack/pull/1922))
17
+
18
+ - feat: add \_\_GetSourceMapRelease API for nativeApp. ([#1923](https://github.com/lynx-family/lynx-stack/pull/1923))
19
+
20
+ - Updated dependencies [[`fece7d0`](https://github.com/lynx-family/lynx-stack/commit/fece7d0a92fa76948488373757a27dff52a90437), [`ebc1a60`](https://github.com/lynx-family/lynx-stack/commit/ebc1a606318e9809e8a07457e18536b59be12a18)]:
21
+ - @lynx-js/web-mainthread-apis@0.18.3
22
+ - @lynx-js/web-constants@0.18.3
23
+ - @lynx-js/web-worker-rpc@0.18.3
24
+
3
25
  ## 0.18.2
4
26
 
5
27
  ### Patch Changes
@@ -49,7 +49,7 @@ export function createChunkLoading(initialTemplate) {
49
49
  init(lynxCoreInject) {
50
50
  const module = { exports: {} };
51
51
  const tt = lynxCoreInject.tt;
52
- foo(undefined, module, module.exports, lynxCoreInject, tt.Card, tt.setTimeout, tt.setInterval, tt.clearInterval, tt.clearTimeout, tt.NativeModules, tt.Component, tt.ReactLynx, tt.nativeAppId, tt.Behavior, tt.LynxJSBI, tt.lynx,
52
+ foo(undefined, module, module.exports, lynxCoreInject, tt.Card.bind(tt), tt.setTimeout, tt.setInterval, tt.clearInterval, tt.clearTimeout, tt.NativeModules, tt.Component.bind(tt), tt.ReactLynx, tt.nativeAppId, tt.Behavior, tt.LynxJSBI, tt.lynx,
53
53
  // BOM API
54
54
  tt.window, tt.document, tt.frames, tt.location, tt.navigator, tt.localStorage, tt.history, tt.Caches, tt.screen, tt.alert, tt.confirm, tt.prompt, tt.fetch, tt.XMLHttpRequest, tt.webkit, tt.Reporter, tt.print, tt.global, tt.requestAnimationFrame, tt.cancelAnimationFrame);
55
55
  return module.exports;
@@ -75,6 +75,7 @@ export async function createNativeApp(config) {
75
75
  i18nResource,
76
76
  reportException: (err, _) => reportError(err, _, release),
77
77
  __SetSourceMapRelease: (err) => release = err.message,
78
+ __GetSourceMapRelease: (_url) => release,
78
79
  queryComponent: (source, callback) => {
79
80
  if (templateCache.has(source)) {
80
81
  callback({ __hasReady: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-worker-runtime",
3
- "version": "0.18.2",
3
+ "version": "0.18.4",
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": "0.1.4",
26
- "@lynx-js/web-constants": "0.18.2",
27
- "@lynx-js/web-mainthread-apis": "0.18.2",
28
- "@lynx-js/web-worker-rpc": "0.18.2"
26
+ "@lynx-js/web-constants": "0.18.4",
27
+ "@lynx-js/web-mainthread-apis": "0.18.4",
28
+ "@lynx-js/web-worker-rpc": "0.18.4"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@lynx-js/lynx-core": "0.1.3"