Breaking Changes
-
The
init
lifecycle hook has been renamed tobeforeCreated
. -
JavaScript transition hooks now receive the context Vue instance as the second argument:
Vue.transition('example', { onEnter (el, vm) { // ... } })
New
-
$createElement
can now omit the data argument if no data is needed. If the second argument is truthy and is not an Object, it will be treated as the children.render (h) { // before return h('div', null, 'hello') // after return h('div', 'hello') }
-
SSR: Now supports bundle renderer, which runs a pre-bundled app script in a fresh context for each render. This eliminates the need for structuring your application without global state just for the sake of server-side rendering.
-
SSR: Now supports component-level caching via
server.getCacheKey
option. -
Vue.config.errorHandler
now also captures errors thrown in user watcher callbacks.