7.0.4 (2021-03-31)
Bug fixes
-
ServiceBusSessionReceiver.receiveMessages
andServiceBusSessionReceiver.subscribe
methods are updated to handle errors on the AMQP connection like a network disconnect in #13956. Previously, these methods only handled errors on the AMQP link or session.- This previously resulted in the promise returned by the
receiveMessages
method never getting fulfilled and thesubscribe
method not calling the user provided error handler. - The
receiveMessages
method will now throwSessionLockLostError
when used inpeekLock
mode and return messages collected so far when used inreceiveAndDelete
mode to avoid data loss if errors on the AMQP connection are encountered. - When using the
subscribe
, the user providedprocessError
callback will now be called withSessionLockLostError
if errors on the AMQP connection are encountered.
- This previously resulted in the promise returned by the
-
Allow null as a value for the properties in
ServiceBusMessage.applicationProperties
.
Fixes #14329 -
Re-exports
RetryMode
for use when setting theRetryOptions.mode
field
inServiceBusClientOptions
.
Resolves #13166.
Tracing updates
- Tracing options for
ServiceBusMessageBatch.tryAdd
now match the shape ofOperationOptions
.