@azure/event-hubs 5.7.0 → 5.8.0-alpha.20220215.4
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/CHANGELOG.md +31 -1
- package/README.md +1 -1
- package/dist/index.js +4859 -3772
- package/dist/index.js.map +1 -1
- package/dist-esm/src/batchingPartitionChannel.js +241 -0
- package/dist-esm/src/batchingPartitionChannel.js.map +1 -0
- package/dist-esm/src/connectionContext.js +13 -13
- package/dist-esm/src/connectionContext.js.map +1 -1
- package/dist-esm/src/dataTransformer.js +5 -5
- package/dist-esm/src/dataTransformer.js.map +1 -1
- package/dist-esm/src/diagnostics/instrumentEventData.js +35 -17
- package/dist-esm/src/diagnostics/instrumentEventData.js.map +1 -1
- package/dist-esm/src/diagnostics/tracing.js +21 -82
- package/dist-esm/src/diagnostics/tracing.js.map +1 -1
- package/dist-esm/src/eventData.js +65 -5
- package/dist-esm/src/eventData.js.map +1 -1
- package/dist-esm/src/eventDataAdapter.js +31 -0
- package/dist-esm/src/eventDataAdapter.js.map +1 -0
- package/dist-esm/src/eventDataBatch.js +84 -26
- package/dist-esm/src/eventDataBatch.js.map +1 -1
- package/dist-esm/src/eventHubBufferedProducerClient.js +279 -0
- package/dist-esm/src/eventHubBufferedProducerClient.js.map +1 -0
- package/dist-esm/src/eventHubConsumerClient.js +10 -11
- package/dist-esm/src/eventHubConsumerClient.js.map +1 -1
- package/dist-esm/src/eventHubConsumerClientModels.js.map +1 -1
- package/dist-esm/src/eventHubProducerClient.js +141 -78
- package/dist-esm/src/eventHubProducerClient.js.map +1 -1
- package/dist-esm/src/eventHubReceiver.js +18 -25
- package/dist-esm/src/eventHubReceiver.js.map +1 -1
- package/dist-esm/src/eventHubSender.js +218 -61
- package/dist-esm/src/eventHubSender.js.map +1 -1
- package/dist-esm/src/eventPosition.js +3 -3
- package/dist-esm/src/eventPosition.js.map +1 -1
- package/dist-esm/src/eventProcessor.js +8 -8
- package/dist-esm/src/eventProcessor.js.map +1 -1
- package/dist-esm/src/eventhubConnectionConfig.js +1 -1
- package/dist-esm/src/eventhubConnectionConfig.js.map +1 -1
- package/dist-esm/src/impl/awaitableQueue.js +46 -0
- package/dist-esm/src/impl/awaitableQueue.js.map +1 -0
- package/dist-esm/src/impl/partitionAssigner.js +54 -0
- package/dist-esm/src/impl/partitionAssigner.js.map +1 -0
- package/dist-esm/src/impl/patitionKeyToIdMapper.js +106 -0
- package/dist-esm/src/impl/patitionKeyToIdMapper.js.map +1 -0
- package/dist-esm/src/inMemoryCheckpointStore.js.map +1 -1
- package/dist-esm/src/index.js +3 -1
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/linkEntity.js +7 -11
- package/dist-esm/src/linkEntity.js.map +1 -1
- package/dist-esm/src/loadBalancerStrategies/balancedStrategy.js.map +1 -1
- package/dist-esm/src/loadBalancerStrategies/greedyStrategy.js.map +1 -1
- package/dist-esm/src/loadBalancerStrategies/loadBalancingStrategy.js +2 -3
- package/dist-esm/src/loadBalancerStrategies/loadBalancingStrategy.js.map +1 -1
- package/dist-esm/src/loadBalancerStrategies/unbalancedStrategy.js.map +1 -1
- package/dist-esm/src/log.js +1 -1
- package/dist-esm/src/log.js.map +1 -1
- package/dist-esm/src/managementClient.js +77 -96
- package/dist-esm/src/managementClient.js.map +1 -1
- package/dist-esm/src/models/private.js +1 -1
- package/dist-esm/src/models/private.js.map +1 -1
- package/dist-esm/src/models/public.js.map +1 -1
- package/dist-esm/src/partitionProcessor.js +1 -1
- package/dist-esm/src/partitionProcessor.js.map +1 -1
- package/dist-esm/src/partitionPump.js +16 -42
- package/dist-esm/src/partitionPump.js.map +1 -1
- package/dist-esm/src/pumpManager.js +1 -9
- package/dist-esm/src/pumpManager.js.map +1 -1
- package/dist-esm/src/receiveHandler.js.map +1 -1
- package/dist-esm/src/util/connectionStringUtils.js +1 -1
- package/dist-esm/src/util/connectionStringUtils.js.map +1 -1
- package/dist-esm/src/util/constants.js +15 -2
- package/dist-esm/src/util/constants.js.map +1 -1
- package/dist-esm/src/util/delayWithoutThrow.js.map +1 -1
- package/dist-esm/src/util/error.js +68 -0
- package/dist-esm/src/util/error.js.map +1 -1
- package/dist-esm/src/util/getPromiseParts.js +20 -0
- package/dist-esm/src/util/getPromiseParts.js.map +1 -0
- package/dist-esm/src/util/typeGuards.js +1 -1
- package/dist-esm/src/util/typeGuards.js.map +1 -1
- package/package.json +35 -34
- package/types/3.1/event-hubs.d.ts +449 -11
- package/types/latest/event-hubs.d.ts +449 -13
- package/types/latest/tsdoc-metadata.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,47 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
-
## 5.
|
|
3
|
+
## 5.8.0-beta.2 (Unreleased)
|
|
4
4
|
|
|
5
5
|
### Features Added
|
|
6
6
|
|
|
7
|
+
### Breaking Changes
|
|
8
|
+
|
|
9
|
+
### Bugs Fixed
|
|
10
|
+
|
|
11
|
+
### Other Changes
|
|
12
|
+
|
|
13
|
+
- Updated our `@azure/core-tracing` dependency to the latest version (1.0.0-preview.14)
|
|
14
|
+
- Notable changes include Removal of `@opentelemetry/api` as a transitive dependency and ensuring that the active context is properly propagated.
|
|
15
|
+
- Customers who would like to continue using OpenTelemetry driven tracing should visit our [OpenTelemetry Instrumentation](https://www.npmjs.com/package/@azure/opentelemetry-instrumentation-azure-sdk) package for instructions.
|
|
16
|
+
|
|
17
|
+
## 5.8.0-beta.1 (2022-02-08)
|
|
18
|
+
|
|
19
|
+
### Features Added
|
|
20
|
+
|
|
21
|
+
- A new function `createEventDataAdapter` is exported that can convert an `EventData` to a simple message with `body` and `contentType` fields. This adapter can be used with the Avro encoder in `@azure/schema-registry-avro` starting from version 1.0.0-beta.6 to create `EventData` messages with Avro-encoded bodies.
|
|
22
|
+
|
|
23
|
+
- When publishing events to Event Hubs, timeouts or other transient failures may introduce ambiguity into the understanding of whether a batch of events was received by the service. To assist in this scenario, the option to publish events idempotently has been added to `EventHubBufferedProducerClient`. The functionality can be enabled by setting the `enableIdempotentPartitions` client option to `true`. If enabled, retries during publishing will attempt to avoid duplication with a minor cost to throughput. Duplicates are still possible but the chance of them occurring is much lower when idempotent retries are enabled. [PR #20156](https://github.com/Azure/azure-sdk-for-js/pull/20156)
|
|
24
|
+
|
|
25
|
+
## 5.7.0-beta.1 (2021-11-12)
|
|
26
|
+
|
|
27
|
+
### Features Added
|
|
28
|
+
|
|
29
|
+
- Added `EventHubBufferedProducerClient` with functionality to manage batching, concurrency, and sending of events implicitly. This abstracts the complexity away from applications regarding publishing events in an optimal fashion. See issue [#17699](https://github.com/Azure/azure-sdk-for-js/issues/17699) for more details.
|
|
7
30
|
- Added `skipParsingBodyAsJson` optional parameter to `EventHubConsumerClient.subscribe` method. When set to `true` it will disable the client from running `JSON.parse()` on the message body when receiving the message. Not applicable if the message was sent with AMQP body type `value` or `sequence`.
|
|
8
31
|
|
|
32
|
+
### Other Changes
|
|
33
|
+
|
|
34
|
+
- Prevent empty spans from being created when tracing is disabled. Fixes issue [#14063](https://github.com/Azure/azure-sdk-for-js/issues/14063)
|
|
35
|
+
- Updated to use the version `1.0.0-preview.13` of the `@azure/core-tracing` dependency.
|
|
36
|
+
|
|
9
37
|
## 5.6.0 (2021-07-07)
|
|
10
38
|
|
|
11
39
|
### Features Added
|
|
12
40
|
|
|
13
41
|
- With the dropping of support for Node.js versions that are no longer in LTS, the dependency on `@types/node` has been updated to version 12. Read our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
|
|
14
42
|
|
|
43
|
+
- Updated our internal core package dependencies to their latest versions in order to add support for Opentelemetry 1.0.0 which is compatible with the latest versions of our other client libraries.
|
|
44
|
+
- Changed TS compilation target to ES2017 in order to produce smaller bundles and use more native platform features
|
|
15
45
|
- Adds the `contentType`, `correlationId`, and `messageId` AMQP properties as top-level fields on `EventData` and `ReceivedEventData`.
|
|
16
46
|
|
|
17
47
|
- Enable encoding the body of a message to the 'value' or 'sequence' sections (via AmqpAnnotatedMessage.bodyType). Using this encoding is not required but does allow you to take advantage of native AMQP serialization for supported primitives or sequences.
|
package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUP
|
|
|
40
40
|
- An [Azure subscription](https://azure.microsoft.com/free/)
|
|
41
41
|
- An [Event Hubs Namespace](https://docs.microsoft.com/azure/event-hubs/)
|
|
42
42
|
|
|
43
|
-
#### Configure
|
|
43
|
+
#### Configure TypeScript
|
|
44
44
|
|
|
45
45
|
TypeScript users need to have Node type definitions installed:
|
|
46
46
|
|