github Azure/azure-sdk-for-js @azure/service-bus_7.0.0-preview.5

latest releases: @azure/core-rest-pipeline_1.16.0, @azure/core-amqp_4.2.2, @azure/communication-sms_1.2.0-beta.1...
pre-release3 years ago

7.0.0-preview.5 (2020-08-10)

  • User agent details can now be added to the outgoing requests by passing the user-agent prefixes to the ServiceBusClient and the ServiceBusManagementClient through options.
    Example user-agent string if the prefix SampleApp is provided to ServiceBusManagementClient:
    SampleApp azsdk-js-azureservicebus/7.0.0-preview.5 core-http/1.1.5 Node/v12.16.0 OS/(x64-Windows_NT-10.0.18363)
    PR 10092

  • Added deadLetterErrorDescription and deadLetterReason properties on the received messages. Previously, they were under the properties in the message.

    OLD: message.properties["DeadLetterReason"] and message.properties["DeadLetterErrorDescription"]
    NEW: message.deadLetterReason and message.deadLetterErrorDescription

    PR 10106

  • Added tracing support to the methods under ServiceBusManagementClient.
    PR 9987

Breaking Changes

  • receiveMode parameter in the createReceiver(), createSessionReceiver() and createDeadletterReceiver() methods has been moved into the options bag with the default value "peekLock" mode.

    Example:

    • OLD: createReceiver(<queue-name>, "peekLock") and createReceiver(<queue-name>, "receiveAndDelete")
    • NEW: createReceiver(<queue-name>) and createReceiver(<queue-name>, {receiveMode: "receiveAndDelete"})

    PR 10102

  • Added Async iterable iterators with pagination support for all the listing methods like getQueues(), getTopics(), getQueuesRuntimeInfo(), etc. and renamed them to use the list verb.
    PR 9951
    PR 10223

  • receiveMessages()'s optional maxWaitTimeInMs parameter now controls how long to wait for the first
    message, rather than how long to wait for an entire set of messages. This change allows for a faster return
    of messages to your application.
    PR 9968
    PR 10107

  • userProperties attribute under the ServiceBusMessage(and ReceivedMessage, ReceivedMessageWithLock) has been renamed to properties. Same change has been made to the userProperties attribute in the correlation-rule filter.
    PR 10003

  • Fixed bug 9926
    where attempting to create AMQP links when the AMQP connection was in the
    process of closing resulted in a TypeError in an uncaught exception.

  • The terms RuntimeInfo and Description are replaced with RuntimeProperties and Properties to better align with guidelines around the kind of suffixes we use for naming methods and interfaces.

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

NewReleases is sending notifications on new releases.