npm @nuxt/kit 4.7.1
v4.7.1

2 hours ago

v4.7.1 is the next patch release.

👉 Changelog

compare changes

🔥 Performance

  • nuxt: look up island client teleports once (#37300)
  • nuxt: reuse precomputed static app head across requests (#37274)
  • vite-server,vite,kit: build vite environments concurrently (#37265)
  • nuxt: drop identity map from vforToArray (#37273)

🩹 Fixes

  • kit,nuxt,nitro: match trailing slashes in speculation rules (#37314)
  • nuxt: share useCookie refs created outside components (#37318)
  • vite: shim require calls left in the server build (#37319)
  • nitro: copy public assets before prerendering (#37312)
  • nuxt,vite: reference the vite/client and rollup types (#37310)
  • nitro: mount v2 middleware on / for every path (#37296)
  • nitro: keep nitro v2 swr default for compat cached functions (#37298)
  • nitro: give the in-process event.node.res write and end (#37263)
  • nitro: don't report route-less v2 handlers with middleware: true (#37247)
  • nuxt: keep the unset keys on the resolved options (4204a2a58)
  • nuxt: prerender generate.routes with the Nitro v3 builder (cbc600324)
  • nuxt: keep the build directory name out of virtual module ids (#37308)
  • nuxt: preserve empty string statusText instead of falling through (#37302)
  • vite: ignore empty CSS sources when dropping stylesheet links (#37309)
  • nuxt: restore the entry script modulepreload (#37299)
  • nuxt: don't throw when useAsyncData and useFetch addons wrap promise methods on webkit 26 (#37250)
  • vite-server: match route rules a module declares a key for (#37297)
  • vite: resolve public assets from layer directories without nitro (#37293)
  • kit: count queued prerender routes when prerendering starts (#37290)
  • nitro: skip the spa index fallback when / is prerendered (#37289)
  • nitro: drain the previous dev worker on reload (#37255)
  • nitro: preserve return type in compat defineEventHandler (#37259)
  • rsbuild,rspack,webpack: report missing typescript + tsconfig for type checking (#37257)
  • nitro: expose matchedRoute.path to legacy handlers (#37253)
  • nitro: drop removed style blocks from dev ssr css (#37248)
  • nitro: keep dev server log context alive during streamed renders (214107d1a)
  • nuxt: widen rolldown peer range to match unctx (89b2ec593)
  • nuxt: keep array positions when tree-shaking destructured bindings (#37254)
  • nuxt: expose NuxtError fields on <NuxtErrorBoundary> error type (#37256)
  • nuxt: drain pending schema watcher writes on close (071edfd0e)
  • nitro: avoid duplicate prerendering of the SPA index (#37279)
  • nitro: limit island url dot-segment check to nitropack builder (302412661)
  • nitro: set tsBuildInfoFile in nitro tsconfig (#37283)
  • vite-server: serve and render requests relative to app.baseURL (#37270)
  • nitro: reject dot segments in island url (0ebdf1b64)
  • nitro: emit cjs stubs for libraries that require('vue') (#37268)
  • nuxt: type nitro.routing access for nitro v2 (627adb36f)
  • nuxt: sync routing after applying inline route rules (21778de14)
  • vite-server: do not pass untrusted error data to the error page (66c3f6972)
  • nuxt: only treat exact payload urls as payload requests (f06c15e3f)

💅 Refactors

  • kit,nuxt,schema: resolve options in nuxt/config without untyped (#37307)
  • nuxt: match island teleport markers once (#37285)
  • nuxt: drop uncrypto dependency (#37258)

📖 Documentation

  • exclude appMiddleware route rules from security scope (4c6ef20be)
  • remove broken key anchor in definePageMeta (#37275)
  • note that useRequestFetch forwards headers to absolute urls (fd3d23e9d)

🏡 Chore

  • keep eslint off the mirrored nitro v3 builder and kit source (dced6e566)
  • use full shas for deferred nitro v3 mirror commits (daa59be2a)
  • sync nitro v3 server mirror ref with main (dc16592d0)
  • allow deferring main commits from the nitro v3 mirror (6d5e8cf4d)

✅ Tests

  • install the duplicate-vue fixture package without racing (#37269)
  • resolve recent fixture and e2e test flakes (cb9d7a085)
  • cover client environment file access in dev error reports (f35b2f2f0)
  • cover cache: false below a wildcard swr rule (#37271)

🎉 New Contributors

❤️ Contributors

Don't miss a new kit release

NewReleases is sending notifications on new releases.