From ecbcb62ec591796669b3d52467bbec0be9d9fb32 Mon Sep 17 00:00:00 2001 From: Markus Oberlehner Date: Tue, 5 Nov 2024 20:02:43 +0900 Subject: [PATCH 1/3] docs: fix tip formatting (#29792) --- docs/1.getting-started/6.data-fetching.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/1.getting-started/6.data-fetching.md b/docs/1.getting-started/6.data-fetching.md index 7dff19f2c8..8a369eaa0c 100644 --- a/docs/1.getting-started/6.data-fetching.md +++ b/docs/1.getting-started/6.data-fetching.md @@ -117,7 +117,7 @@ Be very careful before proxying headers to an external API and just include head ::tip You can also use [`useRequestFetch`](/docs/api/composables/use-request-fetch) to proxy headers to the call automatically. -::: +:: ## `useFetch` From e6a9b3cc78284c663d9c7fc55e6b90843cd87ee7 Mon Sep 17 00:00:00 2001 From: Erik Lilja Date: Tue, 5 Nov 2024 12:14:30 +0100 Subject: [PATCH 2/3] docs: add link to h3 blogpost (#29794) --- docs/2.guide/2.directory-structure/1.server.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/2.guide/2.directory-structure/1.server.md b/docs/2.guide/2.directory-structure/1.server.md index cbf68709d9..bb4dc8c8a2 100644 --- a/docs/2.guide/2.directory-structure/1.server.md +++ b/docs/2.guide/2.directory-structure/1.server.md @@ -158,7 +158,7 @@ export default defineEventHandler((event) => { }) ``` -::tip +::tip{to="https://h3.unjs.io/examples/validate-data#validate-params"} Alternatively, use `getValidatedRouterParams` with a schema validator such as Zod for runtime and type safety. :: From 7177e81442559fee574e9460b4d76a780bb98211 Mon Sep 17 00:00:00 2001 From: Aurion SARL Date: Tue, 5 Nov 2024 12:27:06 +0100 Subject: [PATCH 3/3] =?UTF-8?q?fix(kit):=20fall=20back=20to=20meta=C2=A0ve?= =?UTF-8?q?rsion=20if=20there's=20no=20`module.json`=20(#29793)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/kit/src/module/compatibility.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/kit/src/module/compatibility.ts b/packages/kit/src/module/compatibility.ts index 5bccbf8654..aa5dadcd96 100644 --- a/packages/kit/src/module/compatibility.ts +++ b/packages/kit/src/module/compatibility.ts @@ -58,8 +58,8 @@ export async function getNuxtModuleVersion (module: string | NuxtModule, nuxt: N } // it's possible that the module will be installed, it just hasn't been done yet, preemptively load the instance if (hasNuxtModule(moduleMeta.name)) { - const { buildTimeModuleMeta } = await loadNuxtModuleInstance(moduleMeta.name, nuxt) - return buildTimeModuleMeta.version || false + const { nuxtModule, buildTimeModuleMeta } = await loadNuxtModuleInstance(moduleMeta.name, nuxt) + return buildTimeModuleMeta.version || await nuxtModule.getMeta?.().then(r => r.version) || false } return false }