Skip to content

[autoconfig] Bump Next.js minimum versions & provide an automatic upgrade path - #14892

Open
ajhawkings wants to merge 1 commit into
cloudflare:mainfrom
ajhawkings:ahawkings/next-autoconfig-upgrade
Open

[autoconfig] Bump Next.js minimum versions & provide an automatic upgrade path#14892
ajhawkings wants to merge 1 commit into
cloudflare:mainfrom
ajhawkings:ahawkings/next-autoconfig-upgrade

Conversation

@ajhawkings

@ajhawkings ajhawkings commented Jul 28, 2026

Copy link
Copy Markdown
Member

Hi team, it's Angus here

Since opennextjs/opennextjs-cloudflare#1313, OpenNext requires minimum next versions ">=15.5.21 <16 || >=16.2.11". This PR bumps the minimum version in autoconfig to be 15.5.21

To make migrating simpler, this PR adds logic to automatically upgrade old (& vulnerable) Next 15 and 16 versions to the earliest compatible version within the same major release. Previously, @opennextjs/cloudflare migrate --force-install was run. This prints a bunch of peer dependency errors to the terminal during install but still succeeds, and lets users deploy the old version. This PR instead adds upgrading to autoconfig - which now confirms with the user that it will upgrade to the supported version:
image

  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because:
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: just changes autoconfig behaviour, actual minimum version changed elsewhere

A picture of a cute animal (not mandatory, but encouraged)

image
Open in Devin Review

@changeset-bot

changeset-bot Bot commented Jul 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 082b0a9

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

This PR includes changesets to release 4 packages
Name Type
@cloudflare/autoconfig Minor
wrangler Minor
@cloudflare/vite-plugin Patch
@cloudflare/vitest-pool-workers Patch

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

@ajhawkings
ajhawkings marked this pull request as draft July 28, 2026 10:35
@github-project-automation github-project-automation Bot moved this to Untriaged in workers-sdk Jul 28, 2026
@workers-devprod
workers-devprod requested review from a team and emily-shen and removed request for a team July 28, 2026 10:36
@workers-devprod

workers-devprod commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Codeowners approval required for this PR:

  • @cloudflare/wrangler
Show detailed file reviewers
  • .changeset/autoconfig-bump-next-and-auto-upgrade.md: [@cloudflare/wrangler]
  • packages/autoconfig/package.json: [@cloudflare/wrangler]
  • packages/autoconfig/src/frameworks/all-frameworks.ts: [@cloudflare/wrangler]
  • packages/autoconfig/src/frameworks/framework-class.ts: [@cloudflare/wrangler]
  • packages/autoconfig/src/frameworks/index.ts: [@cloudflare/wrangler]
  • packages/autoconfig/src/frameworks/next.ts: [@cloudflare/wrangler]
  • packages/autoconfig/src/run.ts: [@cloudflare/wrangler]
  • packages/autoconfig/src/types.ts: [@cloudflare/wrangler]
  • packages/autoconfig/tests/frameworks/next.test.ts: [@cloudflare/wrangler]
  • packages/autoconfig/tests/frameworks/validate-framework-version.test.ts: [@cloudflare/wrangler]
  • packages/autoconfig/tests/run-upgrade.test.ts: [@cloudflare/wrangler]
  • packages/wrangler/src/tests/autoconfig/run.test.ts: [@cloudflare/wrangler]
  • pnpm-lock.yaml: [@cloudflare/wrangler]

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 1 additional finding.

Open in Devin Review

@pkg-pr-new

pkg-pr-new Bot commented Jul 28, 2026

Copy link
Copy Markdown
@cloudflare/autoconfig

npm i https://pkg.pr.new/@cloudflare/autoconfig@14892

@cloudflare/config

npm i https://pkg.pr.new/@cloudflare/config@14892

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@14892

@cloudflare/deploy-helpers

npm i https://pkg.pr.new/@cloudflare/deploy-helpers@14892

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@14892

miniflare

npm i https://pkg.pr.new/miniflare@14892

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@14892

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@14892

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@14892

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@14892

@cloudflare/workers-auth

npm i https://pkg.pr.new/@cloudflare/workers-auth@14892

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@14892

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@14892

wrangler

npm i https://pkg.pr.new/wrangler@14892

commit: 082b0a9

@ajhawkings
ajhawkings force-pushed the ahawkings/next-autoconfig-upgrade branch from c095cff to 6fe4d5a Compare July 28, 2026 10:59
@ajhawkings
ajhawkings marked this pull request as ready for review July 28, 2026 13:29
@ajhawkings
ajhawkings force-pushed the ahawkings/next-autoconfig-upgrade branch from 6fe4d5a to 082b0a9 Compare July 28, 2026 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

2 participants