v2.0.0-alpha.7
Pre-release
Pre-release
·
2835 commits
to main
since this release
Breaking Changes
-
The
initlifecycle 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
-
$createElementcan 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.getCacheKeyoption. -
Vue.config.errorHandlernow also captures errors thrown in user watcher callbacks.