Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .changeset/eleven-bananas-joke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@clerk/clerk-sdk-node': patch
'@clerk/backend': patch
---

Remove createSms functions from @clerk/backend and @clerk/sdk-node.

The equivalent /sms_messages Backend API endpoint will also dropped in the future, since this feature will no longer be available for new instances.

For a brief period it will still be accessible for instances that have used it in the past 7
days (13-11-2023 to 20-11-2023).

New instances will get a 403 forbidden response if they try to access it.
12 changes: 12 additions & 0 deletions .changeset/slimy-windows-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
'@clerk/backend': minor
---

Deprecate `createSMSMessage` and `SMSMessageApi` from `clerkClient`.

The equivalent `/sms_messages` Backend API endpoint will also be dropped in the future, since this feature will no longer be available for new instances.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
The equivalent `/sms_messages` Backend API endpoint will also be dropped in the future, since this feature will no longer be available for new instances.
The `/sms_messages` Backend API endpoint will also be dropped in the future since this feature will no longer be available for new Clerk instances.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SokratisVidros I had enabled auto merge from yesterday and did not get a chance to update the copyright 😓

Copy link
Contributor Author

@Nikpolik Nikpolik Nov 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Its updated in #2184 which is for v4 release


For a brief period it will still be accessible for instances that have used it in the past 7
days (13-11-2023 to 20-11-2023).

New instances will get a 403 forbidden response if they try to access it.
1 change: 0 additions & 1 deletion packages/backend/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ clerk.phoneNumbers;
clerk.redirectUrls;
clerk.sessions;
clerk.signInTokens;
clerk.smsMessages;
clerk.users;

// These functions should be used by framework-specific libraries, such as @clerk/nextjs or @clerk/remix.
Expand Down
19 changes: 0 additions & 19 deletions packages/backend/src/api/endpoints/SMSMessageApi.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/backend/src/api/endpoints/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,4 @@ export * from './PhoneNumberApi';
export * from './RedirectUrlApi';
export * from './SessionApi';
export * from './SignInTokenApi';
export * from './SMSMessageApi';
export * from './UserApi';
2 changes: 0 additions & 2 deletions packages/backend/src/api/factory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ import {
RedirectUrlAPI,
SessionAPI,
SignInTokenAPI,
SMSMessageAPI,
UserAPI,
} from './endpoints';
import { buildRequest } from './request';
Expand All @@ -35,7 +34,6 @@ export function createBackendApiClient(options: CreateBackendApiOptions) {
redirectUrls: new RedirectUrlAPI(request),
sessions: new SessionAPI(request),
signInTokens: new SignInTokenAPI(request),
smsMessages: new SMSMessageAPI(request),
users: new UserAPI(request),
domains: new DomainAPI(request),
};
Expand Down
19 changes: 0 additions & 19 deletions packages/sdk-node/examples/node/src/smsMessages.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ exports[`module exports should not change unless explicitly set 1`] = `
"signJwt",
"signedInAuthObject",
"signedOutAuthObject",
"smsMessages",
"users",
"verifyJwt",
"verifyToken",
Expand Down
2 changes: 0 additions & 2 deletions packages/sdk-node/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ export { Clerk, clerkClient, ClerkExpressRequireAuth, ClerkExpressWithAuth, crea

const {
users,
smsMessages,
sessions,
emailAddresses,
phoneNumbers,
Expand All @@ -42,7 +41,6 @@ export {
organizations,
phoneNumbers,
sessions,
smsMessages,
users,
};

Expand Down