Packages

@clerk/shared

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

Upgrading @clerk/shared From 3.22.0 to 3.48.1

53 releases in betweennotes for 52

Other targets from 3.22.0Clears its 2 advisories3.47.5Latest4.45.1
  1. 3.22.0yours
  2. 36 releases
  3. 3.43.1security
  4. 7 releases
  5. 3.47.2breaking
  6. 3 releases
  7. 3.47.6security
  8. 3 releases
  9. 3.48.1target
2+
changes to make
2
advisories fixed
48+
new
46+
fixes

Counted from 52 of 53 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Breaking3.47.2
  • Deprecated3.30.0

Security

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

    3.47.6
  • 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. 3.48.1

    11 Nov 20261 fix
    • Fixed

      Reject JWTs of another category, such as JWT templates, M2M tokens and OIDC ID tokens, where a session or handshake token is expected. authenticateRequest() now returns a signed-out state with reason token-type-mismatch for such a token in the Authorization header or __session cookie. Tokens with no category tag are unaffected.

  2. 3.48.0

    18 Sep 20261 new
    • New

      Internal improvements to Clerk Protect. No action is required.

  3. 3.47.8

    13 Jul 20261 fix
    • Fixed

      Fail fast when the Clerk Frontend API (FAPI) is slow or unreachable during load. The client request and the load-recovery token mint are now bounded by a timeout, and the timed-out client request is aborted instead of being left in flight. A cold Clerk.load() renders identity from a freshly minted session token (falling back to the session cookie if the mint fails) in seconds instead of hanging while retries run. After a degraded load, the client is re-fetched in the background without a time limit, so a slow-but-healthy origin recovers full client data (user profile, other sessions) without a reload. Also fixes hooks like useUser() keeping the cookie-derived stub user after full user data arrives. Adds a timeLimit utility to @clerk/shared/utils that optionally aborts an AbortController on timeout.

  4. 3.47.7

    27 May 20261 new · 1 fix
    • New

      Add oiat (original_issued_at) field to JwtHeader type for Session Minter monotonic token freshness checks.

    • Fixed

      Send previous session token on /tokens requests to support Session Minter edge token minting.

  5. 3.47.6

    Security fix23 May 2026
    • Security

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

  6. 3.47.5no release note

  7. 3.47.4

    15 Apr 20261 fix
    • Fixed

      Normalize URL paths in createPathMatcher to prevent route protection bypass

  8. 3.47.3

    20 Mar 20261 new
    • New

      Add optional intent parameter to session.touch() to indicate why the touch was triggered (focus, session switch, or org switch). This enables the backend to skip expensive client piggybacking for focus-only touches.

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