diff --git a/.changeset/chilly-kids-cry.md b/.changeset/chilly-kids-cry.md new file mode 100644 index 00000000000..f9e9ddf6a86 --- /dev/null +++ b/.changeset/chilly-kids-cry.md @@ -0,0 +1,5 @@ +--- +'@clerk/clerk-react': patch +--- + +Re-export `isClerkRuntimeError` from `@clerk/clerk-react/errors`. diff --git a/.changeset/early-mice-marry.md b/.changeset/early-mice-marry.md new file mode 100644 index 00000000000..1d118c9199c --- /dev/null +++ b/.changeset/early-mice-marry.md @@ -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. diff --git a/packages/nextjs/src/client-boundary/hooks.ts b/packages/nextjs/src/client-boundary/hooks.ts index 41b0d8a008a..7aecceaff5f 100644 --- a/packages/nextjs/src/client-boundary/hooks.ts +++ b/packages/nextjs/src/client-boundary/hooks.ts @@ -15,6 +15,7 @@ export { export { isClerkAPIResponseError, + isClerkRuntimeError, isEmailLinkError, isKnownError, isMetamaskError, diff --git a/packages/nextjs/src/errors.ts b/packages/nextjs/src/errors.ts index 42c151a8f76..2ade23d7517 100644 --- a/packages/nextjs/src/errors.ts +++ b/packages/nextjs/src/errors.ts @@ -1,7 +1,9 @@ export { - isClerkAPIResponseError, + isClerkRuntimeError, isEmailLinkError, isKnownError, isMetamaskError, EmailLinkErrorCode, } from './client-boundary/hooks'; + +export { isClerkAPIResponseError } from '@clerk/clerk-react/errors'; diff --git a/packages/react/src/errors.ts b/packages/react/src/errors.ts index e67bef13332..cf2f8d0a5c3 100644 --- a/packages/react/src/errors.ts +++ b/packages/react/src/errors.ts @@ -1,5 +1,6 @@ export { isClerkAPIResponseError, + isClerkRuntimeError, isEmailLinkError, isKnownError, isMetamaskError,