github preactjs/preact 6.2.0

latest releases: 10.24.3, 10.24.2, 10.24.1...
8 years ago

Improvements

  • Support for infinitely nested children!
  • Massive performance boost for h() (the hyperscript/jsx processor/reviver).
  • Tons of little performance optimizations
  • Allow components to not inherit from Component without caring
  • Add aliases.js and typings.json to the NPM package.

Public Changes

  • Rename Component._disableRendering to Component._disable to save a few bytes
  • Removed undocumented support for getInitialState() on classful components.

This has never been part of the API but was left in core in order to support preact-compat's use. It is now being moved into preact-compat. This allows preact to normalize class components that don't inherit from Component.

Bugfixes

  • Fix regression in 6.1.0 where state changes in componentDidUpdate() resulted in synchronous re-renders
  • Fix issue where rendering an SVG element using the className prop (alias) would incorrectly assign className as an attribute. /cc @pl12133
  • Fix serializing class for SVG (test included) (#334)

Don't miss a new preact release

NewReleases is sending notifications on new releases.