Skip to content

fix(devtools): update client for unhead v3 and restore $fetch types - #1077

Merged
antfu merged 1 commit into
v3from
fix/unhead-v3
Aug 22, 2026
Merged

fix(devtools): update client for unhead v3 and restore $fetch types#1077
antfu merged 1 commit into
v3from
fix/unhead-v3

Conversation

@danielroe

Copy link
Copy Markdown
Member

🔗 Linked issue

📚 Description

the $fetch types issue is a regression already fixed in nuxt, but we also need to support both unhead v2 and v3

@danielroe
danielroe requested a review from antfu August 22, 2026 11:19
@danielroe
danielroe marked this pull request as ready for review August 22, 2026 11:19
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying nuxt-devtools with  Cloudflare Pages  Cloudflare Pages

Latest commit: fdd8d41
Status: ✅  Deploy successful!
Preview URL: https://bda268b2.nuxt-devtools.pages.dev
Branch Preview URL: https://fix-unhead-v3.nuxt-devtools.pages.dev

View logs

@coderabbitai

coderabbitai Bot commented Aug 22, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 8f085e23-a159-4109-b3be-3a5c7c0c0bca

📥 Commits

Reviewing files that changed from the base of the PR and between 39a6dbb and fdd8d41.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (8)
  • packages/devtools/client/components/OpenGraphMissingTabs.vue
  • packages/devtools/client/composables/client.ts
  • packages/devtools/client/composables/state-commands.ts
  • packages/devtools/client/composables/state-modules.ts
  • packages/devtools/client/data/open-graph.ts
  • packages/devtools/client/pages/modules/open-graph.vue
  • packages/devtools/package.json
  • pnpm-workspace.yaml

Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review.


📝 Walkthrough

Walkthrough

The devtools client updates Unhead type imports and dependency catalog entries. The Open Graph page supports both instance-based and standalone resolveTags APIs. Documentation and module-list requests add explicit $Fetch casts without changing request URLs or options.

Estimated code review effort: 2 (Simple) | ~10 minutes

Merge Risk: ⚪ Minimal · up to fdd8d

This change is merge-ready after normal checks and review; no actionable merge-blocking risk remains.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 4 files. (4 skipped: 4 unsupported.) Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes the two main changes: Unhead v3 client support and restored $fetch types.
Description check ✅ Passed The description directly addresses Unhead v2/v3 support and the $fetch type regression covered by the changeset.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/unhead-v3

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

packages/devtools/client/components/OpenGraphMissingTabs.vue

ESLint skipped: missing config or dependency (missing-dependency). The ESLint configuration references a package that is not available in the sandbox.

packages/devtools/client/composables/client.ts

ESLint skipped: the matched ESLint configuration already failed (missing-dependency).

packages/devtools/client/composables/state-commands.ts

ESLint skipped: the matched ESLint configuration already failed (missing-dependency).

  • 4 others

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@antfu
antfu merged commit 0fcb59a into v3 Aug 22, 2026
5 checks passed
@antfu
antfu deleted the fix/unhead-v3 branch August 22, 2026 22:47
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.

2 participants