Skip to content

v2.0.0-alpha.7

Pre-release
Pre-release
Compare
Choose a tag to compare
@yyx990803 yyx990803 released this 28 Jun 02:53
· 2835 commits to main since this release

Breaking Changes

  • The init lifecycle hook has been renamed to beforeCreated.

  • 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.

Fixed

  • #3140 fix v-model .number conversion for non-number input
  • fix CSS animation initial frame flash
  • fix SSR client-side hydration on merged text nodes
  • #3155 fix v-once when used with v-for
  • #3157 fix id-resolved transition with appear: true