preact
11.2.0 · 6 Nov 2026MIT63.2M / weekRepositoryHomepagenpmAtom feed
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.jsandtypings.jsonto the NPM package.
Public Changes
Rename
Component._disableRenderingtoComponent._disableto 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 intopreact-compat. This allows preact to normalize class components that don't inherit from Component.
Bugfixes
Fix regression in
6.1.0where state changes incomponentDidUpdate()resulted in synchronous re-rendersFix issue where rendering an SVG element using the
classNameprop (alias) would incorrectly assignclassNameas an attribute. /cc @pl12133Fix serializing
classfor 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.