Packages

@clerk/shared

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

Upgrading @clerk/shared From 2.4.0 to 2.22.1

72 releases in betweennotes for 69

Other targets from 2.4.0Latest4.45.1
  1. 2.4.0yours
  2. 71 releases
  3. 2.22.1target
1+
change to make
0
advisories fixed
23+
new
31+
fixes

Counted from 69 of 72 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Deprecated2.22.0

Release by release

  1. 2.22.1no release note

  2. 2.22.0

    Deprecation18 Feb 20251 new · 1 fix
    • Deprecated

      Introduce EmailLinkErrorCodeStatus to support users in custom flows and mark EmailLinkErrorCode as deprecated.

    • New

      Support passing additional properties to eventPrebuiltComponentMounted(), and ensure withSignUp is collected on SignIn mount.

    • Fixed

      Previously, the getCurrentOrganizationMembership() function was duplicated in both @clerk/vue and @clerk/shared/react. This change moves the function to @clerk/shared/organization.

  3. 2.21.1nothing new or fixed in the note

  4. 2.21.0

    10 Feb 20251 new · 1 fix
    • New

      Introduce unified environment variable handling across all supported platforms

    • Fixed

      Small JSDoc and type improvements

  5. 2.20.18nothing new or fixed in the note

  6. 2.20.17

    31 Jan 20252 fixes
    • Fixed

      Previously the createPathMatcher() function was re-implemented both in @clerk/astro and @clerk/nextjs, this PR moves this logic to @clerk/shared.

    • Fixed

      Improve JSDoc comments to provide better IntelliSense in your IDE

  7. 2.20.16

    29 Jan 20251 fix
    • Fixed

      Catching ATOB errors in isPublishableKey

  8. 2.20.15

    27 Jan 20251 new
    • New

      Introduced searching for members list on OrganizationProfile

5 other lines we could not sort, mostly version bumps
  • __experimental_useReverification -> useReverification Also replaces the following APIs:

    2.17.0
  • __experimental_reverificationError -> reverificationError

    2.17.0
  • __experimental_reverificationErrorResponse -> reverificationErrorResponse

    2.17.0
  • __experimental_isReverificationHint -> isReverificationHint

    2.17.0
  • Supported levels are now are firstFactor, secondFactor, multiFactor.

    2.9.0

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