]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore(compat): change 'vnode-' to 'vue:' in event hooks warning (#7063)
authorskirtle <65301168+skirtles-code@users.noreply.github.com>
Wed, 9 Nov 2022 13:15:41 +0000 (13:15 +0000)
committerGitHub <noreply@github.com>
Wed, 9 Nov 2022 13:15:41 +0000 (08:15 -0500)
packages/runtime-core/src/compat/compatConfig.ts

index d27611e9eb43131525ffd34a0832875db112831f..88b58fdfab0b97b2a149cfdb13dc417b3a6ed045 100644 (file)
@@ -207,8 +207,8 @@ export const deprecationData: Record<DeprecationTypes, DeprecationData> = {
   [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`