2019-03-26 2.0.0
Breaking Changes
- If you have been using the
createFromAadTokenCredentials
function to create an instance of the
EventHubClient
, you will now need to use the @azure/ms-rest-nodeauth
library instead of ms-rest-azure library to create
the credentials that are needed by thecreateFromAadTokenCredentials
function.- Typescript: Replace
import * from "ms-rest-azure";
withimport * from "@azure/ms-rest-nodeauth";
- Javascript: Replace
require("ms-rest-azure")
withrequire("@azure/ms-rest-nodeauth")
- Typescript: Replace
- If you have been passing a non string value in the
partitionKey
property on the message when
sending it using theEventHubClient
, an error will now be thrown. This property only supports string values.
Bug fixes and other changes
- A network connection lost error is now treated as retryable error. A new error with name
ConnectionLostError
is introduced for this scenario which you can see if you enable the logs. - When recovering from an error that caused the underlying AMQP connection to get disconnected,
rhea reconnects all the older AMQP links on the connection
resulting in the below 2 errors in the logs. We now clear rhea's internal map to avoid such reconnections.
We already have code in place to create new AMQP links to resume send/receive operations.- InvalidOperationError: A link to connection '.....' $cbs node has already been opened.
- UnauthorizedError: Unauthorized access. 'Listen' claim(s) are required to perform this operation.
- Enabled the
esModuleInterop
compilerOption in thetsconfig.json
file for this library to be
compliant with the best practices.