@lynx-js/web-worker-runtime-canary 0.19.6-canary-20260121-9d8f2629 → 0.19.6-canary-20260122-5b589ab5

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,13 +1,15 @@
1
1
  # @lynx-js/web-worker-runtime
2
2
 
3
- ## 0.19.6-canary-20260121150015-9d8f2629b5ffc32444ce876dadecfb55f88aec4f
3
+ ## 0.19.6-canary-20260122112014-5b589ab53b01a8e2357d3ccbb159edab004086d3
4
4
 
5
5
  ### Patch Changes
6
6
 
7
- - Updated dependencies [[`179f984`](https://github.com/lynx-family/lynx-stack/commit/179f9844adf00ff4b2cd450ffb943649441c87d3), [`6c2b51a`](https://github.com/lynx-family/lynx-stack/commit/6c2b51a661ae244eb40671f63f29ee971e084ed4), [`556fe9f`](https://github.com/lynx-family/lynx-stack/commit/556fe9fded90945a7926093897288d5302c314d3)]:
8
- - @lynx-js/web-constants@0.19.6-canary-20260121150015-9d8f2629b5ffc32444ce876dadecfb55f88aec4f
9
- - @lynx-js/web-mainthread-apis@0.19.6-canary-20260121150015-9d8f2629b5ffc32444ce876dadecfb55f88aec4f
10
- - @lynx-js/web-worker-rpc@0.19.6-canary-20260121150015-9d8f2629b5ffc32444ce876dadecfb55f88aec4f
7
+ - feat: support lynx.reload() ([#2127](https://github.com/lynx-family/lynx-stack/pull/2127))
8
+
9
+ - Updated dependencies [[`179f984`](https://github.com/lynx-family/lynx-stack/commit/179f9844adf00ff4b2cd450ffb943649441c87d3), [`6c2b51a`](https://github.com/lynx-family/lynx-stack/commit/6c2b51a661ae244eb40671f63f29ee971e084ed4), [`556fe9f`](https://github.com/lynx-family/lynx-stack/commit/556fe9fded90945a7926093897288d5302c314d3), [`5b589ab`](https://github.com/lynx-family/lynx-stack/commit/5b589ab53b01a8e2357d3ccbb159edab004086d3)]:
10
+ - @lynx-js/web-constants@0.19.6-canary-20260122112014-5b589ab53b01a8e2357d3ccbb159edab004086d3
11
+ - @lynx-js/web-mainthread-apis@0.19.6-canary-20260122112014-5b589ab53b01a8e2357d3ccbb159edab004086d3
12
+ - @lynx-js/web-worker-rpc@0.19.6-canary-20260122112014-5b589ab53b01a8e2357d3ccbb159edab004086d3
11
13
 
12
14
  ## 0.19.5
13
15
 
@@ -20,4 +20,5 @@ export declare function createBackgroundLynx(config: BackMainThreadContextConfig
20
20
  schema: string;
21
21
  };
22
22
  }) => void) => void;
23
+ reload: () => void;
23
24
  };
@@ -1,7 +1,7 @@
1
1
  // Copyright 2023 The Lynx Authors. All rights reserved.
2
2
  // Licensed under the Apache License Version 2.0 that can be found in the
3
3
  // LICENSE file in the root directory of this source tree.
4
- import { dispatchCoreContextOnBackgroundEndpoint, dispatchJSContextOnMainThreadEndpoint, LynxCrossThreadContext, } from '@lynx-js/web-constants';
4
+ import { dispatchCoreContextOnBackgroundEndpoint, dispatchJSContextOnMainThreadEndpoint, LynxCrossThreadContext, reloadEndpoint, } from '@lynx-js/web-constants';
5
5
  import { createGetCustomSection } from './crossThreadHandlers/createGetCustomSection.js';
6
6
  import { createElement } from './createElement.js';
7
7
  export function createBackgroundLynx(config, nativeApp, mainThreadRpc, uiThreadRpc) {
@@ -32,6 +32,9 @@ export function createBackgroundLynx(config, nativeApp, mainThreadRpc, uiThreadR
32
32
  },
33
33
  getI18nResource: () => nativeApp.i18nResource.data,
34
34
  QueryComponent: (source, callback) => nativeApp.queryComponent(source, callback),
35
+ reload: () => {
36
+ uiThreadRpc.invoke(reloadEndpoint, []);
37
+ },
35
38
  };
36
39
  }
37
40
  //# sourceMappingURL=createBackgroundLynx.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lynx-js/web-worker-runtime-canary",
3
- "version": "0.19.6-canary-20260121-9d8f2629",
3
+ "version": "0.19.6-canary-20260122-5b589ab5",
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.4",
26
- "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.6-canary-20260121-9d8f2629",
27
- "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.6-canary-20260121-9d8f2629",
28
- "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.6-canary-20260121-9d8f2629"
26
+ "@lynx-js/web-constants": "npm:@lynx-js/web-constants-canary@0.19.6-canary-20260122-5b589ab5",
27
+ "@lynx-js/web-mainthread-apis": "npm:@lynx-js/web-mainthread-apis-canary@0.19.6-canary-20260122-5b589ab5",
28
+ "@lynx-js/web-worker-rpc": "npm:@lynx-js/web-worker-rpc-canary@0.19.6-canary-20260122-5b589ab5"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@lynx-js/lynx-core": "0.1.3"