FRONTEND
Nuxt v4.4.0
RESUMEN
> 4.4.0/4.4.2 is the next minor release (v4.4.2 was published with no changes due to a publishing failure) 👀 Highlights 🏭 `createUseFetch` and `createUseAsyncData` You can now create custom instances of `useFetch` and `useAsyncData` with your own default options ((https
Descripción Detallada
> 4.4.0/4.4.2 is the next minor release (v4.4.2 was published with no changes due to a publishing failure) 👀 Highlights 🏭 `createUseFetch` and `createUseAsyncData` You can now create custom instances of `useFetch` and `useAsyncData` with your own default options . ```ts // composables/api.ts // Simple defaults export const useClientFetch = createUseFetch({ server: false, }) // Dynamic defaults with full control over merging export const useApiFetch = createUseFetch((currentOptions) => { const runtimeConfig = useRuntimeConfig() return { ...currentOptions, baseURL: currentOptions.baseURL ?? runtimeConfig.public.baseApiUrl, } }) ``` Then use them exactly like `useFetch` – they're fully typed and support all the same options: ```vue // Uses your baseURL from runtimeConfig automatically const { data: users } = await useApiFetch('/users') ``` When you pass a plain object, your usage options automatically override the defaults. When you pass a function, you get full control over how options are merged – which means you can compose interceptors, headers, and other complex options however you need. Under the hood, this is powered by a new Nuxt ad-hoc module that scans your composables directory and automatically registers your custom instances for key injection – so they work seamlessly with SS
Nuxt v4.4.0 permite crear instancias personalizadas de useFetch y useAsyncData.
- Ahora puedes crear instancias personalizadas de useFetch y useAsyncData con opciones predeterminadas.
- Las nuevas funciones permiten un control total sobre la fusión de opciones.
A quién le importa
Todos los que usan Nuxt y necesitan personalizar fetch y async data.
Generado por IA · puede contener errores
Releases Relacionados
FRONTEND
Nuxt v4.4.3
> 4.4.3 is the next patch release. v4.4.4 was published with no changes due to an issue running the release script for v4.4.3. ## 👉 Changelog [compare changes](https://github.com/nuxt/nuxt/compare/v4.4.2...v4.4.3) ### 🔥 Performance - **nitro:** Directly import nuxt package version ([#34567
FRONTEND
Nuxt v3.21.3
> 3.21.3 is the next patch release. v3.21.4 was published with no changes due to an issue running the release script for v3.21.3. ## 👉 Changelog [compare changes](https://github.com/nuxt/nuxt/compare/v3.21.2...v3.21.3) ### 🔥 Performance - **nuxt:** Batch-resolve typescript hoist paths with