Repository navigation
chore(nuxt): Bump Nuxt dependencies to v4 - #6795
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: dd4c988 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
WalkthroughBumps Nuxt-related dependencies from v3 to v4 in Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Disabled knowledge base sources:
📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: Please share your feedback with us on this Discord post. Comment |
@clerk/agent-toolkit
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/dev-cli
@clerk/elements
@clerk/clerk-expo
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/localizations
@clerk/nextjs
@clerk/nuxt
@clerk/clerk-react
@clerk/react-router
@clerk/remix
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/themes
@clerk/types
@clerk/upgrade
@clerk/vue
commit: |
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
packages/nuxt/package.json (1)
71-79: Add a Nuxt peerDependency to enforce/communicate supported host versions.Publishing a Nuxt module without a
peerDependencies.nuxtmakes it easier for consumers to misalign host Nuxt versions.nuxi module addreads peer deps to auto‑install/validate; declare the supported range explicitly. (github.com)Apply (Option A: v4‑only):
"dependencies": { "@clerk/backend": "workspace:^", "@clerk/shared": "workspace:^", "@clerk/types": "workspace:^", "@clerk/vue": "workspace:^", "@nuxt/kit": "^4.1.2", "@nuxt/schema": "^4.1.2", "h3": "^1.15.3" }, + "peerDependencies": { + "nuxt": "^4.0.0" + }, + "peerDependenciesMeta": { + "nuxt": { "optional": false } + },(Option B: support Nuxt 3 and 4 — only if this package is tested under both majors):
- "peerDependencies": { - "nuxt": "^4.0.0" - }, + "peerDependencies": { + "nuxt": "^3.12.0 || ^4.0.0" + },Note: if you keep Nuxt 3 support, ensure APIs used remain v3‑safe or guard with Kit compatibility helpers. (nuxt.zhcndoc.com)
🧹 Nitpick comments (1)
packages/nuxt/package.json (1)
84-86: Update engines.node to match Nuxt’s current baseline (Node 20+).Nuxt docs recommend Node 20.x or newer; several v4 docs and examples assume Node 20 features. Consider bumping from
>=18.17.0to>=20.0.0(or>=18.20.0 || >=20.0.0if you must keep 18 LTS). (nuxt.com)"engines": { - "node": ">=18.17.0" + "node": ">=20.0.0" },
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Disabled knowledge base sources:
- Linear integration is disabled by default for public repositories
You can enable these sources in your CodeRabbit configuration.
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (2)
.changeset/lemon-cherries-search.md(1 hunks)packages/nuxt/package.json(1 hunks)
🧰 Additional context used
📓 Path-based instructions (3)
.changeset/**
📄 CodeRabbit inference engine (.cursor/rules/monorepo.mdc)
Automated releases must use Changesets.
Files:
.changeset/lemon-cherries-search.md
**/*.{js,jsx,ts,tsx,json,css,scss,md,yaml,yml}
📄 CodeRabbit inference engine (.cursor/rules/development.mdc)
Use Prettier for consistent code formatting
Files:
packages/nuxt/package.json
packages/*/package.json
📄 CodeRabbit inference engine (.cursor/rules/global.mdc)
All publishable packages should be placed under the packages/ directory
packages/*/package.json: All publishable packages must be located in the 'packages/' directory.
All packages must be published under the @clerk namespace on npm.
Semantic versioning must be used across all packages.
Files:
packages/nuxt/package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: Formatting | Dedupe | Changeset
- GitHub Check: Build Packages
- GitHub Check: semgrep-cloud-platform/scan
- GitHub Check: semgrep-cloud-platform/scan
🔇 Additional comments (4)
packages/nuxt/package.json (3)
76-78: Nuxt kit/schema → v4 alignment looks good.Upgrading
@nuxt/kitand@nuxt/schemato 4.1.2 matchesnuxtv4 and follows Nuxt’s guidance to keep kit/schema versions ≥ the Nuxt version. (nuxt.com)
81-81: Dev dependency bump to Nuxt v4 acknowledged; verify runtime matrix.Looks good. Please run CI on Node 20.x and 22.x to catch env-specific regressions (Nuxt docs recommend Node 20+). (nuxt.com)
71-83: Confirm semver impact — Nuxt v4 toolchain may break Nuxt 3 apps.packages/nuxt/package.json (lines 71–83) — deps/devDeps now use @nuxt/kit ^4 / nuxt ^4.
- Either mark the release as major (changeset),
- Or keep Nuxt 3 support: add peerDependencies.nuxt = "^3.12 || ^4" (or equivalent compatibility meta) and run tests on both Nuxt 3 and Nuxt 4.
.changeset/lemon-cherries-search.md (1)
1-5: Good: a changeset is included.Automated releases via Changesets are in place as per guidelines. Keep it.
Description
This PR bumps Nuxt module dependencies to v4. It's non-breaking and module compatibility is declared in the module entrypoint (supports Nuxt 3 and 4).
E2E tests still run on Nuxt 3 👍🏼
Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change
Summary by CodeRabbit