preact
11.2.0 · 6 Nov 2026MIT63.2M / weekRepositoryHomepagenpmAtom feed
8.5.3 is the newest release of 8.x.
In short
10 new1 fixed
Release note
New Features!
🙌 We've added support for the new getDerivedStateFromProps() and getSnapshotBeforeUpdate() lifecycle hooks. (#1094 & #1112). A huge thank-you to @andrewiggins and @marvinhagemeister for their amazing work on this!
Improvements
We're shipping
.mjsnow! (#1165, thanks @mathiasbynens for the nudge)Fix an issue where
setState()could mutate state in-place (#1170, thanks @Mitranim for the fix and @dandv for digging into the Apollo issue!)spellcheck={false}is now set as an attribute (#1110, thanks @marvinhagemeister!)Some code golfing to offset the new lifecycle methods (#1122, thanks @andrewiggins, @marvinhagemeister)
A little perf/size tweak for render callbacks (#1113, thanks @valotas)
Someone found dead code in Preact! awesome. (#890, thanks @MrErHu & @clarkdo)
We've dropped IE9 and IE10 from our SauceLabs tests (thanks @mkxml!)
Note: Preact will continue to support these browsers (that is to say, continue to avoid relying on features they don't support), but recent updates to Mocha mean our tests don't run there. Special thanks to @mkxml, @andrewiggins, @k1r0s and @marvinhagemeister for working to improve the test suite in this release!
TypeScript Improvements!
Add support for specifying the types of a component's children (#1116, thanks @Alexendoo)
Add
on*Captureevent handler attributes and PointerEvents to the TS definitions (#1101 #1102, thanks @jakearchibald)Add
controlsListattribute for media elements (#1134, thanks @wayou)
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.