preact
11.2.0 · 6 Nov 2026MIT63.1M / weekRepositoryHomepagenpmAtom feed
4.8.0 is the newest release of 4.x.
In short
2 breaking2 new5 changed
- Breaking
Possibly Breaking Change: cache rendered DOM with components when recycling
- Breaking
Possibly Breaking Change: don't wipe recycled DOM nodes, simply diff when re-used
Release note
Add support for
refs!Add support for
defaultProps(static property on Components)- Breaking
Possibly Breaking Change: cache rendered DOM with components when recycling
- Breaking
Possibly Breaking Change: don't wipe recycled DOM nodes, simply diff when re-used
Use
setImmediate()to improvesetState()performance where availableSkip empty values when serializing
styleobjectsCoerce falsey
classNameandstylevalues to an empty string to avoidclass="null"andstyle="null"Rename missing component insert from
<x-undefined-element>to<undefined>Use a
Symbolfor storing the prop cache where available
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.