@clerk/shared
4.45.1 · 14 Nov 2026MIT11.8M / weekRepositorynpmAtom feed
Upgrading @clerk/shared From 3.48.1 to 4.8.3
13 releases in betweenevery note read
- 21
- changes to make
- 0
- advisories fixed
- 35
- new
- 27
- fixes
Before you upgrade
Tick each one off as you go- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
- Breaking4.0.0
Release by release
- Fixed
Fix an authorization bypass in
has(),auth.protect(), and related predicates when a single call combined conditions from more than one dimension (for example,{ permission, reverification }or{ feature, permission }). A dimension that should have denied the request was treated as indeterminate and ignored by the combining logic, allowing other passing dimensions to carry the result and authorize the call when it should have failed closed.
- Fixed
- New
Add
emailAddress,phoneNumber, andusernamesupport tosignUp.update() - New
Added development runtime error when mounting
<OAuthconsent />without active session.
- New
- Fixed
Normalize URL paths in
createPathMatcherto prevent route protection bypass
- Fixed
- New
Introduce internal
<OAuthConsent />component for rendering a zero-config OAuth consent screen on an OAuth authorize redirect page.
- New
- New
Add
OAuthApplicationresource andgetConsentInfo()method for retrieving OAuth consent information, enabling custom OAuth consent flows. - New
Introduce internal
useOAuthConsent()hook for fetching OAuth consent screen metadata for the signed-in user.
- New
- New
Add support for rendering the Banned badge in the organization members list.
- Fixed
Improve types for
signIn.createandsignUp.createmethods. - Fixed
Fixed API keys "Revoke" confirmation modal being stuck disabled when using a localization.
- New
- New
API keys is now generally available.
- New
- New
Add support for seat-based billing plans in Clerk Billing.
- New
Add
EnterpriseConnectionresource - New
Allow to link external accounts to enterprise accounts via
UserProfile - Fixed
Improved error handling when creating API keys.
- Fixed
Use distinct password placeholder for sign-up forms
- New
10 other lines we could not sort, mostly version bumps
- 4.0.0
Renamed all
__unstable_*methods to__internal_*(for internal APIs) - 4.0.0
Renamed all
experimental__*andexperimental_*methods to__experimental_*(for beta features) - 4.0.0
Refactor React SDK hooks to subscribe to auth state via
useSyncExternalStore. This is a mostly internal refactor to unlock future improvements, but includes a few breaking changes and fixes. - 4.0.0
Updating minimum version of Node to v20.9.0
- 4.0.0
Adjust features parsing to throw errors on unknown scopes.
- 4.0.0
Remove
clerkJSUrl,clerkJSVersion,clerkUIUrl, andclerkUIVersionprops from all SDKs. To pin a specific version of@clerk/clerk-js, import theClerkconstructor from@clerk/clerk-jsand pass it toClerkProvidervia theClerkprop. To pin a specific version of@clerk/ui, importuifrom@clerk/uiand pass it via theuiprop. This bundles the modules directly with your application instead of loading them from the CDN. - 4.0.0
Removes now unused contexts
ClientContext,SessionContext,UserContextandOrganizationProvider. We do not anticipate public use of these. If you were using any of these, file an issue to discuss a path forward as they are no longer available even internally. - 4.0.0
getToken()now throwsClerkOfflineErrorinstead of returningnullwhen the client is offline. - 4.0.0
Update
ClerkAPIError.kindvalue to match class name - 4.0.0
Removing deprecated top-level exports from @clerk/shared
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.