@azure/eventgrid 4.10.0-alpha.20220414.1 → 4.10.0-alpha.20220421.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/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Release History
2
2
 
3
- ## 4.10.0 (Unreleased)
3
+ ## 4.10.0-beta.2 (Unreleased)
4
4
 
5
5
  ### Features Added
6
6
 
@@ -10,6 +10,14 @@
10
10
 
11
11
  ### Other Changes
12
12
 
13
+ ## 4.10.0-beta.1 (2022-04-14)
14
+
15
+ ### Features Added
16
+
17
+ - Add support for specifiying a channel to send to in a specific Partner Topic via the `channelName` property of `SendOptions`.
18
+
19
+ ### Other Changes
20
+
13
21
  - Updated our `@azure/core-tracing` dependency to the latest version (1.0.0).
14
22
  - Notable changes include Removal of `@opentelemetry/api` as a transitive dependency and ensuring that the active context is properly propagated.
15
23
  - 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.
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var coreAuth = require('@azure/core-auth');
6
+ var tslib = require('tslib');
6
7
  var coreClient = require('@azure/core-client');
7
8
  var coreTracing = require('@azure/core-tracing');
8
9
  var uuid = require('uuid');
@@ -7734,7 +7735,7 @@ class GeneratedClientContext extends coreClient__namespace.ServiceClient {
7734
7735
  const defaults = {
7735
7736
  requestContentType: "application/json; charset=utf-8"
7736
7737
  };
7737
- const packageDetails = `azsdk-js-eventgrid/4.10.0`;
7738
+ const packageDetails = `azsdk-js-eventgrid/4.10.0-beta.2`;
7738
7739
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
7739
7740
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
7740
7741
  : `${packageDetails}`;
@@ -7888,7 +7889,7 @@ function cloudEventDistributedTracingEnricherPolicy() {
7888
7889
  const tracingClient = coreTracing.createTracingClient({
7889
7890
  namespace: "Microsoft.Messaging.EventGrid",
7890
7891
  packageName: "@azure/event-grid",
7891
- packageVersion: "4.9.0",
7892
+ packageVersion: "4.10.0-beta.2",
7892
7893
  });
7893
7894
 
7894
7895
  // Copyright (c) Microsoft Corporation.
@@ -7941,7 +7942,14 @@ class EventGridPublisherClient {
7941
7942
  return this.client.publishEvents(this.endpointUrl, events.map(convertEventGridEventToModelType), updatedOptions);
7942
7943
  }
7943
7944
  case "CloudEvent": {
7944
- return this.client.publishCloudEventEvents(this.endpointUrl, events.map(convertCloudEventToModelType), updatedOptions);
7945
+ // The underlying REST API expects a header named `aeg-channel-name`, and so the generated client
7946
+ // expects that options bag has a property called `aegChannelName`, where as we expose it with the
7947
+ // friendlier name "channelName". Fix up the impedence mismatch here
7948
+ const _a = updatedOptions, { channelName } = _a, sendOptions = tslib.__rest(_a, ["channelName"]);
7949
+ if (channelName) {
7950
+ sendOptions.aegChannelName = channelName;
7951
+ }
7952
+ return this.client.publishCloudEventEvents(this.endpointUrl, events.map(convertCloudEventToModelType), sendOptions);
7945
7953
  }
7946
7954
  case "Custom": {
7947
7955
  return this.client.publishCustomEventEvents(this.endpointUrl, events, updatedOptions);