Skip to content

7.0.0

Compare
Choose a tag to compare
@jorgebucaran jorgebucaran released this 26 Jul 16:09
7.0.0
9e28c03
  • Simplify patch usage (read the quickstart for details).
    • New signature: patch(dom, vdom) (no need to keep track of the old DOM anymore).
    • Revert to replacing/recycling the DOM node with the rendered VDOM.
    • Remove recycle function as the behavior is now built-in.
  • Remove lifecycle events (see #167 and jorgebucaran/hyperapp#717 for alternatives and discussion).
  • Remove xlink:* support as SVG 2 now works in Safari (mostly).
  • Remove built-in style attribute-as-object support; use a string instead. If what you have is an object, build the style string yourself:
    const styleToString = style =>
      Object.keys(style).reduce(
        (str, key) =>
          `${str}${key.replace(/[A-Z]/g, "-$&").toLowerCase()}:${style[key]};`,
        ""
      )