0.12.1 is a minor release of VanJS.
In this release, we support null
and undefined
as the child node of tag functions and van.add
. null
or undefined
valued children will be simply ignored in tag functions and van.tag
. This feature is added as a result of feedback from multiple VanJS users as they mentioned the feature can make the user-side code easier in certain circumstances. This feature also makes VanJS's behavior consistent between static child node and child node with state bindings (where null
or undefined
means the removal of the node).
See the release announcement: #53 (comment)