-
Notifications
You must be signed in to change notification settings - Fork 253
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(clerk-sdk-node): Drop deprecations (#2021)
* chore(clerk-sdk-node): Drop `CLERK_API_KEY` and `apiKey` * chore(clerk-sdk-node): Drop `verifySessionToken` hotfix for Redwood * chore(clerk-sdk-node): Drop `CLERK_FRONTEND_API` and `frontendApi` * chore(clerk-sdk-node): Drop clerkClient exposed setters The dropped setters: `setClerkApiVersion`, `setClerkHttpOptions`, `setClerkServerApiUrl` * chore(clerk-sdk-node): Move tests under __tests__ directory for consistency * fix(clerk-sdk-node): Fix package exports Changes: - drop subpath exports of /esm|cjs/instance * chore(clerk-sdk-node): Drop unused info script - replaced by tsup * chore(repo): Add changeset
- Loading branch information
Showing
22 changed files
with
67 additions
and
207 deletions.
There are no files selected for viewing
This file contains 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/clerk-sdk-node': major | ||
--- | ||
|
||
Drop deprecations. Migration steps: | ||
|
||
- use `CLERK_SECRET_KEY` instead of `CLERK_API_KEY` env variable | ||
- use `secretKey` instead of `apiKey` | ||
- use `CLERK_PUBLISHABLE_KEY` instead of `CLERK_FRONTEND_API` env variable | ||
- use `publishableKey` instead of `frontendApi` | ||
- drop Redwood hotfix (upgrade to latest version) | ||
- use `createClerkClient` with options to create a new clerkClient instead of using | ||
the following setters: | ||
- `setClerkApiVersion` | ||
- `setClerkHttpOptions` | ||
- `setClerkServerApiUrl` | ||
- `setClerkApiKey` | ||
- use `@clerk/clerk-sdk-node` instead of `@clerk/clerk-sdk-node/{cjs|esm}/instance` | ||
|
||
Extra: | ||
- bundle only index.ts and instance.ts |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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 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 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,2 +1 @@ | ||
process.env.CLERK_API_KEY = 'TEST_API_KEY'; | ||
process.env.CLERK_SECRET_KEY = 'TEST_API_KEY'; | ||
process.env.CLERK_SECRET_KEY = 'TEST_SECRET_KEY'; |
This file contains 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 was deleted.
Oops, something went wrong.
This file contains 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 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 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 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 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 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.