v4.7.1 is the next patch release.
👉 Changelog
🔥 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
useCookierefs created outside components (#37318) - vite: shim
requirecalls left in the server build (#37319) - nitro: copy public assets before prerendering (#37312)
- nuxt,vite: reference the
vite/clientandrolluptypes (#37310) - nitro: mount v2 middleware on
/for every path (#37296) - nitro: keep nitro v2
swrdefault for compat cached functions (#37298) - nitro: give the in-process
event.node.reswriteandend(#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.routeswith the Nitro v3 builder (cbc600324) - nuxt: keep the build directory name out of virtual module ids (#37308)
- nuxt: preserve empty string
statusTextinstead 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
useAsyncDataanduseFetchaddons 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.pathto 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
rolldownpeer range to matchunctx(89b2ec593) - nuxt: keep array positions when tree-shaking destructured bindings (#37254)
- nuxt: expose
NuxtErrorfields 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
urldot-segment check to nitropack builder (302412661) - nitro: set
tsBuildInfoFilein 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.routingaccess 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
uncryptodependency (#37258)
📖 Documentation
- exclude
appMiddlewareroute rules from security scope (4c6ef20be) - remove broken
keyanchor indefinePageMeta(#37275) - note that
useRequestFetchforwards 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: falsebelow a wildcardswrrule (#37271)
🎉 New Contributors
- Max Mostovoy (@pont1s)
- Adam Kasper (@adamkasper)
- Bryan Lundberg (@bryanlundberg)
- Marcos Paulo Diniz (@mdiniz97)
❤️ Contributors
- Daniel Roe (@danielroe)
- Max (@onmax)
- Jonas Thelemann (@dargmuesli)
- okxint (@okxint)
- Ori (@oritwoen)
- Max Mostovoy (@pont1s)
- Adam Kasper (@adamkasper)
- Bryan Lundberg (@bryanlundberg)
- Dogan Teke (@lafllamme)
- Marcos Paulo Diniz (@mdiniz97)