Vue.js, the progressive framework for interactive design for building user interfaces has reached to a 2.0 release. The framework has got an update in the form of renewed rendering layer for better performance and it is all set to step into the mobile territory.
The latest release has been written using a lightweight virtual DOM implementation with forking done from snabbdom library. The 2.0 update has server-side rendering, and for fast rendering, it supports streaming and component-level caching. Some of the libraries and tools including vue-router, vue-loader, and vueify have been updated in order to support version 2.0. For state management, vue core, vue-router and vuex 2.0 have TypeScript typings shifted to npm packages.
Evan You , the principle developer of Vue has mentioned many important improvements in the latest version. In particular, vue-router and vuex have received some important improvements for their 2.0 version.
- Multiple named support
- Improved navigation with the component
- Simplified navigation hooks API
- Customizable scroll behavior control
- Simplified in component usage
- Better code organization with improved modules API
- Composable async actions
Migrating from V 1.0
Evan You later said, "The new rendering layer provides significant performance improvements compared to v1 and makes Vue 2.0 one of the fastest frameworks out there."
Shifting to version 2.0 is a no-brainer question but the people still using version 1.0 should know how to migrate to the version 2.0. The Vue team is now working on a very detailed migration guide along with CLI migration helper to ensure proper migration from V 1.0 to V 2.0.