Skip to content

chore(repo): pin next in @clerk/msw to stop lockfile drift - #10786

Merged
alexcarpenter merged 1 commit into
mainfrom
carp/repo-dedupe-lockfile
Nov 12, 2026
Merged

alexcarpenter merged 1 commit into
mainfrom
carp/repo-dedupe-lockfile

Conversation

@alexcarpenter

@alexcarpenter alexcarpenter commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

Description

pnpm dedupe --check fails on main and on open PRs. It wants next@16.4.6 and matching @next/* packages.

@clerk/msw lists next: ">=15.5.18" only as a peer, so pnpm auto-installs it. That open range resolves to the newest next once it is older than minimumReleaseAge (2 days). next@16.4.6 was published 2026-11-09, so dedupe started asking for it and CI broke without any lockfile change. The same thing would happen with each new Next.js release.

This adds next: 16.4.5 as a devDependency of @clerk/msw, matching the version already in the lockfile, so the installed version no longer floats. The peer range is unchanged. The lockfile diff only touches the packages/msw importer.

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:

@vercel

vercel Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
clerk-js-sandbox Ready Ready Preview Nov 12, 2026 4:17pm UTC
swingset Ready Ready Preview Nov 12, 2026 4:17pm UTC

Request Review

@changeset-bot

changeset-bot Bot commented Nov 12, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0cde11e

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The MSW package adds Next.js 16.4.5 as a development dependency. A Changeset file is added with empty frontmatter delimiters and no package changes declared.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested reviewers: clerk-cookie, dstaley, wobsoriano

Merge Risk: Minimal · up to 0cde1

This change pins a development-only dependency to keep the lockfile stable. It does not change runtime behavior, and no merge-blocking risk is evident.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: pinning next in @clerk/msw to stop lockfile drift. The raw summary confirms Next.js 16.4.5 is added as a devDependency of packages/msw. The title is specific and match…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description explains the change: pnpm dedupe --check fails because the open peer range for next in @clerk/msw lets pnpm auto-install newer Next.js releases. It proposes pinning next 16.4.5 as a de…
Full details: Title check

Explanation

The title names the main change: pinning next in @clerk/msw to stop lockfile drift. The raw summary confirms Next.js 16.4.5 is added as a devDependency of packages/msw. The title is specific and matches the changeset. It uses the conventional chore(repo) prefix, which is acceptable.

Full details: Description check

Explanation

The description explains the change: pnpm dedupe --check fails because the open peer range for next in @clerk/msw lets pnpm auto-install newer Next.js releases. It proposes pinning next 16.4.5 as a devDependency of @clerk/msw. This matches the changeset, which adds next 16.4.5 as a devDependency in packages/msw/package.json. The description is specific and on-topic.

  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Linked repositories: Some configured repositories could not be included in this review. Cross-repository analysis may be incomplete. Please check linked-repository access and settings.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between c9bdae3 and 0cde11e.

Files ignored due to path filters: 1

  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
Files selected for processing: 2

  • .changeset/pin-msw-next.md
  • packages/msw/package.json
Linked repositories identified

CodeRabbit considers these linked repositories for cross-repo context during reviews:

Included review availability: This review used your included allowance. 4 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 6 reviews per hour.

@blacksmith-sh

blacksmith-sh Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Matches Lockfile dedupe check passes

Before, the dedupe check fails asking to move @clerk/msw to next 16.4.6 plus its @next/* packages. After, it passes, and the lockfile changes in a single importers hunk.

Merge-base

Dedupe check fails

This PR 0cde11e1

Dedupe check passes

Proof on 0cde11e1 · Did Proof get it right? Yes · No

View full Proof report · React 👎 or comment @codesmith dismiss this proof to dismiss

@alexcarpenter
alexcarpenter enabled auto-merge (squash) November 12, 2026 16:19
@pkg-pr-new

pkg-pr-new Bot commented Nov 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/electron

npm i https://pkg.pr.new/@clerk/electron@10786

@clerk/electron-passkeys

npm i https://pkg.pr.new/@clerk/electron-passkeys@10786

@clerk/eslint-plugin

npm i https://pkg.pr.new/@clerk/eslint-plugin@10786

@clerk/expo

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

@clerk/expo-biometrics

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

@clerk/expo-google-signin

npm i https://pkg.pr.new/@clerk/expo-google-signin@10786

@clerk/expo-native-components

npm i https://pkg.pr.new/@clerk/expo-native-components@10786

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@10786

@clerk/localizations

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

@clerk/mosaic

npm i https://pkg.pr.new/@clerk/mosaic@10786

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/react

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

@clerk/react-router

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

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@10786

@clerk/upgrade

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

@clerk/vue

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

commit: 0cde11e

@alexcarpenter
alexcarpenter merged commit 24a82a1 into main Nov 12, 2026
60 checks passed
@alexcarpenter
alexcarpenter deleted the carp/repo-dedupe-lockfile branch November 12, 2026 16:27

This branch was successfully deployed

2 active deployments
Preview – swingset — 0cde11e1 Deployed Nov 12, 2026 by vercel[bot]
Preview – clerk-js-sandbox — 0cde11e1 Deployed Nov 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants