Skip to content

Conversation

@panteliselef
Copy link
Member

@panteliselef panteliselef commented Nov 10, 2025

Description

This PR raises the minimum supported Next.js version to 15.2.3, removing most legacy compatibility code for Next.js 13 and 14.

  • Removed the startTransition wrapper around router.refresh() that was only needed for Next.js 13. Dropped the __clerk_internal_invalidateCachePromise mechanism that coordinated promise resolution with transition state. Removed the isPending state tracking from useTransition since we no longer wrap operations in transitions. The __unstable__onBeforeSetActive hook now directly calls invalidateCacheAction() (or skips it for Next.js 15+ sign-outs).
  • Cleaned up the deprecation warning that alerted users about Next.js 13.x and 14.0.x support ending
  • Cleaned up version detection helpers (isNext13, isNextWithUnstableServerActions) that gated legacy behavior
  • Simplified keyless feature flag: No longer needs to check for unstable server action versions
  • Removed version checks in useInternalNavFun for handling shallow routing state
  • New peerDependencies: "next": "^15.2.3 || ^16"

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@changeset-bot
Copy link

changeset-bot bot commented Nov 10, 2025

🦋 Changeset detected

Latest commit: 21e6043

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clerk/nextjs Major

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel
Copy link

vercel bot commented Nov 10, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
clerk-js-sandbox Ready Ready Preview Comment Nov 10, 2025 8:11pm

@panteliselef panteliselef requested a review from brkalow November 10, 2025 19:24
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 10, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch elef/user-3058-drop-support-for-nextjs-versions-that-are-older-than-1523

Comment @coderabbitai help to get the list of available commands and usage tips.

@panteliselef
Copy link
Member Author

!allow-major

@panteliselef panteliselef merged commit 41f6515 into vincent-and-the-doctor Nov 11, 2025
30 of 33 checks passed
@panteliselef panteliselef deleted the elef/user-3058-drop-support-for-nextjs-versions-that-are-older-than-1523 branch November 11, 2025 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants