Packages

preact

11.2.0 · 6 Nov 2026MIT63.2M / weekRepositoryHomepagenpmAtom feed

Your version

6.2.0

3 Oct 2016Where it was published

6.4.0 is the newest release of 6.x.

In short

1 removed5 new3 fixed1 changed

  • Removed

    Removed undocumented support for getInitialState() on classful components.

Release note

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

    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)

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.