preact
11.2.0 · 6 Nov 2026MIT63.2M / weekRepositoryHomepagenpmAtom feed
7.2.1 is the newest release of 7.x.
In short
3 new7 fixed
Release note
Preact 7.2.0 is now available as a regular release!
npm install --save preact
Bugs Squashed
Fix IE issues from 7.1 and update test cases (huge thanks to @mkxml for the hard work on this 🙇)
Fix TextNode duplication in IE (#430, thanks also to @mkxml)
Fix unnececssary diff when swapping from
dangerouslySetInnerHTMLtochildren(thanks @harish2704)Fix issue in 7.x with
<select>sometimes not applyingvaluepropDon't stringify
truechildren, instead skip them (#468, thanks @jxodwyer)Fix issue where unmount could be skipped on a top-level component (#493, discovered
(DevTools Integration) Fix multiple root element issue
New Features
Use a shared empty Array for
props.childrenwhen there are no children. Fixes simple shallow equality-basedshouldComponentUpdatefor leaf nodes 🎉Remove
instanceof SVGElementcheck in favor of duck typing. Fixes JSDOM compatibility and improves diff performance (#423, thanks @nhunzaker)Better TypeScript Definitions: Component lifecycle methods, setState callback, etc
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.