preact
11.2.0 · 6 Nov 2026MIT63.2M / weekRepositoryHomepagenpmAtom feed
10.29.8 is the newest release of 10.x.
In short
1 new5 fixed2 changed
Release note
Improved child diffing
Port skew based child diffing (#4010, thanks @JoviDeCroock)
We have noticed a few scenario's where children would get unmounted and remounted eagerly due to some offset bugs in our child-diffing, with skew-based diffing we plan to address those. This is already part of v11 and has been introduced there
Defer setting refs
Setting ref to null after updating it with new element (#4054, thanks @JoviDeCroock)
We used to set refs as part of the children, synchronously this caused several issues when a ref would go down a level, i.e. the following example
const App = () => {
return phase === 1 ? <div ref={x}><p>Foo</p></div> : <div><div ref={x}><p>Foo</p></div>
}In this example when we go from phase 1 to phase 2 we would mount a new ref but only after we bubble back up diffing clean up the outer ref making the ref reset to null.
Fixes
Incorrect actDepth calculation in test-utils (#4051, thanks @ottomao)
Server compat should have a default export (#4047, thanks @MikaFima)
Include HTML above render root for DOM validation (#4043, thanks @marvinhagemeister)
Types
Improve VNode typings when generic is passed in (#4050, thanks @JoviDeCroock)
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.