@komaci/prefetch 252.0.2 → 252.0.3
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.
|
@@ -46,6 +46,7 @@ export function prefetch(routes = [], pageReferences = [], config) {
|
|
|
46
46
|
downloadImage: config === null || config === void 0 ? void 0 : config.downloadImage,
|
|
47
47
|
usePhaseGrouping: config === null || config === void 0 ? void 0 : config.usePhaseGrouping,
|
|
48
48
|
usePromisifiedHold: config === null || config === void 0 ? void 0 : config.usePromisifiedHold,
|
|
49
|
+
WireCtx: config === null || config === void 0 ? void 0 : config.WireCtx,
|
|
49
50
|
};
|
|
50
51
|
getPrefetchService(router, pageReferences, wrappedConfig);
|
|
51
52
|
});
|
|
@@ -278,6 +278,7 @@ export class PrefetchService {
|
|
|
278
278
|
WireSlowRunningTimeout: 30 * 1000,
|
|
279
279
|
usePhaseGrouping: this.config.usePhaseGrouping,
|
|
280
280
|
usePromisifiedHold: this.config.usePromisifiedHold,
|
|
281
|
+
WireCtx: this.config.WireCtx,
|
|
281
282
|
};
|
|
282
283
|
bulkResolutionGroup.bulkResolver = getBulkAdgResolver(adgFn, adgInputs, bulkResolutionStatusCbs, environmentCfg, { prefetchId: this._prefetchId, bulkResolverId: bulkResolverId });
|
|
283
284
|
this.resolutionGroups.push(bulkResolutionGroup);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { AdapterRequestContext } from '@luvio/engine';
|
|
1
2
|
import type { PageReference } from 'lwr/router';
|
|
2
3
|
import type { ResolverExecutionState, AdgInput, AdgModuleExport, IBulkResolver } from '@komaci/resolver';
|
|
3
4
|
import { InstrumentationContext } from 'o11y/dist/modules/o11y/client/interfaces';
|
|
@@ -90,5 +91,9 @@ export declare type PrefetchConfig<TAddress = PageReference> = {
|
|
|
90
91
|
* use a promise instead of a timeout for holding queue
|
|
91
92
|
*/
|
|
92
93
|
usePromisifiedHold?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Wire context. Use it to pass a cachePolicy, for example.
|
|
96
|
+
*/
|
|
97
|
+
WireCtx?: AdapterRequestContext;
|
|
93
98
|
};
|
|
94
99
|
//# sourceMappingURL=prefetchTypes.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@komaci/prefetch",
|
|
3
|
-
"version": "252.0.
|
|
3
|
+
"version": "252.0.3",
|
|
4
4
|
"description": "Komaci prefetch service.",
|
|
5
5
|
"homepage": "https://komaci.dev/",
|
|
6
6
|
"repository": {
|
|
@@ -26,14 +26,14 @@
|
|
|
26
26
|
"build/**/*.d.ts"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@komaci/module-shared": "252.0.
|
|
30
|
-
"@komaci/resolver": "252.0.
|
|
29
|
+
"@komaci/module-shared": "252.0.3",
|
|
30
|
+
"@komaci/resolver": "252.0.3",
|
|
31
31
|
"@lwrjs/router": "0.6.0-alpha.15",
|
|
32
32
|
"o11y": "^244.0.0",
|
|
33
33
|
"o11y_schema": "244.21.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
|
-
"@komaci/types": "252.0.
|
|
36
|
+
"@komaci/types": "252.0.3",
|
|
37
37
|
"wait-for-expect": "^3.0.2"
|
|
38
38
|
}
|
|
39
39
|
}
|