-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(backend): Drop
deserialize
from top-level export
- Loading branch information
Showing
5 changed files
with
35 additions
and
3 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,12 @@ | ||
--- | ||
'@clerk/clerk-sdk-node': major | ||
--- | ||
|
||
Internal top-level BAPI resources was dropped to resolve some issues with our type resolution and also make our exposed API cleaner. | ||
```typescript | ||
// Before | ||
import { users } from "@clerk/clerk-sdk-node" | ||
// After | ||
import { clerkClient } from "@clerk/clerk-sdk-node" | ||
clerkClient.users | ||
``` |
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,23 @@ | ||
--- | ||
'@clerk/clerk-sdk-node': major | ||
'@clerk/backend': major | ||
'@clerk/nextjs': major | ||
--- | ||
|
||
Changes in `@clerk/backend` exports: | ||
- Drop Internal `deserialize` helper | ||
- Introduce `/errors` subpath export, eg: | ||
```typescript | ||
import { | ||
TokenVerificationError, | ||
TokenVerificationErrorAction, | ||
TokenVerificationErrorCode, | ||
TokenVerificationErrorReason } from '@clerk/backend/errors'; | ||
``` | ||
- Drop errors from top-level export | ||
```typescript | ||
// Before | ||
import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend'; | ||
// After | ||
import { TokenVerificationError, TokenVerificationErrorReason } from '@clerk/backend/errors'; | ||
``` |
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