Packages

@clerk/shared

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

Upgrading @clerk/shared From 0.24.5 to 4.44.0

290 releases in betweennotes for 286

Other targets from 0.24.5Latest4.45.1
  1. 0.24.5yours
  2. 1.0.0major
  3. 12 releases
  4. 2.0.0major
  5. 84 releases
  6. 3.0.0major
  7. 92 releases
  8. 3.43.1security
  9. 16 releases
  10. 4.0.0major
  11. 25 releases
  12. 4.13.1security
  13. 19 releases
  14. 4.25.5security
  15. 34 releases
  16. 4.44.0target
  17. 763 pre
34+
changes to make
0
advisories fixed
217+
new
225+
fixes

Counted from 286 of 290 release notes. 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.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.

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

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

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

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

  6. 4.41.0

    20 Oct 20261 new
    • New

      Support passkeys as a second factor during sign-in and session reverification.

  7. 4.40.0

    9 Oct 20262 new
    • New

      Add a role mapping step to the self-serve Directory Sync setup in <OrganizationProfile />. Organization admins can now assign an organization role to each directory group their identity provider pushes, set which group wins when a member belongs to several, and turn role syncing on or off. Members in no mapped group keep the organization's default role. The step is read-only for members without the org:sys_memberships:manage permission and while the organization's role set is being migrated.

    • New

      Add an enterpriseConnectionsUrl option to handleRedirectCallback() and <AuthenticateWithRedirectCallback />. When the Clerk API asks an OAuth sign-up to choose between several enterprise connections for the same email domain, the callback navigates to this URL, which defaults to the enterprise-connections route of your sign-up page.

  8. 4.39.1

    7 Oct 20261 fix
    • Fixed

      The missing and invalid key errors now say that npx clerk@latest init does not need a Clerk account and writes temporary dev keys. Readers previously saw init listed beside link, env pull and the Dashboard link, and assumed signing up was required before any of the steps would work.

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.