@dudousxd/nestjs-durable 0.34.0 → 0.34.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
@@ -1762,6 +1762,10 @@ var WorkflowService = class {
1762
1762
  * starts a fresh run of every workflow subscribed via `@Workflow({ onEvent })` / `@OnDurableEvent` (the
1763
1763
  * payload becomes its input). Pass `opts.id` to dedupe redeliveries. Returns how many runs it
1764
1764
  * touched (resumed + started).
1765
+ *
1766
+ * Reliable by default: a publish that touches NOBODY (no live waiter, no subscriber) buffers ONE
1767
+ * copy so a LATER `waitForEvent(name, { match })` still consumes it instead of it being dropped —
1768
+ * see {@link WorkflowEngine.publishEvent}'s full semantics doc. Pass `opts.buffer: false` to opt out.
1765
1769
  */
1766
1770
  publishEvent(name, payload, opts) {
1767
1771
  return this.engine.publishEvent(name, payload, opts);