Skip to content

0.11.9

Compare
Choose a tag to compare
@yyx990803 yyx990803 released this 06 May 21:19
· 3593 commits to main since this release

New

  • Observed objects now also have the $set method. obj.$set(key, val) is the same as obj[key] = val, except that it calls $add first if the property doesn't exist.
  • v-events now also accept a single expression statement.
  • v-transition now 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 Math and Date, including:
    • isNaN
    • isFinite
    • parseInt
    • parseFloat
    • decodeURI & decodeURIComponent
    • encodeURI & 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.$set not triggering updates in repeated child instances
  • #804 transcluded content inside v-if are 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