unstale

npm / @netlify/plugin-nextjs

@netlify/plugin-nextjs

What changed in @netlify/plugin-nextjs 4 to 5, from its official release notes, upgrade guides and advisories. Sources checked 2026-10-20.

1 breaking2 performance1 behavior and defaults19 fixes and other

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

npx @unstale/cli init

@unstale/cli 0.2.1 on npm

@netlify/plugin-nextjs 521 changes

Breaking changes 1

  • Pages router no longer prefetches the revalidation marker.

    5.16.2release notes

Performance 2

Behavior and default changes 1

  • Adds header handling for static service-worker assets.

    5.16.0release notes

Fixes and other changes 17

  • App router tags are encoded when purging cache.

    5.16.3release notes

  • Seeds the route group cache correctly for the new cache key signature.

    5.16.2release notes

  • Adjusts cache handler keys for compatibility with next@16.3.8.

    5.16.1release notes

  • Preserves initURL.

    5.16.0release notes

  • Awaits the Node middleware require in the generated edge handler template.

    5.16.0release notes

  • Keeps non-ASCII blob keys consistent between build and runtime.

    5.16.0release notes

  • Prevents crashes when server actions exceed the body size limit.

    5.16.0release notes

  • Handles invalid _next/image requests.

    5.15.13release notes

  • Prerendered content is marked as less stale now that the expire setting is enforced when marking content for blocking re-render.

    5.15.12release notes

  • Fixed matching on data routes when the middleware matcher uses allowed paths.

    5.15.11release notes

  • A cache tag is now set for getStaticProps redirects.

    5.15.10release notes

  • Same-url rewrites are no longer optimized when response headers need to be applied.

    5.15.10release notes

  • Handles extractExportedConstValue returning null or a wrapped object in next@canary.

    5.15.9release notes

  • Works around tarball bundling issues with virtual CJS modules for Node.js middleware/proxy.

    5.15.9release notes

  • Fixes resolving CommonJS when a nested package.json is present in Node Middleware/proxy.

    5.15.8release notes

  • Cache tags provided by Next.js for the App Router are now encoded.

    5.15.7release notes

  • Handles Next.js using cdn-cache-control for cacheable responses.

    5.15.5release notes

@netlify/plugin-nextjs 42 changes

Fixes and other changes 2

  • fetch is reassignable instead of const, fixing cases where reassignment is needed.

    4.41.5release notes

  • self is reassignable instead of const, fixing cases where reassignment is needed.

    4.41.5release notes