@vercel/next
31.0.2 · 20 Nov 2026Apache-2.05.8M / weekRepositoryHomepagenpmAtom feed
In short
1 new1 internal
Release note
The section about @vercel/next of a note shared by several packages.
Minor Changes
Replace
prerenderClassificationonPrerenderwithinitialMetadata.The platform consumes only the request-time compute mode and the HTML shell
size, so the flattened four-field taxonomy (routeType,response,compute,htmlSize) is reduced to a single grouped field:initialMetadata?: { compute: 'blocking' | 'resuming' | 'static'; htmlSize?: number; }The group is named
initialMetadatabecause the values describe the
deployment as it was built: revalidation can regenerate a route's output over
the deployment's lifetime, so readers must treat them as initial values, not
live state.@vercel/nextreadscomputeandhtmlSizeoff the v4
prerender-manifest taxonomy and deliberately ignoresrouteTypeandresponse; the values are still carried unvalidated so a compute mode added
by a future framework release cannot hard-fail a deploy, and they are still
set only on the primary output of each prerender group.htmlSize: 0is a
real size (a shell that postponed everything);htmlSizeis absent when
there is no HTML shell to measure (route handlers, Pages Router). Absence of
the whole group remains legitimate (notFoundRoutes, Pages Routerfallback: false, older frameworks).
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.