From 297d9140f54861b27be9136ed7dd221820732898 Mon Sep 17 00:00:00 2001 From: Julien Huang Date: Thu, 23 Jan 2025 23:06:51 +0100 Subject: [PATCH] chore: change comment to v5 --- packages/kit/src/context.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/kit/src/context.ts b/packages/kit/src/context.ts index 804104d27e..e0ca169ca0 100644 --- a/packages/kit/src/context.ts +++ b/packages/kit/src/context.ts @@ -24,7 +24,7 @@ export function useNuxt (): Nuxt { if (!instance) { const fallbackInstance = nuxtCtx.tryUse() if (fallbackInstance) { - logger.warn('Using fallback global Nuxt instance. You may be using a @nuxt/kit composable outside of a Nuxt context, this behavior is deprecated and will be removed in v4.') + logger.warn('Using fallback global Nuxt instance. You may be using a @nuxt/kit composable outside of a Nuxt context, this behavior is deprecated and will be removed in v5.') return fallbackInstance } @@ -48,7 +48,7 @@ export function useNuxt (): Nuxt { export function tryUseNuxt (): Nuxt | null { const nuxt = getNuxtCtx().tryUse() if (!nuxt) { - logger.warn('Using fallback global Nuxt instance. You may be using a @nuxt/kit composable outside of a Nuxt context, this behavior is deprecated and will be removed in v4.') + logger.warn('Using fallback global Nuxt instance. You may be using a @nuxt/kit composable outside of a Nuxt context, this behavior is deprecated and will be removed in v5.') return nuxtCtx.tryUse() } return nuxt