@clerk/nextjs
7.10.2 · 17 Nov 2026MIT4.1M / weekRepositoryHomepagenpmAtom feed
Upgrading @clerk/nextjs From 5.1.6 to 5.7.6
43 releases in betweennotes for 42
Counted from 42 of 43 release notes. Advisories are counted from the advisory database, in full.
Before you upgrade
Tick each one off as you go- Deprecated5.2.0
Security
Fixes 1 advisory affecting 5.1.6
- Official Clerk JavaScript SDKs: Middleware-based route protection bypasscritical · GHSA-vqx2-fgx2-5wq9
Release by release
5.7.3 – 5.7.64 releases, nothing new or fixed; 1 without a note
- New
Introduces
organizationSyncOptionsoption toclerkMiddleware, which syncs an active organization or personal account from a URL to the Clerk session.
- New
5.6.1 – 5.7.15 releases, nothing new or fixed in the notes
- New
Allows access to request object to dynamically define
clerkMiddlewareoptions
- New
5.5.3 – 5.5.53 releases, nothing new or fixed in the notes
- Fixed
Vendor path-to-regexp
- Fixed
5.5.1nothing new or fixed in the note
- New
Remove
@clerk/elementsreliance onnextand@clerk/clerk-reactdirectly. The host router is now provided by@clerk/nextjs. - New
Add support for
basePathconfig property
- New
122 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.