Skip to content

Conversation

@brkalow
Copy link
Member

@brkalow brkalow commented Dec 5, 2025

Description

The Upgrade CLI has been restructured to better handle current and upcoming releases. The internals have been simplified and release-specific logic has been consolidated out of the core logic.

  • Remove ink usage
  • Remove core-2 upgrade support. If folks need to upgrade, they can use a previous major of @clerk/upgrade
  • Adds a test suite for the upgrade CLI
  • Introduces a release manifest for core 3
  • Introduces codemods for deprecations and breaking changes

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 Dec 5, 2025

🦋 Changeset detected

Latest commit: 698157f

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

This PR includes changesets to release 1 package
Name Type
@clerk/upgrade 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

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 5, 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 brk.feat/upgrade-cli-core-3

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

@vercel
Copy link

vercel bot commented Dec 5, 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 Dec 6, 2025 6:29am

@pkg-pr-new
Copy link

pkg-pr-new bot commented Dec 5, 2025

Open in StackBlitz

@clerk/agent-toolkit

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

@clerk/astro

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

@clerk/backend

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

@clerk/chrome-extension

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

@clerk/clerk-js

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

@clerk/dev-cli

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

@clerk/expo

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

@clerk/expo-passkeys

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

@clerk/express

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

@clerk/fastify

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

@clerk/localizations

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

@clerk/nextjs

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

@clerk/nuxt

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

@clerk/react

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

@clerk/react-router

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

@clerk/shared

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

@clerk/tanstack-react-start

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

@clerk/testing

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

@clerk/ui

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

@clerk/upgrade

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

@clerk/vue

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

commit: 698157f

Comment on lines 49 to 51
if (transform === 'transform-remove-deprecated-props' && result.stats) {
renderManualInterventionSummary(result.stats);
}
Copy link
Member Author

Choose a reason for hiding this comment

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

TODO: this should be genericized

@brkalow
Copy link
Member Author

brkalow commented Dec 5, 2025

!allow-major

Comment on lines +1 to +23
export default {
id: 'core-3',
name: 'Core 3',
docsUrl: 'https://clerk.com/docs/upgrade-guides/core-3',
sdkVersions: {
nextjs: { from: 6, to: 7 },
react: { from: 5, to: 7 },
expo: { from: 2, to: 3 },
'react-router': { from: 2, to: 3 },
'tanstack-react-start': { from: 0, to: 1 },
astro: { from: 2, to: 3 },
nuxt: { from: 2, to: 3 },
vue: { from: 2, to: 3 },
},
codemods: [
'transform-clerk-react-v6',
'transform-remove-deprecated-props',
'transform-remove-deprecated-appearance-props',
'transform-appearance-layout-to-options',
'transform-themes-to-ui-themes',
'transform-align-experimental-unstable-prefixes',
],
};
Copy link
Member Author

Choose a reason for hiding this comment

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

New version/release manifest that outlines a version's impacted SDKs and changes. We can use this for only specific SDKs if necessary as well.

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