@clerk/shared
4.45.1 · 14 Nov 2026MIT11.8M / weekRepositorynpmAtom feed
Upgrading @clerk/shared From 2.21.0 to 2.22.1
3 releases in betweennotes for 2
Counted from 2 of 3 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.21.0
- Official Clerk JavaScript SDKs: Middleware-based route protection bypasscritical · GHSA-vqx2-fgx2-5wq9
Release by release
2.22.1no release note
- Deprecated
Introduce
EmailLinkErrorCodeStatusto support users in custom flows and markEmailLinkErrorCodeas deprecated. - New
Support passing additional properties to
eventPrebuiltComponentMounted(), and ensurewithSignUpis collected onSignInmount. - Fixed
Previously, the
getCurrentOrganizationMembership()function was duplicated in both@clerk/vueand@clerk/shared/react. This change moves the function to@clerk/shared/organization.
- Deprecated
2.21.1nothing new or fixed in the note
2 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.