-
Notifications
You must be signed in to change notification settings - Fork 461
chore(backend): Replace Clerk with createClerkClient [SDK-1058]
#2317
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
4eb1787
chore(backend): Replace `Clerk` with `createClerkClient` [SDK-1058]
tmilewski 7526734
chore(*): Update changeset package name
tmilewski ba08516
chore(*): Add individual changesets
tmilewski a63edbd
chore(*): Update .changesets
tmilewski 884843c
chore(*): Update integration tests
tmilewski File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| --- | ||
| '@clerk/clerk-sdk-node': major | ||
| --- | ||
|
|
||
| (Note: This is only relevant if, in the unlikely case, you are using `Clerk` from `@clerk/clerk-sdk-node` directly. If not, you can safely ignore this change.) | ||
|
|
||
| Remove the named `Clerk` import from `@clerk/clerk-sdk-node` and import `createClerkClient` instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future. | ||
|
|
||
| ```js | ||
| import { Clerk } from '@clerk/clerk-sdk-node'; | ||
| const clerk = Clerk({ secretKey: '...' }); | ||
| ``` | ||
|
|
||
| You need to rename the import from `Clerk` to `createClerkClient` and change its usage: | ||
|
|
||
| ```js | ||
| import { createClerkClient } from '@clerk/clerk-sdk-node'; | ||
| const clerk = createClerkClient({ secretKey: '...' }); | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| --- | ||
| '@clerk/backend': major | ||
| --- | ||
|
|
||
| Remove the named `Clerk` import from `@clerk/backend` and import `createClerkClient` instead. The latter is a factory method that will create a Clerk client instance for you. This aligns usage across our SDKs and will enable us to better ship DX improvements in the future. | ||
|
|
||
|
|
||
| Inside your code, search for occurrences like these: | ||
|
|
||
| ```js | ||
| import { Clerk } from '@clerk/backend'; | ||
| const clerk = Clerk({ secretKey: '...' }); | ||
| ``` | ||
|
|
||
| You need to rename the import from `Clerk` to `createClerkClient` and change its usage: | ||
|
|
||
| ```js | ||
| import { createClerkClient } from '@clerk/backend'; | ||
| const clerk = createClerkClient({ secretKey: '...' }); | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| --- | ||
| 'gatsby-plugin-clerk': major | ||
| --- | ||
|
|
||
| Remove the named `Clerk` import from `gatsby-plugin-clerk` and import `createClerkClient` instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future. | ||
|
|
||
| Inside your code, search for occurrences like these: | ||
|
|
||
| ```js | ||
| import { Clerk } from 'gatsby-plugin-clerk'; | ||
| const clerk = Clerk({ secretKey: '...' }); | ||
| ``` | ||
|
|
||
| You need to rename the import from `Clerk` to `createClerkClient` and change its usage: | ||
|
|
||
| ```js | ||
| import { createClerkClient } from 'gatsby-plugin-clerk'; | ||
| const clerk = createClerkClient({ secretKey: '...' }); | ||
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| --- | ||
| '@clerk/remix': major | ||
| --- | ||
|
|
||
| (Note: This is only relevant if, in the unlikely case, you are using `Clerk` from `@clerk/remix` directly. If not, you can safely ignore this change.) | ||
|
|
||
| Remove the named `Clerk` import from `@clerk/remix` and import `createClerkClient` instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future. | ||
|
|
||
| ```js | ||
| import { Clerk } from '@clerk/remix'; | ||
| const clerk = Clerk({ secretKey: '...' }); | ||
| ``` | ||
|
|
||
| You need to rename the import from `Clerk` to `createClerkClient` and change its usage: | ||
|
|
||
| ```js | ||
| import { createClerkClient } from '@clerk/remix'; | ||
| const clerk = createClerkClient({ secretKey: '...' }); | ||
| ``` | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
| '@clerk/fastify': major | ||
| --- | ||
|
|
||
| (Note: This is only relevant if, in the unlikely case, you are using `Clerk` from `@clerk/fastify` directly. If not, you can safely ignore this change.) | ||
|
|
||
| Remove the named `Clerk` import from `@clerk/fastify` and import `createClerkClient` instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future. | ||
|
|
||
|
|
||
| ```js | ||
| import { Clerk } from '@clerk/fastify'; | ||
| const clerk = Clerk({ secretKey: '...' }); | ||
| ``` | ||
|
|
||
| You need to rename the import from `Clerk` to `createClerkClient` and change its usage: | ||
|
|
||
| ```js | ||
| import { createClerkClient } from '@clerk/fastify'; | ||
| const clerk = createClerkClient({ secretKey: '...' }); | ||
| ``` | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| --- | ||
| '@clerk/nextjs': major | ||
| --- | ||
|
|
||
| (Note: This is only relevant if, in the unlikely case, you are using `Clerk` from `@clerk/nextjs` directly. If not, you can safely ignore this change.) | ||
|
|
||
| Remove the named `Clerk` import from `@clerk/nextjs` and import `createClerkClient` instead. The latter is a factory method to create a Clerk client instance for you. This update aligns usage across our SDKs and will enable us to ship DX improvements better in the future. | ||
|
|
||
| ```js | ||
| import { Clerk } from '@clerk/nextjs'; | ||
| const clerk = Clerk({ secretKey: '...' }); | ||
| ``` | ||
|
|
||
| You need to rename the import from `Clerk` to `createClerkClient` and change its usage: | ||
|
|
||
| ```js | ||
| import { createClerkClient } from '@clerk/nextjs'; | ||
| const clerk = createClerkClient({ secretKey: '...' }); | ||
| ``` | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1 @@ | ||
| import { Clerk } from '@clerk/backend'; | ||
|
|
||
| const createClerkClient = Clerk; | ||
|
|
||
| export { createClerkClient }; | ||
|
|
||
| export * from '@clerk/backend'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.