Packages

@clerk/shared

4.45.1 · 14 Nov 2026MIT11.8M / weekRepositorynpmAtom feed

Upgrading @clerk/shared From 4.12.2 to 4.48.3

66 releases in betweenevery note read

Other targets from 4.12.2Latest4.45.1
  1. 4.12.2yours
  2. 1 release
  3. 4.13.1security
  4. 2 releases
  5. 4.16.0breaking
  6. 16 releases
  7. 4.25.5security
  8. 43 releases
  9. 4.48.3target
  10. 866 pre

Before you upgrade

Tick each one off as you go
  • Breaking4.16.0
  • Breaking4.16.0
  • Deprecated4.39.0
  • Deprecated4.37.0
  • Deprecated4.25.1
  • Deprecated4.24.0
  • Deprecated4.17.1

Security

  • Escape <, >, and / when serializing the Clerk auth state into SSR <script> tags, preventing a </script> sequence inside user-controllable session claims from breaking out of the script element (stored XSS). The embedded JSON still parses to identical values on the client.

    4.25.5
  • Bump js-cookie to 3.0.7 to address GHSA-qjx8-664m-686j.

    4.13.1

Release by release

  1. 4.48.3

    20 Nov 20263 fixes
    • Fixed

      Move the code behind useSignIn(), useSignUp() and useWaitlist() that listens for sign-in, sign-up and waitlist updates into @clerk/shared, so @clerk/mosaic can use it too. No behavior change.

    • Fixed

      Move the rules that decide which fields the <SignUp /> form shows and requires, and the parser for blocked-request errors, into @clerk/shared so @clerk/mosaic can use them too. No behavior change.

    • Fixed

      Fix the internal sign-up step helper used by @clerk/mosaic so it verifies the email and phone before asking for missing fields, the same order <SignUp /> follows. <SignUp /> is unaffected.

  2. 4.48.2

    20 Nov 20262 fixes
    • Fixed

      Request Frontend API version 2026-11-18, where GET responses only include the client when clerk-js asks for it.

    • Fixed

      Localize the screen reader label for the list of accounts in <OrganizationSwitcher /> with the new organizationSwitcher.membershipListLabel and organizationSwitcher.accountListLabel keys.

  3. 4.48.1

    19 Nov 20261 fix
    • Fixed

      Move the OAuth client identity notice on <OAuthConsent /> into the existing consent warning instead of a separate line under the header. A client that registered itself through Dynamic Client Registration now reads "{{applicationName}} registered itself, so its name and logo are not verified.", and a client identified by a Client ID Metadata Document reads "Details published by {{metadataHost}}.".

  4. 4.48.0

    18 Nov 20261 new
    • New

      Show how an OAuth client's identity was established on <OAuthConsent />. Clients that registered themselves through Dynamic Client Registration get an "Unverified app" notice, and clients identified by a Client ID Metadata Document show the host that publishes their details. OAuthConsentInfo gains optional clientRegistration and clientMetadataHost fields, and the notice can be styled with the new oauthConsentClientIdentity appearance element.

  5. 4.47.0

    18 Nov 20262 new
    • New

      Add clientTrustState to SignInFuture, so custom sign-in flows can read whether Clerk trusts the user's device ('new', 'known', or 'pending'). With the Device Trust Status update, Clerk returns it once the first factor, such as the password, is verified, and it's undefined before then. Without that update, Clerk returns it on every response. It's undefined when Device Trust is off.

    • New

      Add ChatGPT as a supported OAuth provider strategy for instances where Sign in with ChatGPT is enabled.

  6. 4.46.0

    17 Nov 20262 new
    • New

      Let users whose password was found in a data breach pass reverification by resetting it. Until now the reverification modal only showed the breached-password error, so these users couldn't make any change that needs reverification, including changing that password. The modal now offers "Reset your password": the user sets a new password and enters a code sent to their email or phone, as in sign-in. Their other verification methods stay available.

    • New

      Add localization keys for resetting a breached or compromised password from the reverification modal: reverification.passwordPwned, reverification.passwordCompromised, reverification.resetPassword, reverification.resetPasswordAlternativeMethods and reverification.resetPasswordCode.

  7. 4.45.1

    14 Nov 20262 fixes
    • Fixed

      Modify the polling interval for SSO domain verification on development instances.

    • Fixed

      Fix an issue where the self-serve SSO setup wizard could return to the domain step after creating a connection.

  8. 4.45.0

    12 Nov 20262 new · 2 fixes
    • New

      Add a preferImmediatelyAvailableCredentials option to signIn.authenticateWithPasskey() and signIn.passkey(). With @clerk/expo-passkeys on iOS 16+ and Android, it limits sign-in to passkeys already on the device, and the request fails without showing the "use a passkey from another device" sheet when there are none. This lets an app prompt for a passkey automatically when its sign-in screen opens. Browsers ignore it.

    • New

      Expose meta.providerError on ClerkAPIError. When getUserOauthAccessToken() fails with oauth_token_retrieval_error, it holds the OAuth provider's error, or the OAuth setting to fix when Clerk could not authenticate to the provider.

    • Fixed

      Show "Too many requests. Please try again in a bit." for both too_many_requests and signup_rate_limit_exceeded errors in the prebuilt components. Replace "The External Account was not found." with "Account not found. Please sign up or try signing in to a different account."

    • Fixed

      Fix sign-ups failing with "There is no account to transfer" when handleRedirectCallback() was called again while an earlier call was still running, for example because <SignIn /> remounted during the OAuth callback. Calls made while one is running now share its result instead of starting a second transfer.

2 internal lines (docs, tests, tooling) left out.

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.