@clerk/shared
4.45.1 · 14 Nov 2026MIT11.8M / weekRepositorynpmAtom feed
3.48.1 is the newest release of 3.x.
In short
3 breaking1 new1 fixed1 internal
- Breaking
Introduced a new
retryutility function to replace the deprecatedcallWithRetry. - Breaking
Removed the
callWithRetryfunction and its associated tests. - Breaking
Renamed
runWithExponentialBackOfftoretryfor consistency.
Security
2 advisories affect 3.0.0; 3.47.5 fixes them
- CriticalOfficial Clerk JavaScript SDKs: Middleware-based route protection bypassGHSA-vqx2-fgx2-5wq9 · 16 Apr 2026Fixed in 3.47.4
- HighClerk has an authorization bypass when combining organization, billing, or reverification checksGHSA-w24r-5266-9c3c · 30 Apr 2026Fixed in 3.47.5
Release note
Major Changes
- Breaking
This new version introduces the following breaking changes:
Introduced a new
retryutility function to replace the deprecatedcallWithRetry.Removed the
callWithRetryfunction and its associated tests.Renamed
runWithExponentialBackOfftoretryfor consistency.
Migration steps:
Replace any usage of
callWithRetrywith the newretryfunction.Update import statements from:
import { callWithRetry } from '@clerk/shared/callWithRetry';to:
import { retry } from '@clerk/shared/retry';Replace any usage of
runWithExponentialBackOffwithretry.Update import statements from:
import { runWithExponentialBackOff } from '@clerk/shared/utils';to:
import { retry } from '@clerk/shared/retry';
Minor Changes
Surface new
pendingsession as a signed-in state
Patch Changes
Update
TelemetryCollectorto throttle events after they've been sampled.
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.