@azure/event-hubs 5.12.1-alpha.20240605.1 → 5.13.0-alpha.20240607.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +7 -4
- package/dist/index.js.map +1 -1
- package/dist-esm/src/eventData.js.map +1 -1
- package/dist-esm/src/eventHubSender.js +3 -2
- package/dist-esm/src/eventHubSender.js.map +1 -1
- package/dist-esm/src/eventPosition.js +1 -1
- package/dist-esm/src/eventPosition.js.map +1 -1
- package/dist-esm/src/managementClient.js +1 -0
- package/dist-esm/src/managementClient.js.map +1 -1
- package/dist-esm/src/partitionProcessor.js.map +1 -1
- package/dist-esm/src/partitionReceiver.js +2 -1
- package/dist-esm/src/partitionReceiver.js.map +1 -1
- package/dist-esm/src/util/constants.js +1 -1
- package/dist-esm/src/util/constants.js.map +1 -1
- package/package.json +2 -2
- package/types/latest/event-hubs.d.ts +8 -4
package/dist/index.js
CHANGED
|
@@ -259,7 +259,7 @@ function getEventPositionFilter(eventPosition) {
|
|
|
259
259
|
* first event in the partition which has not expired due to the retention policy.
|
|
260
260
|
*/
|
|
261
261
|
const earliestEventPosition = {
|
|
262
|
-
offset: -1,
|
|
262
|
+
offset: "-1",
|
|
263
263
|
};
|
|
264
264
|
/**
|
|
265
265
|
* Gets the `EventPosition` corresponding to the end of the partition.
|
|
@@ -483,7 +483,7 @@ function isRheaAmqpSection(possibleSection) {
|
|
|
483
483
|
*/
|
|
484
484
|
const packageJsonInfo = {
|
|
485
485
|
name: "@azure/event-hubs",
|
|
486
|
-
version: "5.
|
|
486
|
+
version: "5.13.0-beta.1",
|
|
487
487
|
};
|
|
488
488
|
/**
|
|
489
489
|
* @internal
|
|
@@ -1132,8 +1132,9 @@ function createRheaOptions(consumerId, name, address, obj, state, queue, eventPo
|
|
|
1132
1132
|
if (typeof ownerLevel === "number") {
|
|
1133
1133
|
rheaOptions.properties[coreAmqp.Constants.attachEpoch] = rheaPromise.types.wrap_long(ownerLevel);
|
|
1134
1134
|
}
|
|
1135
|
+
rheaOptions.desired_capabilities = [coreAmqp.Constants.geoReplication];
|
|
1135
1136
|
if (options.trackLastEnqueuedEventProperties) {
|
|
1136
|
-
rheaOptions.desired_capabilities
|
|
1137
|
+
rheaOptions.desired_capabilities.push(coreAmqp.Constants.enableReceiverRuntimeMetricName);
|
|
1137
1138
|
}
|
|
1138
1139
|
const filterClause = getEventPositionFilter(obj.checkpoint > -1 ? { sequenceNumber: obj.checkpoint } : eventPosition);
|
|
1139
1140
|
rheaOptions.source.filter = {
|
|
@@ -2126,6 +2127,7 @@ class ManagementClient {
|
|
|
2126
2127
|
name: info.name,
|
|
2127
2128
|
createdOn: new Date(info.created_at),
|
|
2128
2129
|
partitionIds: info.partition_ids,
|
|
2130
|
+
isGeoDrEnabled: info.georeplication_factor > 1,
|
|
2129
2131
|
};
|
|
2130
2132
|
logger.verbose("the hub runtime info is: %O", runtimeInfo);
|
|
2131
2133
|
return runtimeInfo;
|
|
@@ -3961,8 +3963,9 @@ class EventHubSender {
|
|
|
3961
3963
|
onSessionError: this._onSessionError,
|
|
3962
3964
|
onSessionClose: this._onSessionClose,
|
|
3963
3965
|
};
|
|
3966
|
+
srOptions.desired_capabilities = [coreAmqp.Constants.geoReplication];
|
|
3964
3967
|
if (this._isIdempotentProducer) {
|
|
3965
|
-
srOptions.desired_capabilities
|
|
3968
|
+
srOptions.desired_capabilities.push(idempotentProducerAmqpPropertyNames.capability);
|
|
3966
3969
|
const idempotentProperties = generateIdempotentLinkProperties(this._userProvidedPublishingOptions, this._localPublishingProperties);
|
|
3967
3970
|
srOptions.properties = idempotentProperties;
|
|
3968
3971
|
}
|