0.11.9
New
- Observed objects now also have the
$setmethod.obj.$set(key, val)is the same asobj[key] = val, except that it calls$addfirst if the property doesn't exist. v-eventsnow also accept a single expression statement.v-transitionnow supports dynamic syntax, e.g.v-transition="{{transitionToUse}}"- Partials now support filters. e.g.
{{> myPartial | transform}}. The filter function will get the partial string as the first argument. - Inline expressions now support more globals in addition to
MathandDate, including:isNaNisFiniteparseIntparseFloatdecodeURI&decodeURIComponentencodeURI&encodeURIComponent
Internals
The component transclusion logic has received some major refactoring, improving the overall correctness and code quality. Transcluded content from the parent are now bound to the correct context and remain reactive through compilation/teardowns in v-if and partials. The refactor should also result in better performance for the case where v-repeat and v-component are used together.
Fixed
- #801 detached hook not firing for transcluded components inside
v-if - #802
vm.$setnot triggering updates in repeated child instances - #804 transcluded content inside
v-ifare not persistent - #806 watcher accidentally clearing watcherList on teardown
- #776 & #813 v-with setter error when bound to literal value
- #818 skip css transitions if page is not visible