@remit/mailbox-service 0.0.86 → 0.0.87

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": "@remit/mailbox-service",
3
- "version": "0.0.86",
3
+ "version": "0.0.87",
4
4
  "type": "module",
5
5
  "main": "src/index.ts",
6
6
  "types": "src/index.ts",
package/src/index.ts CHANGED
@@ -249,7 +249,11 @@ export {
249
249
  type ResolveExhaustedPlacementMoveResult,
250
250
  resolveExhaustedPlacementMoveFailure,
251
251
  } from "./placement-move-terminal.js";
252
- export { isPlacementUnsettled } from "./placement-settled.js";
252
+ export {
253
+ isPlacementUnsettled,
254
+ type PlacementBinding,
255
+ placementBindingOf,
256
+ } from "./placement-settled.js";
253
257
  export {
254
258
  type QuarantineContext,
255
259
  QuarantinedUids,
@@ -44,10 +44,12 @@ export const bindsForeignUid = (
44
44
 
45
45
  /**
46
46
  * `in_flight` — a mover is still working on the row, so waiting resolves it.
47
- * `abandoned` — the mover gave up without confirming (`syncStatus: failed`,
48
- * written by every handler's give-up path while `status` stays `moving`, since
49
- * only `updateUid` clears it). Nothing routine settles such a row, so waiting
50
- * on one is a wait that never ends, and the pair stays a lie either way.
47
+ * `abandoned` — the last attempt failed (`syncStatus: failed`) and the row is
48
+ * still `moving`: either a redelivery is pending, or the record dead-lettered
49
+ * and nothing is coming for it. The two are indistinguishable from the row
50
+ * (`message-settlement.ts`), and the pair is a lie either way, so neither is
51
+ * worth spending the settle ceiling on. A mover that exhausts its budget
52
+ * settles the row against IMAP instead of leaving this state behind (#1005).
51
53
  */
52
54
  export type PlacementBinding = "consistent" | "in_flight" | "abandoned";
53
55