From 9698f2fdd9832da2a452fb7557cf1ed4fc882f1f Mon Sep 17 00:00:00 2001 From: fkatsuhiro <113022468+fkatsuhiro@users.noreply.github.com> Date: Mon, 27 Jul 2026 01:44:52 +0900 Subject: [PATCH] fix: Deprecated `useAppConfig` in favour of `getAppConfig` (#2487) Co-authored-by: Gliches Co-authored-by: Aaron --- packages/wxt/src/utils/app-config.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/wxt/src/utils/app-config.ts b/packages/wxt/src/utils/app-config.ts index c8c0ad77..a520d0fd 100644 --- a/packages/wxt/src/utils/app-config.ts +++ b/packages/wxt/src/utils/app-config.ts @@ -15,8 +15,16 @@ export function getAppConfig(): WxtAppConfig { /** * Alias for {@link getAppConfig}. * + * @deprecated Use {@link getAppConfig} instead. Same function, different name. * @see https://wxt.dev/guide/essentials/config/runtime.html */ export function useAppConfig(): WxtAppConfig { + // After v1.0 this function will be removed, and migrate to use only `getAppConfig` instead. + if (import.meta.env.DEV) { + console.warn( + '[wxt] `useAppConfig` is deprecated. Please use `getAppConfig` instead.', + ); + } + return getAppConfig(); }