0.12.0: Polymorphic binding, SVG/AutoML support, readonly properties, performance optimizations, etc.
- Polymorphic binding: State-derived properties and
van.bind
supports non-state dependencies, allowing reusable component to accept both state and non-state properties: see https://vanjs.org/tutorial#polymorphism-between-state-and-non-state-dependencies. - SVG/MathML support: Add a new function
van.tagsNS
, which allows us to createSVG
,MathML
or other HTML elements withnamespaceURI
. - Support readonly properties while creating HTML elements: You can specify readonly properties while creating HTML elements with tag functions. For readonly properties, values will be set by
setAttribute
. - Performance optimizations: Replace
forEach
call withfor ... of
loops for better performance. Also disable theterser
optimization forwrap_func_args
as the optimization is obsolete in newer browser versions.
See the release announcement: #53