Repository navigation
12.28.1
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