@objectstack/service-messaging 9.4.0 → 9.5.1

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/dist/index.cjs CHANGED
@@ -1945,6 +1945,7 @@ function stableNodeOffset2(nodeId, partitionCount) {
1945
1945
  }
1946
1946
 
1947
1947
  // src/retention.ts
1948
+ var DEFAULT_NOTIFICATION_RETENTION_DAYS = 90;
1948
1949
  var DEFAULT_RETENTION_TARGETS = [
1949
1950
  { object: RECEIPT_OBJECT, tsField: "created_at", format: "iso" },
1950
1951
  { object: INBOX_OBJECT, tsField: "created_at", format: "iso" },
@@ -2518,7 +2519,7 @@ var MessagingServicePlugin = class {
2518
2519
  partitionCount: 8,
2519
2520
  dispatchIntervalMs: 500,
2520
2521
  mandatoryTopics: [],
2521
- retentionDays: 0,
2522
+ retentionDays: DEFAULT_NOTIFICATION_RETENTION_DAYS,
2522
2523
  retentionSweepMs: 36e5,
2523
2524
  ...options
2524
2525
  };