From 5ce798eed6476127340d6bb945d8cb6925f4403c Mon Sep 17 00:00:00 2001 From: Bobbie Goede Date: Sat, 9 Mar 2024 11:39:14 +0100 Subject: [PATCH] fix: change deprecation warning version to v9 (#2832) --- docs/content/docs/2.guide/8.lang-switcher.md | 2 +- src/module.ts | 4 ++-- src/transform/meta-deprecation.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/content/docs/2.guide/8.lang-switcher.md b/docs/content/docs/2.guide/8.lang-switcher.md index 8b17db41a..4b008f23e 100644 --- a/docs/content/docs/2.guide/8.lang-switcher.md +++ b/docs/content/docs/2.guide/8.lang-switcher.md @@ -238,7 +238,7 @@ route.meta.pageTransition.onBeforeEnter = async () => { ## Dynamic route parameters using `definePageMeta` (Deprecated) ::callout{type="warning"} -Dynamic route params using `nuxtI18n` on `definePageMeta` has been deprecated and will be removed in `v8.1`, use the composable [`useSetI18nParams`](/docs/api#useseti18nparams) instead. +Dynamic route params using `nuxtI18n` on `definePageMeta` has been deprecated and will be removed in `v9`, use the composable [`useSetI18nParams`](/docs/api#useseti18nparams) instead. :: Dynamic params can be configured using `definePageMeta`. These will be merged with route params when generating lang switch routes with `switchLocalePath()`. diff --git a/src/module.ts b/src/module.ts index 276241a20..2c7977ac9 100644 --- a/src/module.ts +++ b/src/module.ts @@ -123,7 +123,7 @@ export default defineNuxtModule({ if (options.dynamicRouteParams) { logger.warn( - 'The `dynamicRouteParams` options is deprecated and will be removed in `v8.1`, use the `useSetI18nParams` composable instead.' + 'The `dynamicRouteParams` options is deprecated and will be removed in `v9`, use the `useSetI18nParams` composable instead.' ) } @@ -246,7 +246,7 @@ export default defineNuxtModule({ /** * `PageMeta` augmentation to add `nuxtI18n` property - * TODO: Remove in v8.1, `useSetI18nParams` should be used instead + * TODO: Remove in v9, `useSetI18nParams` should be used instead */ if (!!options.dynamicRouteParams) { addTypeTemplate({ diff --git a/src/transform/meta-deprecation.ts b/src/transform/meta-deprecation.ts index fcffcf9e0..8d8a16493 100644 --- a/src/transform/meta-deprecation.ts +++ b/src/transform/meta-deprecation.ts @@ -54,7 +54,7 @@ export const MetaDeprecationPlugin = createUnplugin((options: MetaDeprecationPlu if (match?.[0]) { // prettier-ignore logger.warn( - `Setting \`nuxtI18n\` on \`definePageMeta\` is deprecated and will be removed in \`v8.1\`, use the \`useSetI18nParams\` composable instead.\nUsage found in ${id.split('?')[0]}` + `Setting \`nuxtI18n\` on \`definePageMeta\` is deprecated and will be removed in \`v9\`, use the \`useSetI18nParams\` composable instead.\nUsage found in ${id.split('?')[0]}` ) }