Packages

@clerk/shared

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

Upgrading @clerk/shared From 2.0.0 to 2.22.1

84 releases in betweennotes for 81

Other targets from 2.0.0Latest4.45.1
  1. 2.0.0yours
  2. 83 releases
  3. 2.22.1target
1+
change to make
0
advisories fixed
28+
new
38+
fixes

Counted from 81 of 84 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

7 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
  • Rename the existing eventComponentMounted function inside /telemetry to eventPrebuiltComponentMounted. This better reflects that its props argument will be filtered for a relevant list for Clerk's prebuilt/all-in-one components.

    2.0.1
  • Reuse the now freed up eventComponentMounted name to create a new helper function that accepts a flat object for its props but doesn't filter any. This is useful for components that are not prebuilt.

    2.0.1

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