preact
11.2.0 · 6 Nov 2026MIT63.2M / weekRepositoryHomepagenpmAtom feed
10.29.8 is the newest release of 10.x.
In short
3 new12 fixed16 internal
Release note
tl;dr: This release contains a good number of bug fixes and we encourage all users to upgrade.
A little bit of time has passed since our last release and we're excited to ship another one, making Preact even more robust! The fixes nearly touch all packages and further improves compatibility with third-party libraries :tada:
If you glance at the contributor names, you'll notice a few new ones there. It's safe to say that we were amazed and super ecstatic by the amount of new first time contributors to Preact! :raised_hands:
Features
Include support for customised
built-inelements (#2266, thanks @defx)Upgrade devtools adapter to support Profiler and bring back
preact/devtoolsimport (#2246, thanks @marvinhagemeister)
Bug Fixes
Suspended components should rerender through
shouldComponentUpdate(#2125, thanks @andrewiggins)Reduce reads of
dom.nextSibling(#2294, thanks @andrewiggins)Preserve state when using placeholders (#2295, thanks @andrewiggins)
Fix
Children.mapnot flattening result (#2287, thanks @marvinhagemeister)Fix error when setting
sizeto an invalid value (#2285, thanks @marvinhagemeister)Fix wrong SVG attribute for
clipPathUnits(#2251, thanks @friebe)Fix both
classandclassNamebeing enumerable (#2280, thanks @marvinhagemeister)Fix
classNamepatch not applied to props (#2279, thanks @marvinhagemeister)Bailout when hook throws an error (#2193, thanks @JoviDeCroock)
Avoid removing existing dom nodes on subsequent
replaceNodecalls (#2274, thanks @JoviDeCroock)Fix
shouldComponentUpdategetting called onsetStateafterforceUpdate(#2258, thanks @laino)Remove
process.env.NODE_ENVcheck frompreact/debugwhich broke browsers (#2257, thanks @marvinhagemeister)
Types
Allow
nullas an initial value foruseRef(#2281, thanks @armujahid)
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.