@rdlabo/ionic-angular-kit 22.0.0-beta.pr94.sha870257bc2bf6 → 22.0.0-beta.pr96.shaa32019794c9b

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdlabo/ionic-angular-kit",
3
- "version": "22.0.0-beta.pr94.sha870257bc2bf6",
3
+ "version": "22.0.0-beta.pr96.shaa32019794c9b",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/rdlabo-dev/ionic-angular-library.git"
@@ -1423,7 +1423,7 @@ declare function offlineReadEmission<T>(response: HttpResponse<unknown>, value:
1423
1423
  /** Prevents an incomplete empty local collection from clearing usable UI state. */
1424
1424
  declare function shouldCommitOfflineCollection<T>(emission: OfflineReadEmission<readonly T[]>): boolean;
1425
1425
  /** Controls GET emission order between local replica and remote transport. */
1426
- type OfflineReadStrategy = 'network-first' | 'local-first';
1426
+ type OfflineReadStrategy = 'network-first' | 'local-first' | 'fastest-first';
1427
1427
  /** Product read policy backed by a local replica fallback for transport failures. */
1428
1428
  interface OfflineReadRequestPlan {
1429
1429
  kind: 'read';
@@ -1437,6 +1437,9 @@ interface OfflineReadRequestPlan {
1437
1437
  * projected local first on hit, then drains the buffered remote response.
1438
1438
  * Callers must keep the HTTP observable subscribed through revalidation;
1439
1439
  * `firstValueFrom` and `take(1)` cancel in-flight transport.
1440
+ * `fastest-first` emits whichever usable local or remote response settles
1441
+ * first. A winning local response is followed by remote revalidation; a
1442
+ * winning remote response cancels and suppresses the slower local read.
1440
1443
  */
1441
1444
  readStrategy?: OfflineReadStrategy;
1442
1445
  /**