Skip to content

Commit

Permalink
chore(clerk-react,nextjs): Re-export isClerkRuntimeError (#4656)
Browse files Browse the repository at this point in the history
  • Loading branch information
panteliselef authored Nov 26, 2024
1 parent b85c5d7 commit 115fd0c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/chilly-kids-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@clerk/clerk-react': patch
---

Re-export `isClerkRuntimeError` from `@clerk/clerk-react/errors`.
6 changes: 6 additions & 0 deletions .changeset/early-mice-marry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@clerk/nextjs': patch
---

- Re-export `isClerkRuntimeError` from `@clerk/clerk-react/errors`.
- Fixes and issue where `isClerkAPIError` would only exist in the client bundle.
1 change: 1 addition & 0 deletions packages/nextjs/src/client-boundary/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export {

export {
isClerkAPIResponseError,
isClerkRuntimeError,
isEmailLinkError,
isKnownError,
isMetamaskError,
Expand Down
4 changes: 3 additions & 1 deletion packages/nextjs/src/errors.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
export {
isClerkAPIResponseError,
isClerkRuntimeError,
isEmailLinkError,
isKnownError,
isMetamaskError,
EmailLinkErrorCode,
} from './client-boundary/hooks';

export { isClerkAPIResponseError } from '@clerk/clerk-react/errors';
1 change: 1 addition & 0 deletions packages/react/src/errors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export {
isClerkAPIResponseError,
isClerkRuntimeError,
isEmailLinkError,
isKnownError,
isMetamaskError,
Expand Down

0 comments on commit 115fd0c

Please sign in to comment.