@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
- 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
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
- New
Introduce unified environment variable handling across all supported platforms
- Fixed
Small JSDoc and type improvements
- New
2.20.18nothing new or fixed in the note
- Fixed
Previously the
createPathMatcher()function was re-implemented both in@clerk/astroand@clerk/nextjs, this PR moves this logic to@clerk/shared. - Fixed
Improve JSDoc comments to provide better IntelliSense in your IDE
- Fixed
- Fixed
Catching ATOB errors in isPublishableKey
- Fixed
- New
Introduced searching for members list on
OrganizationProfile
- New
7 other lines we could not sort, mostly version bumps
- 2.17.0
__experimental_useReverification->useReverificationAlso replaces the following APIs: - 2.17.0
__experimental_reverificationError->reverificationError - 2.17.0
__experimental_reverificationErrorResponse->reverificationErrorResponse - 2.17.0
__experimental_isReverificationHint->isReverificationHint - 2.9.0
Supported levels are now are
firstFactor,secondFactor,multiFactor. - 2.0.1
Rename the existing
eventComponentMountedfunction inside/telemetrytoeventPrebuiltComponentMounted. This better reflects that itspropsargument will be filtered for a relevant list for Clerk's prebuilt/all-in-one components. - 2.0.1
Reuse the now freed up
eventComponentMountedname to create a new helper function that accepts a flat object for itspropsbut doesn't filter any. This is useful for components that are not prebuilt.
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.