Originally published at https://github.com/nuxt/framework/releases/tag/v3.0.0-rc.14
Note
This is the last release candidate for Nuxt v3! Are you ready? 👀
Changelog
⚠️ Breaking Changes
- cli: Setup nuxt globally with
nuxt test(#4578) - nuxt: Only add
$ffetch prefix to auto-keys (#8852) - test-utils: Use
vitest/nodesubpath export (#8815) - nuxt: Remove
initialCacheoption (#8885) - nuxt: Enable payload extraction only for
nuxi generate(#9018) - nuxt: Include request url and params in
useFetchkey (#6632) - nuxt: Fix typo for
NuxtRenderHTMLContext.bodyPrepend(#8712) (#8704) - nuxt: Remove support for
404.vueshorthand (#8809) - kit: Remove support for module container (#9010)
- nuxt: Move
headoption support intodefineNuxtComponent(#8901) - Remove deprecated api (#9029)
- RemovePrivateRuntimeConfiginterface support
- RemoveautoImportsoption
- RemoveautoImports:extendhook support
- Remove deprecatedaddAutoImportandaddAutoImportutilities (useaddImportsandaddImportsDir)
- Removedeferoption foruseAsyncData
- Remove support forinstallModule(nuxt, nuxtModule)
- Remove support for module defenition as function
- Remove support fornamein module definition (usemeta.name)
- Remove deprecatedthrowError(useshowError)
- Remove deprecateduseActiveRoute(useuseRoute)
- Remove deprecatedNuxtConfiganddefineNuxtConfigimports fromnuxt(import fromnuxt/config)
- Remove deprecated<Script>component (useuseHead)
- Remove deprecatedRouterConfigOptionsinterface (useRouterConfigSerializable)
- Remove deprecatedfileNamefor template options (usefilename)
- Remove deprecated<NuxtNestedPage>and<NuxtChild>components
- Remove deprecatedbuildModulesconfig
- Remove deprecatedprivateRuntimeConfigandpublicRuntimeConfigoptions
- Remove deprecatedimports.presets[].name(usepresets.importsinstead)
🚀 Enhancements
- nuxt: Add
isExternalto<NuxtLink>slot props (#8800) - nuxt: Auto-import
utils/directory (#8817) - cli: Wrap and normalize all console outputs (#8846)
- nuxt: Allow customizing root id and tag (#8883)
- nuxt: Add
onBeforeRouteLeaveandonBeforeRouteUpdatecomposables (#8889) - cli: ⚠️ Setup nuxt globally with
nuxt test(#4578) - cli: Auto-generate
.npmrcand setting for pnpm (#7407) - nuxt, schema: Migrate to @vueuse/head v1 (#8975)
🩹 Fixes
- nuxt: Check if global transitions are activated for scroll behavior (#8700)
- nuxt: Allow cookies to be set to
nullto unset them (#8769) - nuxt: Add catchall paths to prerender list (#8782)
- schema: Add declarations to ignore list (#8787)
- ssr: Ensure
useRequestHeadersare case-insensitive (#8805) - nuxt: Do not render page if we are throwing error (#8821)
- nuxt: Swallow issues with query selectors (#8843)
- nuxt: ⚠️ Only add
$ffetch prefix to auto-keys (#8852) - test-utils: Detect project root using
nuxt.configwith.mjsand.cjsextensions (#8855) - cli: Exclude
distfrom type checking (#8848) - test-utils: ⚠️ Use
vitest/nodesubpath export (#8815) - nuxt: Detect non-functional imports within page meta (#8881)
- nuxt: Preserve render errors (#8884)
- nuxt: ⚠️ Remove
initialCacheoption (#8885) - nuxt: Use
app.baseURLwhen fetching error page on server (#8888) - nuxt: Avoid passing attrs to default slot for
<ClientOnly>component (#8921) - vite: Add extend layers to
fs.allow(#9006) - nuxt: Include layers in esbuild transform (#9014)
- kit: Add external module to transpile (#8963)
- nuxt: ⚠️ Enable payload extraction only for
nuxi generate(#9018) - nuxt: ⚠️ Include request url and params in
useFetchkey (#6632) - nuxt: Improve hmr for pages macros (#8940)
💅 Refactors
- nuxt: ⚠️ Fix typo for
NuxtRenderHTMLContext.bodyPrepend(#8712) - nuxt: ⚠️ Fix typo for
NuxtRenderHTMLContext.bodyPrepend(#8704) - nuxt: ⚠️ Remove support for
404.vueshorthand (#8809) - nuxt: Explicitly import app in nuxt-root (#8729)
- kit: ⚠️ Remove support for module container (#9010)
- Update unjs dependencies to stable v1 (#9011)
- nuxt: ⚠️ Move
headoption support intodefineNuxtComponent(#8901) - ⚠️ Remove deprecated api (#9029)
📖 Documentation
- Update 2.nuxt-page.md (#8761)
- Update roadmap for november (#8766)
- Use update import for
defineLazyEventHandler(#8767) - Remove stability-edge (507f444c)
- deployment: Remove usage of custom icons (8e4068b7)
- Improve examples content (1582f8ec)
- api: Add
useRequestHeaderscomposable example (#8833) - Add entry for
extendPages(#8860) - api: Add
refreshNuxtDatautil examples (#8845) - Get event before running async function (#8861)
- api: Add
useHydrationcomposable (#8768) - Add
queryoption with example foruseFetch(#8719) - Add initial documentation for router composables (#8895)
- Add tls option to redis example (#8900)
- Fix syntax errors in server storage example (#8906)
- Fix typo (#8970)
- api: Add spaces to avoid breaking mobile layout (#8967)
- Typo in
available(#8966) - Add a bit more detail in the
definePageMetawarning to specify it needs to be in a page (#8923) - Match the open graph protocol markup (#8959)
- Fix typos (#8976)
❤️ Contributors
- Anthony Fu anthonyfu117@hotmail.com
- Daniel Roe daniel@roe.dev
- Pooya Parsa (@pi0)
- Harlan Wilton (@harlan-zw)
- Mehdi HosseinZade (@xtoolkit)
- Silvesterwali
- Israel Ortuño ai.ortuno@gmail.com
- Kevin Olson (@acidjazz)
- Julien Huang
- Okoro Redemption (@therealokoro)
- Clément Ollivier (@clemcode)
- Cedric Wetzel (@cedWetzel)
- Percy Ma (@kecrily)
- Ali Soueidan
- Toby Faux
- Stefan stefan@standa.de
- Krutie Patel krutie.patel@gmail.com
- Horu
- Cue
- Alexander Lichter (@manniL)
- Sébastien Chopin (@Atinux)
- Iljs Путлер Капут ilja@kotir.space
- Maxim Morev (@MorevM)
- Agénor Debriat (@agenordebriat)
- Cx33 (@JiatLn)