Skip to content

Commit 3d4c750

Browse files
committed
Remove the retired enhancedEmailDeliverability instance setting from @clerk/backend
1 parent dc7fab3 commit 3d4c750

4 files changed

Lines changed: 9 additions & 5 deletions

File tree

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
'@clerk/backend': major
3+
---
4+
5+
Remove the retired `enhancedEmailDeliverability` instance setting. The
6+
underlying delivery path (Clerk's legacy shared-domain sending) has been
7+
retired server-side, and the field is ignored by the Backend API, so it is
8+
removed from `InstanceApi.updateInstance` params, the `InstanceSettings`
9+
resource, and its JSON type.

packages/backend/src/api/endpoints/InstanceApi.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@ export type UpdateParams = {
1212
testMode?: boolean | null | undefined;
1313
/** Whether the instance should be using the Have I Been Pwned (HIBP) service to check passwords for breaches. */
1414
hibp?: boolean | null | undefined;
15-
/** Whether the instance should send emails from "verifications@clerk.dev" instead of your domain. This can be helpful if you do not have a high domain reputation. */
16-
enhancedEmailDeliverability?: boolean | null | undefined;
1715
/** The support email for the instance. */
1816
supportEmail?: string | null | undefined;
1917
/** The npm version for `@clerk/clerk-js`. */

packages/backend/src/api/resources/InstanceSettings.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ export class InstanceSettings {
66
readonly restrictedToAllowlist?: boolean | undefined,
77
readonly fromEmailAddress?: string | undefined,
88
readonly progressiveSignUp?: boolean | undefined,
9-
readonly enhancedEmailDeliverability?: boolean | undefined,
109
) {}
1110

1211
static fromJSON(data: InstanceSettingsJSON): InstanceSettings {
@@ -15,7 +14,6 @@ export class InstanceSettings {
1514
data.restricted_to_allowlist,
1615
data.from_email_address,
1716
data.progressive_sign_up,
18-
data.enhanced_email_deliverability,
1917
);
2018
}
2119
}

packages/backend/src/api/resources/JSON.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,6 @@ export interface InstanceSettingsJSON extends ClerkResourceJSON {
323323
restricted_to_allowlist: boolean;
324324
from_email_address: string;
325325
progressive_sign_up: boolean;
326-
enhanced_email_deliverability: boolean;
327326
}
328327

329328
export interface InvitationJSON extends ClerkResourceJSON {

0 commit comments

Comments
 (0)