From: skirtle <65301168+skirtles-code@users.noreply.github.com> Date: Wed, 9 Nov 2022 13:15:41 +0000 (+0000) Subject: chore(compat): change 'vnode-' to 'vue:' in event hooks warning (#7063) X-Git-Tag: v3.2.44~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fccfb1821f805daa10e19153f3377d842a9b427d;p=thirdparty%2Fvuejs%2Fcore.git chore(compat): change 'vnode-' to 'vue:' in event hooks warning (#7063) --- diff --git a/packages/runtime-core/src/compat/compatConfig.ts b/packages/runtime-core/src/compat/compatConfig.ts index d27611e9eb..88b58fdfab 100644 --- a/packages/runtime-core/src/compat/compatConfig.ts +++ b/packages/runtime-core/src/compat/compatConfig.ts @@ -207,8 +207,8 @@ export const deprecationData: Record = { [DeprecationTypes.INSTANCE_EVENT_HOOKS]: { message: event => `"${event}" lifecycle events are no longer supported. From templates, ` + - `use the "vnode" prefix instead of "hook:". For example, @${event} ` + - `should be changed to @vnode-${event.slice(5)}. ` + + `use the "vue:" prefix instead of "hook:". For example, @${event} ` + + `should be changed to @vue:${event.slice(5)}. ` + `From JavaScript, use Composition API to dynamically register lifecycle ` + `hooks.`, link: `https://v3-migration.vuejs.org/breaking-changes/vnode-lifecycle-events.html`