@azure/event-hubs 5.7.0-beta.1 → 5.7.0

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.
Files changed (31) hide show
  1. package/CHANGELOG.md +1 -9
  2. package/README.md +1 -1
  3. package/dist/index.js +38 -729
  4. package/dist/index.js.map +1 -1
  5. package/dist-esm/src/diagnostics/instrumentEventData.js +15 -33
  6. package/dist-esm/src/diagnostics/instrumentEventData.js.map +1 -1
  7. package/dist-esm/src/diagnostics/tracing.js.map +1 -1
  8. package/dist-esm/src/eventDataBatch.js +17 -6
  9. package/dist-esm/src/eventDataBatch.js.map +1 -1
  10. package/dist-esm/src/eventHubProducerClient.js +11 -2
  11. package/dist-esm/src/eventHubProducerClient.js.map +1 -1
  12. package/dist-esm/src/index.js +0 -1
  13. package/dist-esm/src/index.js.map +1 -1
  14. package/dist-esm/src/util/constants.js +1 -1
  15. package/dist-esm/src/util/constants.js.map +1 -1
  16. package/package.json +15 -19
  17. package/types/3.1/event-hubs.d.ts +2 -287
  18. package/types/latest/event-hubs.d.ts +2 -310
  19. package/types/latest/tsdoc-metadata.json +1 -1
  20. package/dist-esm/src/batchingPartitionChannel.js +0 -241
  21. package/dist-esm/src/batchingPartitionChannel.js.map +0 -1
  22. package/dist-esm/src/eventHubBufferedProducerClient.js +0 -242
  23. package/dist-esm/src/eventHubBufferedProducerClient.js.map +0 -1
  24. package/dist-esm/src/impl/awaitableQueue.js +0 -46
  25. package/dist-esm/src/impl/awaitableQueue.js.map +0 -1
  26. package/dist-esm/src/impl/partitionAssigner.js +0 -54
  27. package/dist-esm/src/impl/partitionAssigner.js.map +0 -1
  28. package/dist-esm/src/impl/patitionKeyToIdMapper.js +0 -106
  29. package/dist-esm/src/impl/patitionKeyToIdMapper.js.map +0 -1
  30. package/dist-esm/src/util/getPromiseParts.js +0 -20
  31. package/dist-esm/src/util/getPromiseParts.js.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,25 +1,17 @@
1
1
  # Release History
2
2
 
3
- ## 5.7.0-beta.1 (2021-11-12)
3
+ ## 5.7.0 (2022-02-08)
4
4
 
5
5
  ### Features Added
6
6
 
7
- - 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.
8
7
  - 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`.
9
8
 
10
- ### Other Changes
11
-
12
- - Prevent empty spans from being created when tracing is disabled. Fixes issue [#14063](https://github.com/Azure/azure-sdk-for-js/issues/14063)
13
- - Updated to use the version `1.0.0-preview.13` of the `@azure/core-tracing` dependency.
14
-
15
9
  ## 5.6.0 (2021-07-07)
16
10
 
17
11
  ### Features Added
18
12
 
19
13
  - 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.
20
14
 
21
- - 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.
22
- - Changed TS compilation target to ES2017 in order to produce smaller bundles and use more native platform features
23
15
  - Adds the `contentType`, `correlationId`, and `messageId` AMQP properties as top-level fields on `EventData` and `ReceivedEventData`.
24
16
 
25
17
  - 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 TypeScript
43
+ #### Configure Typescript
44
44
 
45
45
  TypeScript users need to have Node type definitions installed:
46
46