@lynx-js/cache-events-webpack-plugin-canary 0.2.1 → 0.2.2-canary-20261027-749147c8
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 +7 -0
- package/README.md +1 -1
- package/lib/LynxCacheEventsPlugin.d.ts +16 -1
- package/lib/LynxCacheEventsPlugin.js +16 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @lynx-js/cache-events-webpack-plugin
|
|
2
2
|
|
|
3
|
+
## 0.2.2-canary-20261027063858-749147c82c3e0bb06f1e92567a5afec909baf19b
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [[`7d498ae`](https://github.com/lynx-family/lynx-stack/commit/7d498aece52a20e77abc19e2a4579333861c11da)]:
|
|
8
|
+
- @lynx-js/webpack-runtime-globals@0.1.0-canary-20261027063858-749147c82c3e0bb06f1e92567a5afec909baf19b
|
|
9
|
+
|
|
3
10
|
## 0.2.1
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<h2 align="center">@lynx-js/cache-events-webpack-plugin</h2>
|
|
2
2
|
|
|
3
|
-
A webpack plugin that
|
|
3
|
+
A webpack plugin that caches Lynx native calls that arrive before an entry finishes starting up — on the background thread, and on the main thread for entries that start up asynchronously — and replays them once startup settles.
|
|
@@ -50,7 +50,22 @@ export interface LynxCacheEventsPluginOptions {
|
|
|
50
50
|
}) => string[];
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* A webpack plugin that
|
|
53
|
+
* A webpack plugin that caches Lynx native calls that arrive before an entry
|
|
54
|
+
* finishes starting up, and replays them once startup settles.
|
|
55
|
+
*
|
|
56
|
+
* @remarks
|
|
57
|
+
* Only takes effect when `output.chunkLoading` is `'lynx'`.
|
|
58
|
+
*
|
|
59
|
+
* - Background chunks: always cached. Covers the `lynx.getApp()` methods
|
|
60
|
+
* (`OnLifecycleEvent`, `publishEvent`, `publicComponentEvent`,
|
|
61
|
+
* `callDestroyLifetimeFun`, `updateGlobalProps`, `updateCardData`,
|
|
62
|
+
* `onAppReload`, `processCardConfig`), the `lynx.performance` events, and
|
|
63
|
+
* `globalThis.loadDynamicComponent`.
|
|
64
|
+
*
|
|
65
|
+
* - Main-thread chunks: cached only for entries whose startup is async, such
|
|
66
|
+
* as an entry that depends on an async external ReactLynx. `renderPage` is
|
|
67
|
+
* cached and replayed, and `processData` is shimmed as a passthrough until
|
|
68
|
+
* the real one is installed.
|
|
54
69
|
*
|
|
55
70
|
* @public
|
|
56
71
|
*/
|
|
@@ -5,7 +5,22 @@ import { RuntimeGlobals as LynxRuntimeGlobals } from '@lynx-js/webpack-runtime-g
|
|
|
5
5
|
import { createLynxCacheEventsRuntimeModule } from './LynxCacheEventsRuntimeModule.js';
|
|
6
6
|
import { createLynxCacheEventsSetupListRuntimeModule } from './LynxCacheEventsSetupListRuntimeModule.js';
|
|
7
7
|
/**
|
|
8
|
-
* A webpack plugin that
|
|
8
|
+
* A webpack plugin that caches Lynx native calls that arrive before an entry
|
|
9
|
+
* finishes starting up, and replays them once startup settles.
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* Only takes effect when `output.chunkLoading` is `'lynx'`.
|
|
13
|
+
*
|
|
14
|
+
* - Background chunks: always cached. Covers the `lynx.getApp()` methods
|
|
15
|
+
* (`OnLifecycleEvent`, `publishEvent`, `publicComponentEvent`,
|
|
16
|
+
* `callDestroyLifetimeFun`, `updateGlobalProps`, `updateCardData`,
|
|
17
|
+
* `onAppReload`, `processCardConfig`), the `lynx.performance` events, and
|
|
18
|
+
* `globalThis.loadDynamicComponent`.
|
|
19
|
+
*
|
|
20
|
+
* - Main-thread chunks: cached only for entries whose startup is async, such
|
|
21
|
+
* as an entry that depends on an async external ReactLynx. `renderPage` is
|
|
22
|
+
* cached and replayed, and `processData` is shimmed as a passthrough until
|
|
23
|
+
* the real one is installed.
|
|
9
24
|
*
|
|
10
25
|
* @public
|
|
11
26
|
*/
|
package/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @packageDocumentation
|
|
3
3
|
*
|
|
4
|
-
* A webpack plugin that
|
|
4
|
+
* A webpack plugin that caches Lynx native calls that arrive before an entry finishes starting up — on the background thread, and on the main thread for entries that start up asynchronously — and replays them once startup settles.
|
|
5
5
|
*/
|
|
6
6
|
export { LynxCacheEventsPlugin } from './LynxCacheEventsPlugin.js';
|
|
7
7
|
export type { LynxCacheEventsPluginOptions } from './LynxCacheEventsPlugin.js';
|
package/lib/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* @packageDocumentation
|
|
6
6
|
*
|
|
7
|
-
* A webpack plugin that
|
|
7
|
+
* A webpack plugin that caches Lynx native calls that arrive before an entry finishes starting up — on the background thread, and on the main thread for entries that start up asynchronously — and replays them once startup settles.
|
|
8
8
|
*/
|
|
9
9
|
export { LynxCacheEventsPlugin } from './LynxCacheEventsPlugin.js';
|
|
10
10
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lynx-js/cache-events-webpack-plugin-canary",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.2.2-canary-20261027-749147c8",
|
|
4
|
+
"description": "Caches Lynx native calls that arrive before an entry finishes starting up — on the background thread, and on the main thread for entries that start up asynchronously — and replays them once startup settles.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"webpack",
|
|
7
7
|
"Lynx"
|
|
@@ -32,13 +32,13 @@
|
|
|
32
32
|
"README.md"
|
|
33
33
|
],
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@lynx-js/webpack-runtime-globals": "npm:@lynx-js/webpack-runtime-globals-canary@0.0
|
|
35
|
+
"@lynx-js/webpack-runtime-globals": "npm:@lynx-js/webpack-runtime-globals-canary@0.1.0-canary-20261027-749147c8"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@
|
|
39
|
-
"@
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
38
|
+
"@lynx-js/chunk-loading-webpack-plugin": "npm:@lynx-js/chunk-loading-webpack-plugin-canary@0.4.3-canary-20261027-749147c8",
|
|
39
|
+
"@lynx-js/test-tools": "0.0.0",
|
|
40
|
+
"@rspack/core": "2.2.7",
|
|
41
|
+
"@rstest/core": "0.12.1"
|
|
42
42
|
},
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=18"
|