Packages

next

16.4.5 · 3 Nov 2026MIT98.4M / weekRepositoryHomepagenpmAtom feed

Your version

13.5.1

19 Sep 2023Where it was published

13.5.11 is the newest release of 13.x.

npm marks 13.5.1 as deprecated: This version has a security vulnerability. Please upgrade to a patched version. See nextjs.org/blog/security-update-2025-12-11 for more details.

In short

9 breaking3 removed29 new16 faster82 fixed214 internal

  • Breaking

    fix: minimum node version 16.14.0

  • Breaking

    fix(app): enable React Strict Mode by default

  • Breaking

    server: enable minification by default

    To check
  • Breaking

    remove --turbo, use --experimental-turbo as --turbo

  • Breaking

    Check for type of route handler returned value at build time (via the TS plugin) and at runtime

  • Breaking

    WEB-1135: Update examples and schema for Turbopack loaders config change

  • Breaking

    Set standalone server default hostname to 0.0.0.0

  • Breaking

    Update useParams typing to assume a given shape

Security

Fixes 1 advisory that affected 13.5.0

36 advisories affect 13.5.1; 15.5.29 fixes them

31 more

Release note

Core Changes

  • Update font data

  • Add experimental https support to next dev

  • Fix emotion-js transform for server components

  • Handle basePath for redirect()

  • Remove unused array in router-server

  • app-router: Tweak prefetch cache status heuristics

  • Adds nonce to preinit scripts

  • Fix default export of server action utility aliases

  • Improve error message when output: export in app router

  • Server actions blocking navigation events

  • Skip getStaticPaths check for non-dynamic app routes

  • OpenTel: Ensure that exceptions are recorded on an active span

  • Testmode: Intercept rewrite fetches

  • Polyfill Array.prototype.at

  • Fix missing locale info for middleware data request

  • Breaking

    Minimum node version 16.14.0

  • Merge app renderer process

  • Fix data route ordering in dev

  • app: Enable React Strict Mode by default

  • Fix swc compiling of client components when directive appears later than exports

  • Upgrade vendored react

  • Code clean up

  • Upgrade precompiled ua-parser-js

  • Fix compilation of next/dynamic with ssr: false in App Router

  • Fix not found css not being preloaded while navigation

  • Optimize webpack memory cache garbage collection

  • Use push for Server Action redirections

  • Decreased watchpack aggregate timeout

  • Generate prefetch RSC paylod during build for SSR paths

  • Remove HMR polling in favor of more targeted events

  • Trace upload fixup

  • Custom incremental cache handlers should work when transpiled

  • Upgrade Edge Runtime dependency

  • Fix infinite navigate events when Promise is proxied

  • Implement named_import_transform

  • Fix resolve routes behavior when matching a dynamic segment

  • Turbopack: Add edge support for pages apis

  • Skip copying signal field for revalidate

  • Fix missing new line for certain logs

  • Update turbopack

  • DX: More precise error messages for export const config deprecation

  • Revert "Decreased watchpack aggregate timeout"

  • Forms and mutations docs.

  • optimize_barrel SWC transform and new optimizePackageImports config

  • Reuse edgeConditionNames variable

  • Update font data

  • Add cleanup logic to worker.ts

  • Fix router CPU profiling

  • Turbopack: Add middleware support for next.rs api dev mode

  • Rename hot-reloader to hot-reloader-webpack

  • Implement hot-reloader interface

  • Remove this as any cases

  • Implement hot reloader interface for Turbopack

  • Fix weight values above 900 not working with Google Fonts

  • Add support for app pages to next.rs api

  • Remove unused cssnano-simple file

  • File Reader Improvements

  • Add new permanentRedirect function in App Router

  • Default app router not found

  • Cleanup of /_next/data handling in server

  • Trace uploader: fix git binary on windows

  • next/image: Import error preload is not exported from react-dom

  • turbopack: Should only create _not-found when path_prefix is root

  • Fix app routes

  • Improve barrel optimizer with loader caching and wilcard exports

  • Move getBabelConfigFile to separate file

  • Reimplement getBabelConfigFile to be simpler

  • Fix memory watcher reboot

  • Misc Typescript updates

  • Fix unexpected full hmr reload when editing _app

  • Update turbopack

  • Use variable for common isNodeOrEdgeCompilation condition

  • Turbopack: Implement HMR in next-api

  • Add @visx/visx to the import optimization list

  • Remove experimental.appDir as it's stable

  • Short circut 404's for /favicon.ico in development

  • Remove additional appDir checks

  • Remove experimental.pageEnv

  • Update list of Next.js options in next.rs

  • Fixes for Turbopack HMR

  • Fix the build manifest path for /

  • Allow any number of onFetch handlers for a single test

  • Update @vercel/og to latest

  • turbopack: Edge api entry path should not have /route suffix

  • Don't send tracing spans if performance.measure doesn't return measurements

  • Fix performance measures crashing the app #54858

  • Update tag handling for app cache

  • Simplify getPagePaths logic

  • Debug tracing: time devserver startup

  • Update turbopack

  • Add types for hot reloader send method

  • Ensure that barrel files behind wildcards are transformed into shortpath

  • Fix group routes custom root not-found

  • Server actions firing twice after navigation

  • Unify serverError hmr event

  • Add serverError action to list of HMR events

  • next-swc: Skips client/server only checks when running with Jest to unblock testing

  • Remove pong HMR event as it is not used

  • Add turbopack-connected HMR event

  • Redesign nextjs logging

  • Upgrade edge-runtime

  • Use correct extra config for pages router

  • Client-side HMR message types

  • Use split chunks for the node server

  • Remove react-hot-toast from the optimizePackageImports list

  • Experimental server optimization

  • Fix duplicated dynamic metadata routes in dev mode

  • Adjust optimizePackageImports

  • server: Enable minification by default

  • webpack: Tweak config for split chunks

  • perf: Lazy load babel/code-frame

  • Remove --turbo, use --experimental-turbo as --turbo

  • skipTrailingSlashRedirect being ignored in pages

  • Debug tracing: include session and anonymous ids

  • Next SWC: Constrain Vc cell values with Send

  • Add bundled rendering runtimes

  • Fixed i18n data route RegExp

  • Ensure mpa navigation render side effects are only fired once

  • Revert "perf: add bundled rendering runtimes (#52997)"

  • Strip internal routing headers

  • Add option to support log full request url in verbose mode

  • Filter out pages tree view for app dir only output

  • Check for type of route handler returned value at build time (via the TS plugin) and at runtime

  • Set test headers via page.router API

  • server: re-land bundled runtimes

  • turbopack: Add dynamic metadata support

  • server: Require hook hotfix

  • Revert swc versions to one that doesn't use lightningcss

  • Support expanding urls in nexturbo (and fix static files)

  • Update font data

  • server: Remove turbopack-specific code when compiling with webpack

  • Ensure ImageResponse extends Response

  • Remove render workers in favor of esm loader

  • Add reserved port validation

  • Make open editor icon size non-shrink in error overlay

  • reafactor: Renamed pathname -> page

  • next-dev: Reenable turbopack beta message

  • Add libsql to external package list

  • Removed unused intercepting route definition references

  • Remove unused option and unified ready message into start server

  • Removed

    Remove --experimental-turbo from supported next-dev args

  • Use NextJsHotReloaderInterface in router-server

  • server: Switch pages to react dom edge renderer

  • Logging improvements

  • Updates Mozilla links to not include language preference

  • Fix react-server-dom-webpack cache invalidation

  • turbopack: Attach type metadata for static metadata item

  • Fix duplicated error logging when start server

  • Revert react-server-dom require change

  • Fix turbopack HMR, fix disconnect detection

  • Fix CPU profile generation

  • Fix memory leak in require.cache cleanup

  • WEB-1135: Update examples and schema for Turbopack loaders config change

  • turbopack: Support next.js specific node polyfills

  • Turbopack: Allow Pages entrypoint template to import user's .ts files

  • Revert "feat(turbopack): support next.js specific node polyfills"

  • Remove leftover worker code and types

  • Run validation logic for TURBOPACK too

  • More turbopack HMR fixes and test case

  • Revert "Revert react-server-dom require change"

  • Set standalone server default hostname to 0.0.0.0

  • Revert "Revert "feat(turbopack): support next.js specific node polyfills""

  • Memoize serverDistDir generation

  • Remove IncomingMessage type where unused

  • Remove unused file

  • Update useParams typing to assume a given shape

  • Remove setLazyProp from the hot path of all requests

  • Server actions initiated from static pages

  • Turbopack: Log hmr compile changes

  • Server actions initiated from static pages

  • Turbopack: Log hmr compile changes

  • Update turbopack

  • Sort imports to ensure consistent hash

  • Fix manifest load errors when using assetPrefix

  • Turbopack: Remap next/head on client in App Pages

  • Ensure etags are not generated for static files when disabled

  • Use atomic writes to avoid seeing incomplete files

  • Fix server-side changes events

  • server: Bundle vendored react

  • Move sort to loader to also sort query string

  • Don't log error about root_task_dispose

  • Skip JSON.parse in loadClientReferenceManifest

  • Restrict useFormState in Server Components

  • Generate middlewareManifestPath only once

  • Test Mode: Report onFetch interceptions in the test

  • Turbopack: Setup HMR for client-only changes in App dir

  • Remove esm loader

  • Update turbopack

  • Removed

    Remove process.env reading in require hook

  • Allow server-only in server targets and client-only in client components targets to be available

  • Make useSearchParams and useParams compatible between app and pages router

  • next-core: Enable image extensions

  • Run turbopack in forked process

  • Fix next.js own build on windows

  • Fix notFound status code with ISR in app

  • Disable client-only for middleware and pages api layer

  • Fix missing module.compiled trace file and unhandledRejection in ensurePage

  • Add mui-core to the default optimizePackageImports list

  • Consolidate experimental React opt-in & add ppr flag

  • Add react-icons to optimizePackageImports

  • Fix useState function initialiser case for optimize_server_react transform

  • Update supported config options for Turbopack

  • Fix react packages are not bundled for metadata routes

  • Improve internal error logging

  • Fix styled-jsx alias

Example Changes

  • Fix grammar issues on README.md

  • Slug type issue

  • Security

    examples/cms-keystonejs-embedded/package.json to reduce vulnerabilities

Misc Changes

  • Add test for using custom font in metadata image routes

  • Add test case for CSP with bootstrap scripts and preinit modules

  • Fix windows next-swc builds

  • Fix failing TS test from new release

  • Enable verbose logging for turbo in CI

  • Add missing install env for release stats

  • Implement granular rust caching

  • Enable all passing turbopack tests for CI

  • Added support for tests to add resolutions for deps

  • Add test for turbopack refresh error

  • Fix inconsistency with pnpm lockfile

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.