@komaci/prefetch 244.2.4 → 244.2.5

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.
@@ -44,6 +44,8 @@ export function prefetch(routes = [], pageReferences = [], config) {
44
44
  },
45
45
  instrumentationContext: config === null || config === void 0 ? void 0 : config.instrumentationContext,
46
46
  downloadImage: config === null || config === void 0 ? void 0 : config.downloadImage,
47
+ usePhaseGrouping: config === null || config === void 0 ? void 0 : config.usePhaseGrouping,
48
+ usePromisifiedHold: config === null || config === void 0 ? void 0 : config.usePromisifiedHold,
47
49
  };
48
50
  getPrefetchService(router, pageReferences, wrappedConfig);
49
51
  });
@@ -276,6 +276,8 @@ export class PrefetchService {
276
276
  MaxResolutionDepth: 512,
277
277
  WireTimeout: 180 * 1000,
278
278
  WireSlowRunningTimeout: 30 * 1000,
279
+ usePhaseGrouping: this.config.usePhaseGrouping,
280
+ usePromisifiedHold: this.config.usePromisifiedHold,
279
281
  };
280
282
  bulkResolutionGroup.bulkResolver = getBulkAdgResolver(adgFn, adgInputs, bulkResolutionStatusCbs, environmentCfg, { prefetchId: this._prefetchId, bulkResolverId: bulkResolverId });
281
283
  this.resolutionGroups.push(bulkResolutionGroup);
@@ -82,5 +82,13 @@ export declare type PrefetchConfig<TAddress = PageReference> = {
82
82
  * High volume priming is a special feature which causes us to only resolve each unique AdgModule once, even if multiple addresses for the module are passed.
83
83
  */
84
84
  highVolumePriming?: boolean;
85
+ /**
86
+ * Use phase grouping for workqueue management
87
+ */
88
+ usePhaseGrouping?: boolean;
89
+ /**
90
+ * use a promise instead of a timeout for holding queue
91
+ */
92
+ usePromisifiedHold?: boolean;
85
93
  };
86
94
  //# sourceMappingURL=prefetchTypes.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@komaci/prefetch",
3
- "version": "244.2.4",
3
+ "version": "244.2.5",
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": "244.2.4",
30
- "@komaci/resolver": "244.2.4",
29
+ "@komaci/module-shared": "244.2.5",
30
+ "@komaci/resolver": "244.2.5",
31
31
  "@lwrjs/router": "0.6.0-alpha.15",
32
32
  "o11y": "^244.0.0",
33
33
  "o11y_schema": "^244.4.0"
34
34
  },
35
35
  "devDependencies": {
36
- "@komaci/types": "244.2.4",
36
+ "@komaci/types": "244.2.5",
37
37
  "wait-for-expect": "^3.0.2"
38
38
  }
39
39
  }