yarn nuxt 3.16.2

3 days ago

3.16.2 is the next patch release.

✅ Upgrading

Our recommendation for upgrading is to run:

npx nuxi@latest upgrade --dedupe

This will deduplicate your lockfile as well, and help ensure that you pull in updates from other dependencies that Nuxt relies on, particularly in the unjs ecosystem.

👉 Changelog

compare changes

🔥 Performance

  • nuxt: Improve tree-shaking of useRequestEvent on client (#31586)

🩹 Fixes

  • nuxt: Pass down attrs to <Body> and <Html> (#31513)
  • nuxt: Use greedy catchall when /index is the last segment (#31528)
  • nuxt: Reset page:loading:end hook before navigation (#31504)
  • nuxt: Write initial cookie value if different from document.cookie (#31517)
  • nuxt: Support template string quotes in resolveComponent (#31526)
  • nuxt: Show fatal errors thrown in middleware (#31518)
  • nuxt: Use name to index route providers in dev (#31544)
  • nuxt: Improve default scroll behaviour (#31545)
  • vite: Return 404 for non-existent _nuxt/ paths in development (#31543)
  • nuxt: Pass error data to error.vue (#31573)
  • nuxt: Use unhead v2 api in default welcome + error pages (#31584)
  • nuxt: Improve consistency of page metadata extraction (#31306)
  • nuxt: Do not remove meta when scanPageMeta is disabled (0ba454b21)

💅 Refactors

  • nuxt: Simplify conditional branches of <NuxtPage> (#31561)
  • Replace useServerHead in onPrehydrate with useHead (#31585)

📖 Documentation

  • Move custom directories note to the correct place (#29100)
  • Update example to useTemplateRef (#31458)
  • Provide async function for $fetch (#31459)
  • Mention the possibility to scan pages based on a pattern (#31462)
  • Add dedupe flag (#31467)
  • Improve refreshNuxtData docs (#31448)
  • Add missing -- before --template (#31469)
  • Migrate to @nuxt/content v3 (#31150)
  • Fix icon for main docs (e7828d9c6)
  • Save selected package manager (#31520)
  • Improve refresh nuxt data example (#31487)
  • Note that middleware runs on error pages as well (df14c0263)
  • Replace all 'Nuxt 3' with 'Nuxt' in documentation (#31519)
  • resolveComponent only auto-imports components with literal strings (#31511)
  • Add ticks around tsconfig.json (#31473)
  • Capitalize heading (#31523)
  • Update links to unhead.unjs.io (1913febbb)
  • Document that props are passed via server components via query (db7688219)
  • Improve description of page:start and page:finish hooks (#31570)

🏡 Chore

✅ Tests

  • Avoid invalid nested font face (#31524)
  • Add test for loading indicator with custom key (25ca9b819)
  • Add test for custom prop + loading indicator (94bfed031)
  • Update snapshot (55134fc2a)

❤️ Contributors

Don't miss a new nuxt release

NewReleases is sending notifications on new releases.