Skip to content

Commit 29a8eab

Browse files
ddouglas-msftyogeshmonatekimball-msft
authored
Azure.Communication.Email 1.1.0 - 2025-09-01 (#36008)
### Packages impacted by this PR ### Issues associated with this PR ### Describe the problem that is addressed by this PR ### What are the possible designs available to address the problem? If there are more than one possible design, why was the one in this PR chosen? ### Are there test cases added in this PR? _(If not, why?)_ ### Provide a list of related PRs _(if any)_ ### Command used to generate this PR:**_(Applicable only to SDK release request PRs)_ ### Checklists - [ ] Added impacted package name to the issue description - [ ] Does this PR needs any fixes in the SDK Generator?** _(If so, create an Issue in the [Autorest/typescript](https://github.com/Azure/autorest.typescript) repository and link it here)_ - [ ] Added a changelog (if necessary) --------- Co-authored-by: yogeshmo <yogeshmo@umich.edu> Co-authored-by: Nate Kimball <natekimball@microsoft.com>
1 parent 05a9860 commit 29a8eab

File tree

15 files changed

+269
-243
lines changed

15 files changed

+269
-243
lines changed

pnpm-lock.yaml

Lines changed: 5 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/communication-email/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Release History
22

3+
## 1.1.0 (2025-09-01)
4+
5+
### Other Changes
6+
7+
- Consumers can now provide a value for the `contentId` property when sending emails with attachments.
8+
This allows consumers to reference attachments in the email body using the `cid` scheme. The `contentId` property can be set on the `EmailAttachment` object.
9+
- Updated to `@azure/core-lro` 2.7.2
10+
311
## 1.0.1-beta.2 (2024-12-23)
412

513
### Other Changes

sdk/communication/communication-email/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "js",
44
"TagPrefix": "js/communication/communication-email",
5-
"Tag": "js/communication/communication-email_fed8b113e3"
5+
"Tag": "js/communication/communication-email_b6d832d890"
66
}

sdk/communication/communication-email/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure/communication-email",
3-
"version": "1.0.1-beta.2",
3+
"version": "1.1.0",
44
"description": "The is the JS Client SDK for email. This SDK enables users to send emails and get the status of sent email message.",
55
"author": "Microsoft Corporation",
66
"license": "MIT",
@@ -38,10 +38,11 @@
3838
"email"
3939
],
4040
"dependencies": {
41+
"@azure/abort-controller": "^2.1.2",
4142
"@azure/communication-common": "^2.3.1",
4243
"@azure/core-auth": "^1.9.0",
4344
"@azure/core-client": "^1.9.2",
44-
"@azure/core-lro": "^2.5.0",
45+
"@azure/core-lro": "^2.7.2",
4546
"@azure/core-rest-pipeline": "^1.18.0",
4647
"@azure/core-util": "^1.11.0",
4748
"@azure/logger": "^1.1.4",
@@ -50,7 +51,7 @@
5051
"devDependencies": {
5152
"@azure-tools/test-credential": "workspace:^",
5253
"@azure-tools/test-recorder": "workspace:^",
53-
"@azure/arm-communication": "^4.1.0",
54+
"@azure/arm-communication": "workspace:^",
5455
"@azure/dev-tool": "workspace:^",
5556
"@azure/eslint-plugin-azure-sdk": "workspace:^",
5657
"@azure/identity": "catalog:internal",
@@ -60,7 +61,7 @@
6061
"dotenv": "catalog:testing",
6162
"eslint": "catalog:",
6263
"playwright": "catalog:testing",
63-
"typescript": "catalog:",
64+
"typescript": "~5.8.3",
6465
"vitest": "catalog:testing"
6566
},
6667
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/communication/communication-email/",

sdk/communication/communication-email/review/communication-email-node.api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
import type { CommonClientOptions } from '@azure/core-client';
88
import type { KeyCredential } from '@azure/core-auth';
99
import type { OperationOptions } from '@azure/core-client';
10-
import type { PollerLike } from '@azure/core-lro';
11-
import type { PollOperationState } from '@azure/core-lro';
10+
import type { OperationState } from '@azure/core-lro';
11+
import type { SimplePollerLike } from '@azure/core-lro';
1212
import type { TokenCredential } from '@azure/core-auth';
1313

1414
// @public
@@ -29,7 +29,7 @@ export interface EmailAttachment {
2929
export class EmailClient {
3030
constructor(connectionString: string, options?: EmailClientOptions);
3131
constructor(endpoint: string, credential: KeyCredential | TokenCredential, options?: EmailClientOptions);
32-
beginSend(message: EmailMessage, options?: EmailSendOptionalParams): Promise<PollerLike<PollOperationState<EmailSendResponse>, EmailSendResponse>>;
32+
beginSend(message: EmailMessage, options?: EmailSendOptionalParams): Promise<SimplePollerLike<OperationState<EmailSendResponse>, EmailSendResponse>>;
3333
}
3434

3535
// @public

sdk/communication/communication-email/src/emailClient.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import type { EmailClientOptions, EmailMessage, EmailSendOptionalParams } from "./models.js";
55
import type { KeyCredential, TokenCredential } from "@azure/core-auth";
66
import { isTokenCredential } from "@azure/core-auth";
7-
import type { PollerLike, PollOperationState } from "@azure/core-lro";
7+
import type { SimplePollerLike, OperationState } from "@azure/core-lro";
88
import {
99
createCommunicationAuthPolicy,
1010
isKeyCredential,
@@ -79,7 +79,7 @@ export class EmailClient {
7979
beginSend(
8080
message: EmailMessage,
8181
options?: EmailSendOptionalParams,
82-
): Promise<PollerLike<PollOperationState<EmailSendResponse>, EmailSendResponse>> {
82+
): Promise<SimplePollerLike<OperationState<EmailSendResponse>, EmailSendResponse>> {
8383
return this.generatedClient.email.beginSend(message, options);
8484
}
8585
}

sdk/communication/communication-email/src/generated/src/emailRestApiClient.ts

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/communication-email/src/generated/src/lroImpl.ts

Lines changed: 31 additions & 23 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/communication/communication-email/src/generated/src/models/index.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)