Rename the beforeDestroy and destroyed Vue hooks

Proprietary

Vue 3 renamed the beforeDestroy lifecycle option to beforeUnmount and destroyed to unmounted. Renames them in an object literal that also has a Vue component option such as data, methods, computed, props, components, created or mounted, in a file that imports vue or in the object that a file exports by default; any other object is left as it is. A shorthand hook ({data, destroyed}) cannot be renamed in place and is marked.

org.openrewrite.nodejs.migrate.vue.RenameVueDestroyHooks
mod run . --recipe=org.openrewrite.nodejs.migrate.vue.RenameVueDestroyHooks

Install it once, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.