Skip to content

Conversation

@wobsoriano
Copy link
Member

@wobsoriano wobsoriano commented Oct 22, 2025

Description

Adds Next.js 16 support

Fixes #7050

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:

Summary by CodeRabbit

  • New Features

    • Added official support for Next.js 16.
  • Chores

    • Updated package compatibility to include Next.js 16 and added a minor release entry noting this change.

@changeset-bot
Copy link

changeset-bot bot commented Oct 22, 2025

🦋 Changeset detected

Latest commit: ca0377e

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 Minor

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 Oct 22, 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 Oct 22, 2025 5:37pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Oct 22, 2025

Walkthrough

This PR adds support for Next.js 16 to the Clerk Next.js SDK by updating the peer dependency specification and documenting the change via a changeset. The peer dependency for next is expanded to include version 16 alongside existing supported versions.

Changes

Cohort / File(s) Summary
Next.js 16 Support
packages/nextjs/package.json
Updated peerDependencies.next from `^13.5.7
Release Documentation
.changeset/ten-crabs-wear.md
Added changeset documenting a minor release for @clerk/nextjs with Next.js 16 support

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related issues

Poem

🐰 A new version hops into view,
Next.js sixteen joins the crew!
Peer deps widened, doors swing wide,
The SDK readies for the ride. ✨

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The pull request title "feat(nextjs): Add Next 16 support" is clear, specific, and directly aligned with the actual changes in the PR. The changeset summarizes the intent as adding Next.js 16 support, and the concrete changes (updating the peerDependencies.next field in package.json and adding a changeset entry) both directly support this objective. The title accurately captures the main purpose of the PR in a concise, non-vague manner that would be immediately understandable to a developer reviewing the git history.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch rob/nextjs-16-support

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between e046552 and ca0377e.

📒 Files selected for processing (2)
  • .changeset/ten-crabs-wear.md (1 hunks)
  • packages/nextjs/package.json (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • .changeset/ten-crabs-wear.md
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/nextjs/package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: pr-title-lint
  • GitHub Check: Formatting | Dedupe | Changeset
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: semgrep-cloud-platform/scan

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

Co-authored-by: Dave Carlson <davecarlson@users.noreply.github.com>
@pkg-pr-new
Copy link

pkg-pr-new bot commented Oct 22, 2025

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@7055

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@7055

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@7055

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@7055

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@7055

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@7055

@clerk/elements

npm i https://pkg.pr.new/@clerk/elements@7055

@clerk/clerk-expo

npm i https://pkg.pr.new/@clerk/clerk-expo@7055

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@7055

@clerk/express

npm i https://pkg.pr.new/@clerk/express@7055

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@7055

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@7055

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@7055

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@7055

@clerk/clerk-react

npm i https://pkg.pr.new/@clerk/clerk-react@7055

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@7055

@clerk/remix

npm i https://pkg.pr.new/@clerk/remix@7055

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@7055

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@7055

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@7055

@clerk/themes

npm i https://pkg.pr.new/@clerk/themes@7055

@clerk/types

npm i https://pkg.pr.new/@clerk/types@7055

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@7055

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@7055

commit: ca0377e

Copy link

@henriquemod henriquemod left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link

@brunovdsa brunovdsa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@wobsoriano wobsoriano merged commit 6c3e3d8 into main Oct 22, 2025
49 checks passed
@wobsoriano wobsoriano deleted the rob/nextjs-16-support branch October 22, 2025 17:48
NicolasLopes7 pushed a commit that referenced this pull request Oct 23, 2025
Co-authored-by: Dave Carlson <davecarlson@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@clerk/js needs to support next@16 as a peer dependency

5 participants