Packages

@clerk/shared

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

Upgrading @clerk/shared From 2.20.18 to 2.22.1

4 releases in betweennotes for 3

Other targets from 2.20.18Latest4.45.1
1+
change to make
1
advisory fixed
2+
new
2+
fixes

Counted from 3 of 4 release notes. Advisories are counted from the advisory database, in full.

Before you upgrade

Tick each one off as you go
  • Deprecated2.22.0

Security

Fixes 1 advisory affecting 2.20.18

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

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