-
Notifications
You must be signed in to change notification settings - Fork 265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(nextjs): Warn for deprecated nextjs versions #4657
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
🦋 Changeset detectedLatest commit: 431c808 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
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 |
@@ -24,6 +26,12 @@ declare global { | |||
} | |||
|
|||
export const ClientClerkProvider = (props: NextClerkProviderProps) => { | |||
if (nextPackage.version.startsWith('13.') || nextPackage.version.startsWith('14.0')) { | |||
logger.warnOnce( | |||
`\n\x1b[43m----------\n[Clerk]: Your current nextjs version (${nextPackage.version}) will be deprecated in the next major release of "@clerk/nextjs". Please upgrade to >= next@14.2 .\n----------\x1b[0m\n`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
`\n\x1b[43m----------\n[Clerk]: Your current nextjs version (${nextPackage.version}) will be deprecated in the next major release of "@clerk/nextjs". Please upgrade to >= next@14.2 .\n----------\x1b[0m\n`, | |
`\n\x1b[43m----------\n[Clerk]: Your current Next.js version (${nextPackage.version}) will be deprecated in the next major release of "@clerk/nextjs". Please upgrade to next@14.2.0 or later.\n----------\x1b[0m\n`, |
Co-authored-by: Stefanos Anagnostou <anagstef@users.noreply.github.com>
Description
We have found a few issues in the Next.js from version 13.5 to 14.0.4. We should advices our customers to upgrade. Also warn them about those versions becoming deprecated in the future.
how it looks on terminal
how it looks on chrome
how it looks on safari
Checklist
pnpm test
runs as expected.pnpm build
runs as expected.Type of change