Releases: clerk/javascript
@clerk/upgrade@1.2.0
Minor Changes
- Enhancing error handling throughout the SDK upgrade flow (#4410) by @jacekradko
@clerk/ui@0.1.11
@clerk/types@4.29.0
Minor Changes
Patch Changes
-
Experimental:
asStandalone
now accepts a callback that notifies if the standalone popover needs to unmount. (#4423) by @panteliselef
@clerk/themes@2.1.40
@clerk/testing@1.3.16
@clerk/tanstack-start@0.4.18
@clerk/shared@2.11.0
Minor Changes
-
Introduce experimental reverification error helpers. (#4362) by @panteliselef
reverificationMismatch
returns the error as an object which can later be used as a return value from a React Server Action.reverificationMismatchResponse
returns a Response with the above object serialized. It can be used in any Backend Javascript frameworks that supportsResponse
.
Patch Changes
@clerk/remix@4.2.42
@clerk/nextjs@6.1.0
Minor Changes
-
Bug fix: For next>=14 applications resolve
__unstable__onBeforeSetActive
onceinvalidateCacheAction
resolves. (#4362) by @panteliselef -
Introduce a new experimental hook called
useReverification
that makes it easy to handle reverification errors. (#4362) by @panteliselefIt returns a high order function (HOF) and allows developers to wrap any function that triggers a fetch request which might fail due to a user's session verification status.
When such error is returned, the recommended UX is to offer a way to the user to recover by re-verifying their credentials.
This helper will automatically handle this flow in the developer's behalf, by displaying a modal the end-user can interact with.
Upon completion, the original request that previously failed, will be retried (only once).Example with clerk-js methods.
import { __experimental_useReverification as useReverification } from "@clerk/nextjs"; function DeleteAccount() { const { user } = useUser(); const [deleteUserAccount] = useReverification(() => { if (!user) return; return user.delete(); }); return ( <> <button onClick={async () => { await deleteUserAccount(); }} > Delete account </button> </> ); }
-
Replace
next/headers
withezheaders
(#4392) by @panteliselef
Patch Changes
-
Fixes a bug where
<ClerkProvider dynamic>
would error when rendered in a Next.js 13 application using the App Router. (#4421) by @BRKalow -
Updating peerDependencies for correct ranges (#4436) by @jacekradko
-
Updated dependencies [
69c8f4f21
,f875463da
,41f2ede56
,5be7ca9fd
,08c5a2add
,08c5a2add
,24cd77989
,434b432f8
]:- @clerk/clerk-react@5.14.0
- @clerk/types@4.29.0
- @clerk/shared@2.11.0
- @clerk/backend@1.15.2
@clerk/localizations@3.4.1
Patch Changes
-
pl-PL localization updates (#4370) by @mic0ishere
-
Fix formatting of
sv-SE
(#4419) by @alexcarpenter -
Fix
frFR
confirmDeletionUserAccount text to ensure button text is enabled properly when the values match. (#4420) by @alexcarpenter -
Update the 'sv-SE' localization. (#4292) by @MarcusT96
-
Updated dependencies [
f875463da
,5be7ca9fd
,434b432f8
]:- @clerk/types@4.29.0