Skip to content

fix(docs): type useCanonical link array as unhead Link[]#6748

Open
danielroe wants to merge 1 commit into
v4from
fix/ui-canonical-unhead
Open

fix(docs): type useCanonical link array as unhead Link[]#6748
danielroe wants to merge 1 commit into
v4from
fix/ui-canonical-unhead

Conversation

@danielroe

@danielroe danielroe commented Jul 17, 2026

Copy link
Copy Markdown
Member

🔗 Linked issue

❓ 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

uncovered this in ecosystem ci - it's a tightening in an upcoming @unhead/vue release (3.1.8, which will be dependency of Nuxt v4.5)

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe
danielroe requested a review from benjamincanac as a code owner July 17, 2026 22:45
@github-actions github-actions Bot added the v4 #4488 label Jul 17, 2026
@coderabbitai

coderabbitai Bot commented Jul 17, 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

Run ID: 7ac08d1b-d976-49aa-80c6-11faf23e28b1

📥 Commits

Reviewing files that changed from the base of the PR and between 0a1803d and 75996e0.

📒 Files selected for processing (1)
  • docs/app/composables/useCanonical.ts

📝 Walkthrough

Walkthrough

The useCanonical composable now imports Unhead’s public Link type and uses Link[] for its computed canonical and alternate link list. Runtime link construction remains unchanged.

Estimated code review effort: 1 (Trivial) | ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately reflects the main change: typing useCanonical links with Unhead's Link[] in docs.
Description check ✅ Passed The description is clearly related to the change and explains the ecosystem CI issue and upcoming @unhead/vue tightening.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/ui-canonical-unhead

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.

ESLint install timed out. The project may have too many dependencies for the sandbox.


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.

@pkg-pr-new

pkg-pr-new Bot commented Jul 17, 2026

Copy link
Copy Markdown
npm i https://pkg.pr.new/@nuxt/ui@6748

commit: 75996e0

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

Labels

v4 #4488

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant