npm / next-seo
next-seo
What changed in next-seo 5 to 7, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.
18 breaking1 security6 new APIs and options1 behavior and defaults1 fixes and other
See which of these apply to your code, ranked, in your agent:
npx @unstale/cli initnext-seo 714 changes
Breaking changes 7
App Router components are used directly instead of with useAppDir={true}.
ArticleJsonLd uses author instead of authorName.
ArticleJsonLd uses headline instead of title for the article headline.
ArticleJsonLd uses image instead of images for the article image.
Publisher details are supplied as a publisher object instead of separate publisherName and publisherLogo props.
The Pages Router default SEO API is now a function rather than the DefaultSeo component.
The documented App Router placement changes from page.js to page.tsx/jsx.
Security 1
All JSON-LD components accept an optional nonce prop, forwarded to the rendered script tag for CSP compliance.
New APIs and options 5
Adds the
aggregateRatingprop, a direct Schema.org Organization property processed using shared utilities.Adds the
reviewprop, a direct Schema.org Organization property processed using shared utilities.Adds a component for Schema.org HowTo structured data, supporting HowTo steps, sections, directions, tips, supplies, tools, ISO 8601 durations, cost, yield, and video.
Pages Router SEO is generated with a function from next-seo/pages and rendered inside next/head’s Head component, replacing the NextSeo component.
App Router usage now has built-in title support; the title prop was not required in v6.
Behavior and default changes 1
JSON-LD components were rebuilt to follow Google's structured data gallery specifications, with updated schemas, validation, error messages, and support for latest schema.org properties.
next-seo 64 changes
Breaking changes 3
In the app directory, migrate from the NextSeo component to Next.js's built-in generateMetaData method for standard metadata.
A fix changes how noindex and nofollow override each other; existing workarounds may have strange effects.
Add useAppDir={true} to JSON-LD components used in the app directory, and place the component in page.js rather than head.js.
New APIs and options 1
The product JSON-LD prop type gains a category property.
next-seo 59 changes
Breaking changes 8
BlogJsonLd is merged with ArticleJsonLd, changing how developers represent blog content.
The type prop was renamed to ofType.
The providerName prop is now moved to an object, changing the CourseJsonLd data shape.
The googlebot tag is no longer included by default, and props for disabling it have been removed.
The organizationType prop was renamed to type.
The author field within review is now a string.
QAPageJsonldProps was renamed to QAPageJsonLdProps.
The upvotedCount prop was renamed to upvoteCount in QAPageJsonLd.
Fixes and other changes 1
When og:title is not set, it now correctly inherits the title that is set.