@clerk/react-router
3.7.6 · 19 Nov 2026MIT138.1k / weekRepositoryHomepagenpmAtom feed
Upgrading @clerk/react-router From 2.4.19 to 3.0.0
1 release in betweenevery note read
Reading releases, release notes and advisories…
- 9
- changes to make
- 0
- advisories fixed
- 6
- new
- 2
- fixes
Before you upgrade
Tick each one off as you go- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
- Breaking3.0.0
Security
1 advisory still affects 3.0.0
- Clerk has an authorization bypass when combining organization, billing, or reverification checkshigh · GHSA-w24r-5266-9c3c
Upgrading to 3.1.4 clears it.
Release by release
- Breaking
useAuth().getTokenis no longerundefinedduring server-side rendering, it is a function and calling it will throw. - Breaking
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. - Breaking
Usage of
rootAuthLoaderwithout theclerkMiddleware()installed will not throw a runtime error. - Breaking
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.
- Breaking
3 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.