Repository navigation
fix(deps): upgrade to nuxt 4 to patch route-rule advisories - #11
Merged
Merged
Conversation
Nuxt 3.x has no fix for GHSA-xfq5-w38q-pc2x, GHSA-jjm6-p2m9-9w4x and GHSA-vjh5-4x84-xrqp, so move to nuxt 4.6.2+ and adopt the Nuxt 4 app/ layout and tsconfig project references. The refreshed lockfile also resolves serialize-javascript to 7.1.4, patching GHSA-m5mm-p8h7-m29v without an override.
🟢 Tier S · Ready to merge
Upgrades the starter from Nuxt 3 to Nuxt 4 and migrates its application files into Nuxt 4’s 1 of 4 changed files was too large to include in full.
Note Part of the diff was too large to review, so Hansi did not approve. 📂 Walkthrough · 8
Reviewed |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Upgrades the starter to Nuxt 4 to fix open Dependabot alerts, and applies the Nuxt 4 migration. Supersedes #7, which only bumps the version and doesn't move the project to the Nuxt 4 layout.
Fixed advisories
nuxtGHSA-xfq5-w38q-pc2x, GHSA-jjm6-p2m9-9w4x and GHSA-vjh5-4x84-xrqp: nuxt^3.13.0→^4.6.2(lockfile resolves 4.6.3). Nuxt 3.x has no fix.@nuxt/nitro-serverGHSA-vjh5-4x84-xrqp: resolves to 4.6.3.serialize-javascriptGHSA-m5mm-p8h7-m29v (transitive through nitropack → @rollup/plugin-terser): resolves to 7.1.4, so nooverridesentry is needed.Not addressed:
deepmergeGHSA-gcqx-w48m-w2h4 has no upstream fix.Nuxt 4 migration
app.vue,assets/andlib/intoapp/(the newsrcDir), so the~/lib/appwriteand@/assets/app.cssaliases keep working.public/stays at the root.tsconfig.jsonwith Nuxt 4 project references and removedserver/tsconfig.json, which Nuxt 4 no longer uses.compatibilityDate.Verification
npm installandnpm run buildpass.npm run devserves the starter page with no errors.package-lock.jsoncontains no vulnerablenuxt,@nuxt/nitro-serverorserialize-javascriptversions.