Compare Vue.js versions and see exactly what changes, what requires action, and what you can start using.
→
3Changes
0Breaking
0Actions
1Features
1Migration tools
New Features
onServerPrefetch added to the Composition API
featurelow impact
Vue 3.1 adds onServerPrefetch(), allowing Composition API components to register asynchronous work that should be resolved during server-side rendering.
Vue 3.1 introduced the @vue/compat migration build, which provides Vue 2 compatible behavior with runtime warnings for APIs and behaviors that need to be migrated.
Migration
Projects migrating from Vue 2 can temporarily alias vue to @vue/compat and use compatibility warnings to migrate incrementally. The compatibility build is intended as a migration aid and should be removed after migration is complete.