Repository navigation
chore(deps): upgrade @clerk/nextjs to v7 (Clerk Core 3) - #434
jayypatel18 wants to merge 1 commit into
Conversation
|
@jayypatel18 is attempting to deploy a commit to the Darshan Rajput's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configuration
⛔ Files ignored due to path filters (1)
📒 Files selected for processing (5)
💤 Files with no reviewable changes (1)
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review. 📝 WalkthroughWalkthroughThe Clerk dependency range changes from ChangesClerk API update
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Other Merge Risk: ⚪ Minimal · up to The update changes Clerk’s sign-in options and authentication controls; the documented sign-out destination remains the home page. No concrete user-facing regression is established, so the change appears ready for normal merge checks. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to The application retains its server-side authentication checks, and the inspected changes do not establish a new authorization bypass. Risk remains low rather than minimal because the upgraded provider’s exact sign-out and authentication behavior has not been validated in the deployed configuration. Retained concerns Security review detailsSecurity Blast Radius
Trust Boundaries and Controls
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 3 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Hi Darshan, A gentle follow up on this PR. It upgrades your clerk package to the latest supported package before EOL (Jan, 2027) of current package. Once you get time kindly take a look at this PR, your time is much appreciated! Thanks, |
What does this PR do?
Moves the app from
@clerk/nextjs6 (Clerk Core 2) to 7 (Clerk Core 3).package.json,package-lock.json:@clerk/nextjs^6.36.5to^7.9.10.app/components/Navbar.tsx,app/layout.tsx:<SignedIn>and<SignedOut>are gone in Core 3. They become<Show when="signed-in">and<Show when="signed-out">, and the imports follow.app/layout.tsxonly imported them, so only its import changes.app/components/Navbar.tsx,app/dashboard/layout.tsx:<UserButton>no longer takesafterSignOutUrl. It was set to"/", which is also where Clerk sends a signed-out user when nothing else is configured, so sign-out still lands on the home page.app/(auth)/sign-in/[[...sign-in]]/page.tsx: thelayoutkey ofappearanceis nowoptions. Values unchanged.Motivation
Clerk's schedule ends long term support for Core 2 in January 2027.
How to test
What I ran, in a clean Node 20 container with install scripts off, on
main(40db36c) and then on this branch:mainnpm cinpm testtsc --noEmitnpm run lintThe failing test is the same one on both sides:
__tests__/app/home.support-section.test.tsx("uses stronger dark-mode contrast and visible focus rings in the help cards"). The 54 type errors are onmaintoo; none is new.Not checked:
npm run builddid not pass onmainin the container either (it has no network and no Clerk or Supabase keys), so it was not compared. The app was not run against a Clerk instance, so no sign-in or sign-out was tried.To check it yourself:
npm install,npm run dev, then sign in, open the dashboard, and sign out from the user button. You should land on/.Checklist
Summary by CodeRabbit