5.0.0 (2020-01-09)
- This release marks the general availability of the
@azure/event-hubs
package. - Fixed potential issues with claims being mismanaged when subscriptions terminate.
- Improved reporting of errors that occur when attempting to claim partitions from CheckpointStores.
- Updated to use the latest version of the
@azure/core-amqp
package.
This update allows the SDK to detect when a connection has gone idle for 60 seconds and attempt to reconnect.
Breaking changes:
- Starting event positions are now passed in the
options
to thesubscribe()
method instead of using
theprocessInitialize()
callback. - If no position is passed and no checkpoints are available for the partition,
thesubscribe()
method will start receiving events that are queued after the method invocation.
This is different from the last preview, where events were received from the beginning of the partition. - The
MessagingError
class is updated to have thecode
property instead ofname
to contain the error
type that the user can use to differentiate errors that can occur during communication with the service.
Thename
property of this class will always have the value "MessagingError" and will not change based
on the error type. - System errors around network issues like ENOTFOUND, ECONNREFUSED will retain their
code
value even after
getting converted to aMessagingError
object and being passed to the user.