From: Evan You Date: Fri, 1 Dec 2023 03:32:05 +0000 (+0800) Subject: chore: remove deprecated AppConfig.unwrapInjectedRef option X-Git-Tag: v3.4.0-alpha.4~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7f00ec2d97fc5321fa0755eebada6c99e8b1d77a;p=thirdparty%2Fvuejs%2Fcore.git chore: remove deprecated AppConfig.unwrapInjectedRef option --- diff --git a/packages/runtime-core/src/apiCreateApp.ts b/packages/runtime-core/src/apiCreateApp.ts index 8e58e69378..7c0a15b2e9 100644 --- a/packages/runtime-core/src/apiCreateApp.ts +++ b/packages/runtime-core/src/apiCreateApp.ts @@ -110,13 +110,6 @@ export interface AppConfig { * @deprecated use config.compilerOptions.isCustomElement */ isCustomElement?: (tag: string) => boolean - - // TODO remove in 3.4 - /** - * Temporary config for opt-in to unwrap injected refs. - * @deprecated this no longer has effect. 3.3 always unwraps injected refs. - */ - unwrapInjectedRef?: boolean } export interface AppContext { @@ -212,22 +205,6 @@ export function createAppAPI( } const context = createAppContext() - - // TODO remove in 3.4 - if (__DEV__) { - Object.defineProperty(context.config, 'unwrapInjectedRef', { - get() { - return true - }, - set() { - warn( - `app.config.unwrapInjectedRef has been deprecated. ` + - `3.3 now always unwraps injected refs in Options API.` - ) - } - }) - } - const installedPlugins = new WeakSet() let isMounted = false