Skip to content

feat!: drop Nuxt Content v2 support - #350

Merged
harlan-zw merged 1 commit into
mainfrom
feat/drop-content-v2
Oct 12, 2026
Merged

harlan-zw merged 1 commit into
mainfrom
feat/drop-content-v2

Conversation

@harlan-zw

Copy link
Copy Markdown
Contributor

🔗 Linked issue

Part of the Nuxt SEO v6 release.

❓ Type of change

  • 📖 Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • 👌 Enhancement (improving an existing functionality)
  • ✨ New feature (a non-breaking change that adds functionality)
  • 🧹 Chore (updates to the build process or auxiliary tools and libraries)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

📚 Description

Nuxt SEO v6 drops Nuxt Content v2 support, and Robots 7 ships in that release.
This PR removes the v2 integration: the /__robots__/nuxt-content.json route, the init fetch, the isNuxtContentV2 runtime flag, and the Cloudflare opt out.
The Nuxt Content v3 and comark-content integrations do not change.

The optional @nuxt/content module dependency now requires >=3.
If v2 is installed, Nuxt stops at startup with a version error instead of running a removed path.
The Content guide loses its v2 setup section.

⚠️ Breaking Changes

Nuxt Content v2 is no longer supported. Upgrade to Nuxt Content v3.

🤖 AI disclosure: Harlan Agent Kit modified this description. My AI open-source policy.

Nuxt SEO v6 drops Nuxt Content v2 across its modules.
The v2 path kept a server route, an init fetch, and a runtime config flag.

BREAKING CHANGE: the optional `@nuxt/content` dependency now requires v3.
If v2 is installed, Nuxt fails at startup with a version error. Upgrade to Nuxt Content v3.
@pkg-pr-new

pkg-pr-new Bot commented Oct 12, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@nuxtjs/robots@350

commit: 433ba96

@github-actions

Copy link
Copy Markdown

Nuxt logo Nuxt Module Size Analyzer

Runtime size changed.

Module Client gzip Server raw
@nuxtjs/robots 608 B 168 kB
🟢 -4.6 kB (-2.7%)
Package files (6)

Rows overlap and include unused code. These totals do not measure deployed output or npm downloads.
Excludes dependency files, types, source maps, and other non-code files.

Package files Summed gzip Raw Δ gzip
@nuxtjs/robots · export . 6.9 kB 26 kB 🟢 -169 B (-2.4%)
@nuxtjs/robots · export ./content 292 B 503 B —
@nuxtjs/robots · export ./util 466 B 784 B —
@nuxtjs/robots · built code files 42 kB 137 kB 🟢 -1.2 kB (-2.8%)
@nuxtjs/robots · app source files 3.3 kB 7.2 kB —
@nuxtjs/robots · server source files 8.9 kB 21 kB 🟢 -893 B (-9.1%)
Dependencies (8)

Declared dependencies. Their installed size does not show runtime cost.

Package Dependency Requested
@nuxtjs/robots @fingerprintjs/botd catalog:
@nuxtjs/robots @nuxt/kit catalog:
@nuxtjs/robots @vueuse/core catalog:
@nuxtjs/robots consola catalog:
@nuxtjs/robots defu catalog:
@nuxtjs/robots nuxt-site-config catalog:
@nuxtjs/robots nuxtseo-shared catalog:
@nuxtjs/robots ufo catalog:
How this is measured
  • Compare the same app with and without the module.
  • Client: all emitted JS/CSS, summed per-file gzip. This includes lazy chunks.
  • Server: deployed files, including external dependencies. Source maps are excluded.
  • Default module settings, Node server preset. Memory and request speed are outside this report.

Base: main @ fab5a9e · 2026-10-12 · differences below 16 B are ignored

@harlan-zw
harlan-zw marked this pull request as ready for review October 12, 2026 14:33
@harlan-zw
harlan-zw merged commit cc95fa1 into main Oct 12, 2026
11 checks passed
@harlan-zw
harlan-zw deleted the feat/drop-content-v2 branch October 12, 2026 14:39
@harlan-zw

Copy link
Copy Markdown
Contributor Author

Harlan Agent Kit posted this automated status. AI open source policy.

This release includes breaking changes. Run a manual major release. Automatic releases support patch and minor only.
Includes all unreleased changes since v6.2.4.
Checked head 433ba9672c1bec59bc90de1b6602ae40386e95e0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant