Skip to content

Commit 562eb04

Browse files
panteliselefwobsoriano
authored andcommitted
chore(clerk-react,nextjs): Re-export isClerkRuntimeError (#4656)
1 parent ffeaac4 commit 562eb04

File tree

5 files changed

+16
-1
lines changed

5 files changed

+16
-1
lines changed

.changeset/chilly-kids-cry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@clerk/clerk-react': patch
3+
---
4+
5+
Re-export `isClerkRuntimeError` from `@clerk/clerk-react/errors`.

.changeset/early-mice-marry.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'@clerk/nextjs': patch
3+
---
4+
5+
- Re-export `isClerkRuntimeError` from `@clerk/clerk-react/errors`.
6+
- Fixes and issue where `isClerkAPIError` would only exist in the client bundle.

packages/nextjs/src/client-boundary/hooks.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ export {
1515

1616
export {
1717
isClerkAPIResponseError,
18+
isClerkRuntimeError,
1819
isEmailLinkError,
1920
isKnownError,
2021
isMetamaskError,

packages/nextjs/src/errors.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
export {
2-
isClerkAPIResponseError,
2+
isClerkRuntimeError,
33
isEmailLinkError,
44
isKnownError,
55
isMetamaskError,
66
EmailLinkErrorCode,
77
} from './client-boundary/hooks';
8+
9+
export { isClerkAPIResponseError } from '@clerk/clerk-react/errors';

packages/react/src/errors.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export {
22
isClerkAPIResponseError,
3+
isClerkRuntimeError,
34
isEmailLinkError,
45
isKnownError,
56
isMetamaskError,

0 commit comments

Comments
 (0)