Skip to content

fix(deps): upgrade to nuxt 4 to patch route-rule advisories - #11

Merged
ChiragAgg5k merged 1 commit into
mainfrom
fix/ghsa-nuxt4
Nov 2, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
fix/ghsa-nuxt4

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

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

Not addressed: deepmerge GHSA-gcqx-w48m-w2h4 has no upstream fix.

Nuxt 4 migration

  • Moved app.vue, assets/ and lib/ into app/ (the new srcDir), so the ~/lib/appwrite and @/assets/app.css aliases keep working. public/ stays at the root.
  • Replaced the root tsconfig.json with Nuxt 4 project references and removed server/tsconfig.json, which Nuxt 4 no longer uses.
  • Bumped compatibilityDate.

Verification

  • npm install and npm run build pass.
  • npm run dev serves the starter page with no errors.
  • package-lock.json contains no vulnerable nuxt, @nuxt/nitro-server or serialize-javascript versions.

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.
@hansi-codes

hansi-codes Bot commented Nov 2, 2026 •

Copy link
Copy Markdown

🟢 Tier S · Ready to merge

The locked npm install and production build both complete successfully, and the migrated layout and TypeScript references match the project’s usage.

Upgrades the starter from Nuxt 3 to Nuxt 4 and migrates its application files into Nuxt 4’s app/ source directory. Updates the Nuxt compatibility date, dependency lockfile, and root TypeScript project references, while removing the obsolete server TypeScript config.

1 of 4 changed files was too large to include in full.

Verdict New comments Fixed Still open
💬 Commented 0 0 0

Note

Part of the diff was too large to review, so Hansi did not approve.

📂 Walkthrough · 8
File Change
nuxt.config.ts Advances the Nuxt compatibility date.
package.json Updates the Nuxt dependency to the Nuxt 4 range.
package-lock.json Resolves the Nuxt 4 dependency tree.
tsconfig.json Switches to Nuxt 4 generated project references.
app/app.vue Moves the root application component into Nuxt 4’s app directory.
app/assets/app.css Moves the stylesheet into the app directory.
app/lib/appwrite.js Moves the Appwrite helper into the app directory.
server/tsconfig.json Removes the obsolete server TypeScript configuration.

Reviewed b15386d · Details · Comment @hansi-codes review to re-run, or mention @hansi-codes with a question.

@hansi-codes hansi-codes Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@ChiragAgg5k
ChiragAgg5k merged commit 1dc1560 into main Nov 2, 2026
2 checks passed
@ChiragAgg5k
ChiragAgg5k deleted the fix/ghsa-nuxt4 branch November 2, 2026 10:30
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