Skip to content

Latest commit

 

History

History
79 lines (46 loc) · 2.01 KB

CHANGELOG.md

File metadata and controls

79 lines (46 loc) · 2.01 KB

Unreleased

Optimization

  • Condense logic
    • Export h as aliased createElement named export (-7b)

v2.0.3 (2021-07-25)

Bug Fixes

  • Fix an issue where a boolean child (true or false) is rendered as text.

Optimization

  • Condense and simplify logic (original savings -20b, overall -10b with bug fix):
    • Component test (-10b)
    • Children test (-2b)
    • Fragment appending (-0b createElement, -5b Fragment)
    • Assign props value in initialization (-1b)
    • Simpler boolean comparison (-3b)
    • Use simple loop in append (-4b)

v2.0.2 (2021-07-19)

TypeScript

  • Fix TypeScript typings for createElement tag and children argument types.

v2.0.1 (2021-07-19)

Optimization

  • Condense and simplify logic for children normalization (-15b).

v2.0.0 (2021-07-18)

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

v1.1.0 (2017-06-04)

New Features

  • Compose reusable components are now suppported. When passed a function as the first argument, render behavior is deferred to this function; passed attributes including children, the function is expected to return an HTMLElement.

v1.0.2 (2017-02-24)

Optimization

  • Further optimize children normalization logic, saving 13kb minified / 2kb gzipped

v1.0.1 (2017-02-24)

Miscellaneous

  • Add repository details to npm package

v1.0.0 (2017-02-24)

  • Initial release