Skip to content

0.12.0: Polymorphic binding, SVG/AutoML support, readonly properties, performance optimizations, etc.

Compare
Choose a tag to compare
@Tao-VanJS Tao-VanJS released this 08 Jun 23:59
· 910 commits to main since this release
dfd10d0
  • 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 create SVG, MathML or other HTML elements with namespaceURI.
  • 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 with for ... of loops for better performance. Also disable the terser optimization for wrap_func_args as the optimization is obsolete in newer browser versions.

See the release announcement: #53