@clerk/shared
4.45.1 · 14 Nov 2026MIT11.8M / weekRepositorynpmAtom feed
Upgrading @clerk/shared From 2.21.1 to 2.22.0
1 release in betweenevery note read
- 1
- change to make
- 0
- advisories fixed
- 1
- new
- 1
- fix
Before you upgrade
Tick each one off as you go- Deprecated2.22.0
Security
1 advisory still affects 2.22.0
- Official Clerk JavaScript SDKs: Middleware-based route protection bypasscritical · GHSA-vqx2-fgx2-5wq9
Upgrading to 2.22.1 clears it.
Release by release
- 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
1 internal line (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.