diff --git a/packages/runtime-core/src/apiWatch.ts b/packages/runtime-core/src/apiWatch.ts index 665fb4ec4..7fbcc78f3 100644 --- a/packages/runtime-core/src/apiWatch.ts +++ b/packages/runtime-core/src/apiWatch.ts @@ -189,6 +189,14 @@ function doWatch( } } + // TODO remove in 3.5 + if (__DEV__ && deep !== void 0 && typeof deep === 'number') { + warn( + `watch() "deep" option with number value will be used as watch depth in future versions. ` + + `Please use a boolean instead to avoid potential breakage.`, + ) + } + if (__DEV__ && !cb) { if (immediate !== undefined) { warn(