v4.0.0-alpha.1

v4.0.0-alpha.1

NuxtJS

#nuxt

4.0.0-alpha.1 is the first alpha release of Nuxt 4 for early testing

We originally planned Nuxt 4 for June 2024, but things don't always go according to plan. I think it's appropriate to take a different approach:

👉 Nuxt 4 alpha will ship June 2, 2025, with a stable release at the end of the month. Nuxt 5 will come later once Nitro v3 is ready.

...

Today we release Nuxt v4 alpha 1! We'd love early adopters to test it. Please do report issues to Nuxt or any modules that you may be using.

Important

At the alpha stage, we are still planning additional breaking changes (and expect there will be bugs or 'friction'); at the beta stage, we are not planning breaking changes but they may occur if necessary. At the release candidate stage we expect only bug fixes.


Here's what you can expect over the next few weeks:

  • We plan to open upstream PRs for community modules in the nuxt/modules registry, and create a migration guide for module authors.
  • We'll create a full upgrade guide for Nuxt 3 users, including a list of breaking changes and how to migrate. (The current upgrade guide explains how to enable compatibility mode, but there are some differences with Nuxt 4.)
  • We'll only release bugfixes for v3 this month, deferring backporting new features until after the release of v4.
  • We'll update the docs on nuxt.com to allow switching between 3.x, 4.x and (soon) 5.x documentation.
  • Once we release the release candidate (we're aiming for June 23) we'd love everyone to dive in again for a last round of testing. We'll only be expecting bugfixes from this point onward.
  • Once v4 is released, we'll separate the main branch to 4.x to adopt edge releases of h3 and nitro and begin development of Nuxt 5.

Tip

You can follow the progress of the remaining work by checking these remaining tasks and the Nuxt 4 milestone on GitHub.


I'm really excited with this timeline — and thank you for your patience and trust over the last year!

👉 Read more at https://nuxt.com/blog/roadmap-v4

compare changes

🚀 Enhancements
  • kit,nuxt,schema,vite,webpack: Nitropack v3 nightly (#27702)
  • ui-templates: Update template branding for v4 (#27843)
  • deps: Upgrade to latest versions of c12, jiti and unbuild (#27995)
  • kit: Reimplement cjs utils using mlly (#28012)
  • nuxt: Generate basic jsdoc for module config entry (#27689)
  • schema: Split dev/prod build directories (#28594)
  • nuxt: Cache vue app build outputs (#28726)
  • deps: Update dependency vite to v6 (main) (#30042)
  • nuxt: Add integration with chrome devtools workspaces (#32084)

🔥 Performance
  • nuxt: ⚠️ Don't call render:html for server islands (#27889)
  • vite: Don't write stub manifest for legacy bundler (#27957)
  • kit: Update env expansion regex to match nitro (#30766)
  • nuxt: Replace remaining instance of globby (#31688)

🩹 Fixes
  • schema,vite: ⚠️ Do not allow configuring vite dev bundler (#27707)
  • schema: ⚠️ Default to compatibilityVersion: 4 (#27710)
  • nuxt: ⚠️ Emit absolute paths in builder:watch hook (#27709)
  • nuxt: ⚠️ Improve default asyncData value behaviour (#27718)
  • nuxt: ⚠️ Remove old experimental options (#27749)
  • kit: ⚠️ Support loading nuxt 4 and drop support for <=2 (#27837)
  • nuxt: ⚠️ Remove __NUXT__ after hydration (#27745)
  • ui-templates: Add default title back (3415241a6)
  • kit: ⚠️ Drop support for building nuxt 2 projects (1beddba6a)
  • nuxt: ⚠️ Bump internal majorVersion to 4 (7aae4033b)
  • kit: Mark resolvePath utils as sync (655e1473d)
  • kit: Revert change to tryResolveModule (2d136e04c)
  • kit: Add back requireModule and tryRequireModule (#28013)
  • nuxt: Hide unhandled error messages in prod (#28156)
  • nuxt: Add useScriptCrisp scripts stub (0c3cc4cf3)
  • nuxt: ⚠️ Remove unused globalName property (#28391)
  • nuxt: Use static import for updateAppConfig in HMR (#28349)
  • vite: Write dev manifest when ssr: false (#28488)
  • kit,nuxt,schema: ⚠️ Remove other support for nuxt2/bridge (#28936)
  • webpack: Only insert dynamic require plugin when building (b619b35e9)
  • nuxt: Guard window access (d874726ff)
  • nuxt: Remove unneeded subpath import (18a6ef1ca)
  • webpack: Handle new webpack chunk format (d293c06d2)
  • nuxt: Wrap slot with h() in ClientOnly (#30664)
  • kit: ⚠️ Do not check compatibility for nuxt version < 2.13 (f94cda4c8)
  • ui-templates: Fix examples link and add bluesky (#30866)
  • vite: Use resolveId from vite-node to resolve deps (#30922)
  • nuxt: Import isEqual from main ohash export (3ec1a1e5e)
  • vite: Don't set output.preserveModules (ce49734aa)
  • nuxt: Ignore #app-manifest import in dev mode (#31539)
  • nuxt: Ensure layer array-type config is merged in order (#31507)
  • schema: Turn off purgeCachedData until v4 (7aa3a01ae)
  • schema: Re-enable purgeCachedData by default (06745604c)
  • webpack: Expand dynamic require regexp to match new pattern (62e700daa)
  • nuxt: Add back missing reset of .execute (d79e14612)
  • nuxt: Remove unneeded pattern from regexp (cf4598d0d)
  • nuxt: Ensure appConfig sources are not duplicated (#32216)
  • nuxt,schema: ⚠️ Remove support for compatibilityVersion: 3 (#32255)
  • nuxt: Access asyncData state from nuxt app instance (#32232)
  • kit,nuxt,schema,vite: ⚠️ Remove support for some deprecated options (#32257)
  • nuxt: Make patterns relative to srcDir in buildCache (#32260)
  • nuxt: ⚠️ Don't rerun asyncdata w/ existing data in useAsyncData (#32170)
  • nuxt: Return non-existent route component in RouteProvider (#32266)
  • nuxt: Scan nitro handlers before writing types (a3698c08b)
  • nuxt: Force asyncData errorValue/value to be undefined (7e4eac655)
  • nuxt: ⚠️ Remove public and assets aliases (#32119)
  • nuxt: Use single asyncData watcher (#32247)

💅 Refactors
  • kit,nuxt: ⚠️ Drop nuxt 2 + ejs template compile support (#27706)
  • nuxt: ⚠️ Move #app/components/layout -> #app/components/nuxt-layout (209e81b60)
  • kit,nuxt,vite,webpack: ⚠️ Remove legacy require utils (#28008)
  • nuxt: Simplify check of dedupe option (#28151)
  • nuxt: Use direct import of installNuxtModule (501ccc375)
  • kit: Remove internal function (#32189)
  • Downgrade to nitro v2 (#32252)
  • schema: ⚠️ Remove config.schema.json export + defaults (#32254)
  • nuxt: Migrate to oxc-walker ([#32250](#3...

Generated by RSStT. The copyright belongs to the original author.

Source

Report Page