Vue.js: 1.0.0-beta.3 Release

Release date:
October 2, 2015
Previous version:
1.0.0-beta.2 (released October 10, 2015)
Magnitude:
699 Diff Delta
Contributors:
2 total committers
Data confidence:
Commits:

Top Contributors in 1.0.0-beta.3

yyx990803
wprater

Directory Browser for 1.0.0-beta.3

We haven't yet finished calculating and confirming the files and directories changed in this release. Please check back soon.

Release Notes Published

Upgrade Note: If you are upgrading to this release from 0.12.x, install 1.0.0-alpha.7 first, which has full 0.12 compatibility and appropriate deprecation warnings that can help you identify deprecations that need to be fixed.

New

  • v-model: multiple checkbox input can now be bound to the same v-model value (must be an Array):
  <input type="checkbox" value="Jack" v-model="checkedNames">
  <input type="checkbox" value="John" v-model="checkedNames">
  <input type="checkbox" value="Mike" v-model="checkedNames">

With checkedNames' initial value being an Array, the checked boxes' values will be pushed into the Array, while unchecked ones will be removed from it. For example, if we check the first two boxes, checkedNames will have the value ["Jack", "John"]. Of course, you can also dynamically bind the value with v-bind. - v-on: added two modifiers, .stop and .prevent which automatically calls event.stopPropagation() and event.preventDefault() for you:

  <!-- event won't propagate -->
  <a v-on:click.stop="doThis"></a>

  <!-- this will no longer reload the page! -->
  <form v-on:submit.prevent="onSubmit"></form>

Changed

  • vm.$dispatch: now also triggers the event on self.
  • Array.prototype.$remove: now always treats the argument as the item to search for. (Previously it treats the argument as an index if the argument is a number).

Fixed

  • Improved attribute interpolation validity check by including a11y and a more complete list of global attributes.
  • #1363 partial: dynamic partial resolved in wrong scope when inside v-for
  • #1370 observer: v-for alias not reactive when replaced
  • #1378 props: error parsing path for two-way props with dynamic paths