Skip to content

6.2.0

Compare
Choose a tag to compare
@developit developit released this 03 Oct 03:58
· 5011 commits to main since this release

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)