github Azure/azure-sdk-for-js @azure/service-bus_7.0.4

latest releases: @azure-rest/core-client_2.3.0, @azure/core-xml_1.4.4, @azure/core-tracing_1.2.0...
3 years ago

7.0.4 (2021-03-31)

Bug fixes

  • ServiceBusSessionReceiver.receiveMessages and ServiceBusSessionReceiver.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 the subscribe method not calling the user provided error handler.
    • The receiveMessages method will now throw SessionLockLostError when used in peekLock mode and return messages collected so far when used in receiveAndDelete mode to avoid data loss if errors on the AMQP connection are encountered.
    • When using the subscribe, the user provided processError callback will now be called with SessionLockLostError if errors on the AMQP connection are encountered.
  • Allow null as a value for the properties in ServiceBusMessage.applicationProperties.
    Fixes #14329

  • Re-exports RetryMode for use when setting the RetryOptions.mode field
    in ServiceBusClientOptions.
    Resolves #13166.

Tracing updates

  • Tracing options for ServiceBusMessageBatch.tryAdd now match the shape of OperationOptions.

Don't miss a new azure-sdk-for-js release

NewReleases is sending notifications on new releases.