Change8

v4.0.2

📦 nuxtView on GitHub →
3 features🐛 5 fixes🔧 7 symbols

Summary

Nuxt 4.0.2 is a patch release focusing on type safety improvements for components and AppConfig, Vite request transformation fixes, and documentation updates.

Migration Steps

  1. Update installation commands to use 'npm create nuxt@latest' as per updated documentation.

✨ New Features

  • Provide typed slots for <ClientOnly> and <DevOnly> components.
  • Include module types in the app context within Nuxt Kit.
  • Add source base URL support for remote islands.

🐛 Bug Fixes

  • Add trailing slash to specific directory aliases in kit, nuxt, and schema.
  • Constrain global defineAppConfig type for better type safety.
  • Use vite node server to transform requests in Vite integration.
  • Use mlly to parse module paths in Nuxt Kit.
  • Ensure all plugins execute after error rendering in error.vue.

🔧 Affected Symbols

<ClientOnly><DevOnly>defineAppConfigerror.vuenuxt/kitnuxt/schemavite