@rdlabo/ionic-angular-kit 21.5.7 → 21.5.9

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/README.md CHANGED
@@ -523,6 +523,31 @@ The write lifecycle is: update the replica immediately → append an outbox comm
523
523
  the optimistic value → replay in the background → validate the server revision → store the confirmed value and
524
524
  revision. The server remains authoritative; SQLite is the durable local working database, not an HTTP response cache.
525
525
 
526
+ For a DB row whose deletion is represented by absence, enqueue the same full row values with
527
+ `replicaMutation: 'delete'`. The runtime stores a library-owned durable tombstone: normal `getReplicaRow()` and
528
+ `getReplicaRows()` reads stop returning the row immediately, while synchronization retains its immutable `localId`,
529
+ remote identity, confirmed baseline, and Outbox command. A successful tombstone acknowledgement removes the row
530
+ physically; retry, authorization failure, and conflict keep it hidden; discarding restores the latest confirmed
531
+ baseline unless the server has also deleted it.
532
+
533
+ Custom `OfflineRepository` implementations must implement `getReplicaRowIncludingPendingDelete()` before they can
534
+ accept `replicaMutation: 'delete'`; the runtime rejects that enqueue otherwise. This is intentional: ordinary product
535
+ reads stay hidden, while the library's remote-identity lookup and synchronization path must still resolve the durable
536
+ tombstone for replay, lost-ACK reconciliation, conflict handling, and discard.
537
+
538
+ ```ts
539
+ await offlineSync.enqueue({
540
+ scopeId,
541
+ aggregateType: 'favorites',
542
+ aggregateLocalId: favorite.localId,
543
+ operation: 'favorite.delete',
544
+ payload: { favTo: favorite.values.favTo },
545
+ optimisticValue: favorite.values,
546
+ baseRevision: favorite.serverRevision,
547
+ replicaMutation: 'delete',
548
+ });
549
+ ```
550
+
526
551
  The runtime retains pending, rejected, and conflicted commands until synchronization or an explicit user discard;
527
552
  it never evicts an unconfirmed mutation because of age or storage pressure. To keep a device that remains offline for
528
553
  months from exhausting SQLite, enqueue applies backpressure at 1,000 commands or 10 MiB per user by default. Products