🚀 Upgrade to Nuxt 4
Overview
This issue tracks the upgrade of NuxtPapier from Nuxt 3 to Nuxt 4. Nuxt 4 is currently in Release Candidate stage (as of January 2025) with the stable release expected in Q2 2025.
Motivation
- Performance improvements: Faster cold starts, Node.js compile cache, native file watching
- New directory structure: Optional
app/ directory for better organization and IDE performance
- Improved data fetching: Smarter
useAsyncData and useFetch with better caching
- Enhanced TypeScript support: Separate TypeScript projects for different code areas
- Better developer experience: Socket-based communication, consistent component names
Migration Steps
Phase 1: Preparation
Phase 2: Compatibility Testing
Phase 3: Automated Migration
Phase 4: Manual Updates
Phase 5: Optional Directory Structure Migration
Phase 6: Testing & Validation
Phase 7: Performance Testing
Resources
Notes
- Nuxt 3 will receive maintenance updates until end of January 2026
- No immediate rush to upgrade, but good to prepare
- Most breaking changes have configuration options to revert to old behavior
Success Criteria
cc: @alexanderopalic
🚀 Upgrade to Nuxt 4
Overview
This issue tracks the upgrade of NuxtPapier from Nuxt 3 to Nuxt 4. Nuxt 4 is currently in Release Candidate stage (as of January 2025) with the stable release expected in Q2 2025.
Motivation
app/directory for better organization and IDE performanceuseAsyncDataanduseFetchwith better cachingMigration Steps
Phase 1: Preparation
pnpm nuxt upgrade)Phase 2: Compatibility Testing
nuxt.config.ts:Phase 3: Automated Migration
Phase 4: Manual Updates
generateconfiguration tonitro.prerender@nuxt/content v3)Phase 5: Optional Directory Structure Migration
app/directory structurePhase 6: Testing & Validation
pnpm typecheckand fix any TypeScript issuespnpm lintand fix any linting issuesPhase 7: Performance Testing
Resources
Notes
Success Criteria
cc: @alexanderopalic