npm vue-template-compiler 2.0.0-alpha.7

latest releases: 2.7.16, 2.7.16-beta.2, 2.7.16-beta.1...
7 years ago

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

Don't miss a new vue-template-compiler release

NewReleases is sending notifications on new releases.