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 theServiceBusManagementClient
through options.
Example user-agent string if the prefixSampleApp
is provided toServiceBusManagementClient
:
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
anddeadLetterReason
properties on the received messages. Previously, they were under theproperties
in the message.OLD:
message.properties["DeadLetterReason"]
andmessage.properties["DeadLetterErrorDescription"]
NEW:message.deadLetterReason
andmessage.deadLetterErrorDescription
-
Added tracing support to the methods under
ServiceBusManagementClient
.
PR 9987
Breaking Changes
-
receiveMode
parameter in thecreateReceiver()
,createSessionReceiver()
andcreateDeadletterReceiver()
methods has been moved into the options bag with the default value"peekLock"
mode.Example:
- OLD:
createReceiver(<queue-name>, "peekLock")
andcreateReceiver(<queue-name>, "receiveAndDelete")
- NEW:
createReceiver(<queue-name>)
andcreateReceiver(<queue-name>, {receiveMode: "receiveAndDelete"})
- OLD:
-
Added Async iterable iterators with pagination support for all the listing methods like
getQueues()
,getTopics()
,getQueuesRuntimeInfo()
, etc. and renamed them to use thelist
verb.
PR 9951
PR 10223- Please refer to the examples in the
samples
folder - listingEntities
- Please refer to the examples in the
-
receiveMessages()
's optionalmaxWaitTimeInMs
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 theServiceBusMessage
(andReceivedMessage
,ReceivedMessageWithLock
) has been renamed toproperties
. Same change has been made to theuserProperties
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 aTypeError
in an uncaught exception. -
The terms
RuntimeInfo
andDescription
are replaced withRuntimeProperties
andProperties
to better align with guidelines around the kind of suffixes we use for naming methods and interfaces.