github Azure/azure-sdk-for-js @azure/event-hubs_2.0.0

latest releases: @azure/cosmos_4.0.1-beta.3, @azure/core-lro_3.0.0-beta.2, @azure/arm-security_6.0.0-beta.5...
5 years ago

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 the createFromAadTokenCredentials function.
    • Typescript: Replace import * from "ms-rest-azure"; with import * from "@azure/ms-rest-nodeauth";
    • Javascript: Replace require("ms-rest-azure") with require("@azure/ms-rest-nodeauth")
  • If you have been passing a non string value in the partitionKey property on the message when
    sending it using the EventHubClient, 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 the tsconfig.json file for this library to be
    compliant with the best practices.

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

NewReleases is sending notifications on new releases.