Skip to content

12.28.1

Choose a tag to compare

@timgit timgit released this 28 Aug 20:36
· 564 commits to master since this release

What's Changed

publish() no longer resolves when its sends fail

Resolves (#870). Previously, Promise.allSettled() was used to make a best effort at sending to subscribed queues for publish, which means no error would be thrown if at least one of the destination queues throws. Now, publish() rejects with an AggregateError in this case, with each entry naming the source queue:

AggregateError: publish('order.paid') failed for 2 of 3 subscribed queue(s)
    at Manager.publish (src/manager.ts:857:13) {
  [errors]: [
    'ledger: key_strict_fifo queues require a singletonKey',
    'billing: relation "j8c1..." does not exist'
  ]
}

Thanks to @mattes3 for the report, the reproduction, and the suggested fix.

Full Changelog: 12.28.0...12.28.1