Packages

@clerk/shared

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

Upgrading @clerk/shared From 0.15.3 to 4.45.1

319 releases in betweennotes for 312

Other targets from 0.15.3Newest 0.x0.24.5
  1. 0.15.3yours
  2. 5 releases
  3. 0.16.0major
  4. 2 releases
  5. 0.17.0major
  6. 2 releases
  7. 0.18.0major
  8. 0.19.0major
  9. 1 release
  10. 0.20.0major
  11. 0.21.0major
  12. 0.22.0major
  13. 1 release
  14. 0.23.0major
  15. 1 release
  16. 0.24.0major
  17. 5 releases
  18. 1.0.0major
  19. 12 releases
  20. 2.0.0major
  21. 84 releases
  22. 3.0.0major
  23. 92 releases
  24. 3.43.1security
  25. 16 releases
  26. 4.0.0major
  27. 25 releases
  28. 4.13.1security
  29. 19 releases
  30. 4.25.5security
  31. 37 releases
  32. 4.45.1target
  33. 876 pre
96+
changes to make
0
advisories fixed
235+
new
245+
fixes

Counted from 312 of 319 release notes, and the breaking changes of 5 pre-releases on the way to a major. Advisories are counted from the advisory database, in full.

Start here

Before you upgrade

Tick each one off as you go
  • Breaking4.16.0
  • Breaking4.16.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0
  • Breaking4.0.0

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
  • Fix prototype pollution vulnerability in fastDeepMergeAndReplace and fastDeepMergeAndKeep utilities by blocking dangerous keys (__proto__, constructor, prototype) during object merging.

    3.43.1

Release by release

  1. 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.

  2. 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.

  3. 4.44.1

    5 Nov 20261 fix
    • Fixed

      Move the OAuth consent redirect domain helper into @clerk/shared so it can be shared across UI packages. No behavior change.

  4. 4.44.0

    3 Nov 20261 new · 1 fix
    • New

      Add the experimental NativeAppSettingsJSON, IOSMinimumVersionJSON and AndroidMinimumVersionJSON types for the minimum app versions in the environment's native_app_settings. These may change in minor releases.

    • Fixed

      Fixes signing out of all accounts on satellite domains to preserve device recognition when Device Trust and client persistence are enabled. Preserves existing navigation callbacks when cross-domain repair is unavailable, and skips the repair redirect when Device Trust or client persistence is disabled. Malformed redirect URLs no longer prevent the sign-out request.

  5. 4.43.1

    30 Oct 20261 fix
    • Fixed

      Wait up to 10 seconds, instead of 5, for the Device Intelligence check to finish before sending a sign-in or sign-up without its result. This applies when an instance hasn't configured its own limit. Users on slow connections are less likely to have sign-ups blocked by protections that require a Device Intelligence result.

  6. 4.43.0

    27 Oct 20261 new
    • New

      Add the optional slackTeamIdHint workspace hint to Slack sign-in and sign-up attempts, including redirect, popup, and unified SSO flows.

  7. 4.42.0

    26 Oct 20261 new · 1 fix
    • New

      Add selfServeDirectorySyncEnabled to OrganizationResource. Self-serve Directory Sync is now enabled per organization by this setting instead of following selfServeSSOEnabled. In <OrganizationProfile />, the Security page now appears for organizations that have only Directory Sync enabled, and their admins can manage the connection's directory. Organizations that have self-serve SSO without Directory Sync no longer see the Directory Sync section.

    • Fixed

      Session expireAt and abandonAt no longer special-case a 0 deadline; the backend now always sends a real deadline.

  8. 4.41.1

    23 Oct 20261 new · 1 fix
    • New

      Add internal query helpers used by @clerk/mosaic.

    • Fixed

      Keep a session's expireAt and abandonAt at Unix epoch zero when the session has no maximum lifetime, instead of falling back to the current time.

21 other lines we could not sort, mostly version bumps
  • Renamed all __unstable_* methods to __internal_* (for internal APIs)

    4.0.0
  • Renamed all experimental__* and experimental_* methods to __experimental_* (for beta features)

    4.0.0
  • Refactor React SDK hooks to subscribe to auth state via useSyncExternalStore. This is a mostly internal refactor to unlock future improvements, but includes a few breaking changes and fixes.

    4.0.0
  • Updating minimum version of Node to v20.9.0

    4.0.0
  • Adjust features parsing to throw errors on unknown scopes.

    4.0.0
  • Remove clerkJSUrl, clerkJSVersion, clerkUIUrl, and clerkUIVersion props from all SDKs. To pin a specific version of @clerk/clerk-js, import the Clerk constructor from @clerk/clerk-js and pass it to ClerkProvider via the Clerk prop. To pin a specific version of @clerk/ui, import ui from @clerk/ui and pass it via the ui prop. This bundles the modules directly with your application instead of loading them from the CDN.

    4.0.0
  • Removes now unused contexts ClientContext, SessionContext, UserContext and OrganizationProvider. We do not anticipate public use of these. If you were using any of these, file an issue to discuss a path forward as they are no longer available even internally.

    4.0.0
  • getToken() now throws ClerkOfflineError instead of returning null when the client is offline.

    4.0.0
  • Update ClerkAPIError.kind value to match class name

    4.0.0
  • Removing deprecated top-level exports from @clerk/shared

    4.0.0

140 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.