Skip to content

Releases: clerk/javascript

@clerk/upgrade@1.2.0

31 Oct 19:00
15f6718
Compare
Choose a tag to compare

Minor Changes

  • Enhancing error handling throughout the SDK upgrade flow (#4410) by @jacekradko

@clerk/ui@0.1.11

31 Oct 19:00
15f6718
Compare
Choose a tag to compare

Patch Changes

@clerk/types@4.29.0

31 Oct 19:00
15f6718
Compare
Choose a tag to compare

Minor Changes

    • Introduce redirectUrl property on setActive as a replacement for beforeEmit. (#4312) by @issuedat

    • Deprecates beforeEmit property on setActive.

Patch Changes

  • Experimental: asStandalone now accepts a callback that notifies if the standalone popover needs to unmount. (#4423) by @panteliselef

    • Changed __experimental_legalAccepted checkbox Indicator element descriptor and element id (#4427) by @octoper

    • Changed __experimental_legalAccepted checkbox Label element descriptor and element id

    • Added two new element descriptors formFieldCheckboxInput, formFieldCheckboxLabel.

@clerk/themes@2.1.40

31 Oct 19:00
15f6718
Compare
Choose a tag to compare

Patch Changes

@clerk/testing@1.3.16

31 Oct 18:59
15f6718
Compare
Choose a tag to compare

Patch Changes

@clerk/tanstack-start@0.4.18

31 Oct 18:59
15f6718
Compare
Choose a tag to compare

Patch Changes

@clerk/shared@2.11.0

31 Oct 18:59
15f6718
Compare
Choose a tag to compare

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 supports Response.

Patch Changes

@clerk/remix@4.2.42

31 Oct 18:59
15f6718
Compare
Choose a tag to compare

Patch Changes

@clerk/nextjs@6.1.0

31 Oct 18:59
15f6718
Compare
Choose a tag to compare

Minor Changes

  • Bug fix: For next>=14 applications resolve __unstable__onBeforeSetActive once invalidateCacheAction resolves. (#4362) by @panteliselef

  • Introduce a new experimental hook called useReverification that makes it easy to handle reverification errors. (#4362) by @panteliselef

    It 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 with ezheaders (#4392) by @panteliselef

Patch Changes

@clerk/localizations@3.4.1

31 Oct 18:59
15f6718
Compare
Choose a tag to compare

Patch Changes