Skip to content

v2.0.0

Choose a tag to compare

@aduth aduth released this 19 Jul 01:39
· 27 commits to master since this release

Breaking Changes

  • The attributes positional argument must always be provided, even if null or undefined.
  • Drop support for Node v10.
  • There is no longer a default export. The createElement function is now a named argument, aliased as h.

New Features

  • Support for fragments via the Fragment export.
  • Add JSX runtime for use with Babel automatic JSX transform.

Enhancements

  • For alignment with similar libraries, children can be passed either as an attribute or as a third argument, or as variadic argument after attributes.
  • Include TypeScript type definitions.

Optimization

  • Shrink bundle size by around 17% in optimal scenarios (with tree-shaking)
  • Simplify append behavior