]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: remove deprecated AppConfig.unwrapInjectedRef option
authorEvan You <yyx990803@gmail.com>
Fri, 1 Dec 2023 03:32:05 +0000 (11:32 +0800)
committerEvan You <yyx990803@gmail.com>
Fri, 1 Dec 2023 03:32:34 +0000 (11:32 +0800)
packages/runtime-core/src/apiCreateApp.ts

index 8e58e69378e0c522f833fed871a2bdc5e0238947..7c0a15b2e981d5d329ee6289f321e021b45eb3e3 100644 (file)
@@ -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<HostElement>(
     }
 
     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