unstale

npm / next

next

What changed in next 15 to 16, from its official release notes, upgrade guides and advisories. Sources checked 2026-12-05.

89 breaking52 security5 deprecations29 new APIs and options4 performance16 behavior and defaults17 tooling5 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

next 16184 changes

Breaking changes 71

Security 52

  • Fixes cache poisoning of shared fallback shells through request-supplied placeholder route parameters.

    16.4.5security advisory

  • Fixes cross-client response injection and disclosure in self-hosted applications forwarding fetched responses.

    15.5.29, 16.4.5security advisory

  • Fixes HttpOnly cookie exposure through an internal response header on Edge runtime routes.

    15.5.29, 16.4.5security advisory

  • Fixes an SVG rejection bypass in Next.js image optimization.

    15.5.29, 16.4.5security advisory

  • Fixes cross-tenant sensitive information disclosure when use cache is called through unstable_cache.

    16.4.5security advisory

  • Fixes cross-user cache disclosure and poisoning involving binary arguments.

    16.4.5security advisory

  • Security fixes prevent cache leaks across root parameter values in nested use cache functions.

    16.3.8, 16.4.5security advisorysecurity advisory

  • Security fixes address unauthenticated remote code execution when SVG files are used with the Image Optimization API.

    15.5.28, 16.4.1security advisory

  • Fixes a denial-of-service vulnerability in the App Router when using Server Actions.

    15.5.21, 16.2.11, 16.4.1security advisorysecurity advisory

  • Security fix for unauthenticated remote code execution in functions returning typed arrays.

    16.4.1security advisory

  • Security fix prevents information disclosure through App Router metadata image routes when dynamicParams is bypassed.

    15.5.27, 16.3.8security advisory

  • Security fixes address a server-side request forgery vulnerability in image optimization.

    16.3.8security advisory

  • Security fix prevents cache poisoning of ISR pages in self-hosted Next.js applications.

    15.5.27, 16.3.8security advisory

  • Security fixes address information disclosure in the Next.js development server's Model Context Protocol endpoint.

    16.3.8security advisory

  • Security fix prevents cross-user content substitution and persistent denial of service from cache poisoning during SSG/ISR rendering.

    15.5.27, 16.3.8security advisory

  • Security fixes prevent pending use cache fills from leaking Draft Mode content into regular responses and persisted pages.

    16.3.8security advisory

  • Fixed a remote code execution vulnerability in next/og ImageResponse.

    16.3.6security advisory

  • Security fixes address unauthenticated remote code execution when AVIF files are used.

    15.5.24, 16.3.3security advisory

  • Security fixes address unauthenticated remote code execution on Windows-hosted servers.

    15.5.24, 16.3.3security advisory

  • Fixes unbounded Server Action payloads in the Edge runtime.

    15.5.21, 16.2.11security advisory

  • Fixes a denial-of-service vulnerability in the Image Optimization API when processing SVGs.

    15.5.21, 16.2.11security advisory

  • Fixes a Middleware / Proxy bypass affecting App Router applications using Turbopack and a single locale.

    15.5.21, 16.2.11security advisory

  • Fixes cache confusion of response bodies for requests with bodies.

    15.5.21, 16.2.11security advisory

  • Fixes cache confusion for request bodies containing invalid UTF-8 byte sequences.

    15.5.21, 16.2.11security advisory

  • Fixes server-side request forgery through rewrites with attacker-controlled destination hostnames.

    15.5.21, 16.2.11security advisory

  • Fixes server-side request forgery in Server Actions on custom servers.

    15.5.21, 16.2.11security advisory

  • Fixes unauthenticated disclosure of internal Server Function endpoints.

    15.5.21, 16.2.11security advisory

  • An incomplete prior fix for App Router middleware or proxy bypass through segment-prefetch routes was addressed.

    15.5.18, 16.2.6security advisory

  • Fixes a moderate cross-site scripting vulnerability when beforeInteractive scripts use untrusted input.

    15.5.16, 16.2.5security advisory

  • Fixes a high-severity denial-of-service vulnerability caused by connection exhaustion.

    15.5.16, 16.2.5security advisory

  • Fixes a moderate cross-site scripting vulnerability in App Router applications using CSP nonces.

    15.5.16, 16.2.5security advisory

  • Fixes a moderate denial-of-service vulnerability in the Image Optimization API.

    15.5.16, 16.2.5security advisory

  • Fixes a high-severity bypass affecting App Router applications through segment-prefetch routes.

    15.5.16, 16.2.5security advisory

  • Fixes low-severity cache poisoning affecting Middleware / Proxy redirects.

    15.5.16, 16.2.5security advisory

  • Fixes a high-severity bypass through dynamic route parameter injection.

    15.5.16, 16.2.5security advisory

  • Fixes a high-severity bypass in Pages Router applications using i18n.

    15.5.16, 16.2.5security advisory

  • Fixes low-severity cache poisoning caused by collisions in React Server Component cache-busting.

    15.5.16, 16.2.5security advisory

  • Fixes moderate cache poisoning affecting React Server Component responses.

    15.5.16, 16.2.5security advisory

  • Fixes a high-severity denial-of-service vulnerability affecting Server Components.

    15.5.16, 16.2.5security advisory

  • Fixes a high-severity server-side request forgery vulnerability in applications using WebSocket upgrades.

    15.5.16, 16.2.5security advisory

  • Patched a high-severity vulnerability where specially crafted requests to Server Function endpoints could trigger excessive CPU usage and denial of service.

    15.5.15, 16.2.3security advisory

  • Cross-site development-only WebSocket connections from privacy-sensitive origins can now be blocked.

    16.1.7, 16.2.0security advisory

  • Adds images.maximumDiskCacheSize to control the next/image LRU disk cache size.

    15.5.14, 16.1.7, 16.2.0security advisory

  • Patched http-proxy to prevent request smuggling in rewrites.

    15.5.13, 16.1.7security advisory

  • The maxPostponedStateSize limit is now always respected.

    16.1.7security advisory

  • Next.js HTTP request deserialization can lead to DoS when using insecure React Server Components

    15.0.8 … 16.1.5security advisory

  • Minimal-mode PPR resume handling now prevents unbounded request buffering or decompression from exhausting memory.

    15.5.10, 16.1.5security advisory

  • The Image Optimizer now prevents unrestricted memory use when optimizing external images, avoiding denial-of-service conditions.

    15.5.10, 16.1.5security advisory

  • Next has a Denial of Service with Server Components - Incomplete Fix Follow-Up

    14.2.35 … 16.0.10security advisory

  • The hardened React Server Components implementation fixes a critical remote-code-execution vulnerability; upgrading to 16.0.7 is required.

    15.0.5 … 16.0.7security advisory

  • The images.domains configuration is deprecated and warns; image remote patterns are preferred.

    16.0.0upgrade guideupgrade guideupgrade guideupgrade guide

  • Remote image hosts should be configured with remotePatterns for improved security.

    16.0.0upgrade guide

Deprecations 4

New APIs and options 23

  • React 19.2 adds Activity for hiding background UI while preserving state and cleaning up effects.

    16.0.0upgrade guideupgrade guide

  • The alpha Build Adapters API lets custom adapters hook into builds to modify Next.js configuration or process build output.

    16.0.0upgrade guide

  • Call before reading process.env when environment variables must be evaluated at runtime rather than bundled during build.

    16.0.0upgrade guideupgrade guide

  • Adding data-scroll-behavior="smooth" restores the previous scroll override during navigation.

    16.0.0upgrade guide

  • Turbopack adds the debugIds configuration option.

    16.0.0upgrade guideupgrade guide

  • The native TypeScript resolver for Next.js configuration requires an explicit experimental flag.

    16.0.0upgrade guide

  • The alpha Build Adapters API adds experimental.adapterPath for custom build-process adapters.

    16.0.0upgrade guideupgrade guideupgrade guide

  • The next/cache module adds a refresh API.

    16.0.0upgrade guide

  • The recommended named export for the renamed routing file is proxy.

    16.0.0upgrade guide

  • Proxy replaces the deprecated Middleware file convention, with a codemod available for migration.

    16.0.0upgrade guideupgrade guideupgrade guide

  • The renamed proxy.ts file is the recommended replacement for middleware.ts.

    16.0.0upgrade guide

  • The App Router uses React 19.2 features including View Transitions, useEffectEvent, and Activity.

    16.0.0upgrade guide

  • Next.js adds a configuration option for enabling React Compiler integration, which is stable.

    16.0.0upgrade guideupgrade guideupgrade guideupgrade guide

  • Allows refreshing the client router from within a Server Action after performing an action.

    16.0.0upgrade guideupgrade guide

  • Generated globally available RouteContext types help migrate route handlers to async params with type safety.

    16.0.0upgrade guide

  • Turbopack provides resolveAlias for mapping imports such as browser requests for Node.js modules.

    16.0.0upgrade guide

  • Turbopack provides resolveAlias for browser-side aliases such as mapping Node.js modules to empty modules.

    16.0.0upgrade guideupgrade guide

  • Enables beta filesystem caching in development to retain compiler artifacts between runs and speed up compile times.

    16.0.0upgrade guide

  • updateTag provides Server Actions with read-your-writes cache expiration and immediate refresh semantics.

    16.0.0upgrade guideupgrade guideupgrade guide

  • Caches pages, components, and functions, with the compiler automatically generating cache keys.

    16.0.0upgrade guide

  • React 19.2 adds useEffectEvent for extracting non-reactive effect logic into reusable Effect Event functions.

    16.0.0upgrade guideupgrade guide

  • React 19.2 adds View Transitions for animating elements updated inside a transition or navigation.

    16.0.0upgrade guideupgrade guide

  • The --webpack flag opts out of the default Turbopack build and uses Webpack.

    16.0.0upgrade guideupgrade guideupgrade guide

Performance 4

  • Prefetching multiple URLs with a shared layout downloads the layout once.

    16.0.0upgrade guideupgrade guide

  • Performance improvements were made to the next dev command.

    16.0.0upgrade guide

  • Performance improvements were made to the next start command.

    16.0.0upgrade guide

  • Routing now deduplicates shared layouts and incrementally prefetches uncached parts, cancelling or reprioritizing requests as links move in and out of view.

    16.0.0upgrade guide

Behavior and default changes 15

  • The Turbopack build filesystem cache is enabled by default.

    16.0.0, 16.3.0upgrade guide

  • Turbopack automatically enables Babel when it finds a Babel config, instead of exiting with a hard error.

    16.0.0upgrade guide

  • Cache Components becomes a stable top-level configuration option.

    16.0.0upgrade guideupgrade guide

  • Turbopack filesystem caching is enabled by default for next build.

    16.0.0upgrade guideupgrade guide

  • Turbopack filesystem caching is enabled by default for next dev.

    16.0.0upgrade guideupgrade guide

  • Next.js prefetches only parts not already in cache instead of entire pages.

    16.0.0upgrade guideupgrade guide

  • next build now uses Turbopack by default, replacing the previous default build behavior.

    16.0.0upgrade guide

  • next dev now writes to a separate .next/dev output directory, enabling concurrent dev and build execution.

    16.0.0upgrade guideupgrade guideupgrade guideupgrade guide

  • next dev now uses Turbopack by default, so the --turbopack or --turbo flag is no longer needed.

    16.0.0upgrade guide

  • Enabling the React Compiler can increase development and build compile times because it relies on Babel.

    16.0.0upgrade guide

  • Stable for development and production builds and now the default bundler for all new Next.js projects; webpack remains available with --webpack.

    16.0.0upgrade guideupgrade guideupgrade guide

  • Turbopack configuration moves from experimental.turbopack to the top-level turbopack option.

    16.0.0upgrade guide

  • Filesystem caching is enabled by default for next dev to preserve compiler artifacts between runs.

    16.0.0upgrade guide

  • The unstable_ prefix is removed from the cacheLife API, while the unstable prefix remains accepted for compatibility.

    16.0.0upgrade guideupgrade guide

  • The unstable_ prefix is removed from the cacheTag API, while the unstable prefix remains accepted for compatibility.

    16.0.0upgrade guideupgrade guide

Tooling 13

  • The Turbopack tracing command uses next internal trace with the trace output path.

    16.0.0, 16.3.0upgrade guideupgrade guide

  • Enabling the React Compiler requires installing the React Compiler Babel plugin.

    16.0.0upgrade guideupgrade guide

  • Redesigned with a simplified setup flow, updated project structure, and defaults including App Router, TypeScript, Tailwind CSS, and ESLint.

    16.0.0upgrade guide

  • Now show Compile and Render timings to indicate where development request time is spent.

    16.0.0upgrade guide

  • Generated globally available LayoutProps types help migrate to async params with type safety.

    16.0.0upgrade guide

  • A migration codemod updates synchronous params, searchParams, cookies(), headers(), and draftMode() access to async APIs.

    16.0.0upgrade guide

  • Displays webpack or Turbopack compilation duration when running next build.

    15.0.0, 16.0.0upgrade guide

  • The upgrade codemod updates Turbopack configuration, linting, middleware conventions, stabilized API names, and experimental PPR settings.

    16.0.0upgrade guide

  • A lockfile prevents multiple next dev or next build instances from running on the same project.

    16.0.0upgrade guideupgrade guideupgrade guide

  • Adds a Model Context Protocol integration that gives AI agents contextual insight for debugging Next.js applications.

    16.0.0upgrade guide

  • The upgrade CLI prepares migration guides and codemod instructions for a coding agent.

    16.0.0upgrade guideupgrade guide

  • Generated globally available PageProps types help migrate to async params and searchParams with type safety.

    16.0.0upgrade guide

  • The Sass loader supports modern Sass syntax and new features.

    16.0.0upgrade guideupgrade guideupgrade guide

Fixes and other changes 2

  • Coding agents can use version-matched Next.js documentation referenced from AGENTS.md during upgrades.

    16.0.0upgrade guideupgrade guide

  • The documentation no longer states that updateTag preserves client refresh.

    16.0.0upgrade guide

next 1533 changes

Breaking changes 18

  • Automatic Speed Insights instrumentation was removed; applications must add an explicit integration if they still need it.

    15.0.0upgrade guideupgrade guide

  • The stable bundlePagesRouterDependencies option replaces experimental.bundlePagesExternals.

    15.0.0upgrade guideupgrade guide

  • Page segments are no longer reused during Link or useRouter navigation, but remain reused for back-forward navigation and shared layouts.

    15.0.0upgrade guide

  • cookies is now asynchronous and must be awaited for recommended usage.

    15.0.0upgrade guide

  • draftMode is now asynchronous and must be awaited for recommended usage.

    15.0.0upgrade guide

  • fetch requests are no longer cached by default; use cache: 'force-cache' to opt in.

    15.0.0upgrade guide

  • The geo property was removed from NextRequest because hosting providers supply geolocation values.

    15.0.0upgrade guideupgrade guide

  • GET functions in Route Handlers are no longer cached by default.

    15.0.0upgrade guide

  • headers is now asynchronous and must be awaited for recommended usage.

    15.0.0upgrade guide

  • The ip property was removed from NextRequest because hosting providers supply IP values.

    15.0.0upgrade guideupgrade guide

  • The @next/font package was removed; imports must use the built-in next/font instead.

    15.0.0upgrade guideupgrade guide

  • Font imports move from @next/font to the built-in next/font API.

    15.0.0upgrade guide

  • params is now asynchronous in layouts, pages, route handlers, and related metadata files.

    15.0.0upgrade guide

  • The minimum React DOM version is now 19.

    15.0.0upgrade guide

  • The minimum React version is now 19.

    15.0.0upgrade guide

  • The experimental-edge runtime value now errors; use edge instead.

    15.0.0upgrade guide

  • useActionState replaces useFormState and provides direct access to pending state.

    15.0.0upgrade guide

  • useFormState is deprecated and has been replaced by useActionState.

    15.0.0upgrade guide

Deprecations 1

  • useFormState is deprecated in React 19 and will be removed in a future release.

    15.0.0upgrade guide

New APIs and options 6

  • staleTimes opts page segments into client caching with dynamic and static durations.

    15.0.0upgrade guide

  • fetchCache can opt all fetch requests in a layout or page into caching.

    15.0.0upgrade guide

  • The upgrade codemod can retry with --skip-eslint-upgrade to preserve repaired ESLint dependencies.

    15.0.0upgrade guide

  • The upgrade codemod can retry with --skip-react-upgrade to preserve repaired React dependencies.

    15.0.0upgrade guide

  • useActionState replaces useFormState and provides additional properties such as direct access to pending state.

    15.0.0upgrade guide

  • useFormStatus now exposes data, method, and action in React 19.

    15.0.0upgrade guideupgrade guide

Behavior and default changes 1

Tooling 4

  • Adds bun instructions for manually installing the latest Next.js, React, and ESLint config packages.

    15.0.0upgrade guide

  • Adds bun instructions for upgrading to the latest Next.js version with the upgrade codemod.

    15.0.0upgrade guide

  • Adds pnpm instructions for upgrading to the latest Next.js version with the upgrade codemod.

    15.0.0upgrade guide

  • Adds yarn instructions for upgrading to the latest Next.js version with the upgrade codemod.

    15.0.0upgrade guide

Fixes and other changes 3

  • Adds pnpm instructions for manually installing the latest Next.js, React, and ESLint config packages.

    15.0.0upgrade guide

  • The Pages Router supports React 18 and React 19, making the React 19 upgrade optional for Pages Router applications.

    15.0.0upgrade guide

  • Adds yarn instructions for manually installing the latest Next.js, React, and ESLint config packages.

    15.0.0upgrade guide