preact
11.2.0 · 6 Nov 2026MIT63.2M / weekRepositoryHomepagenpmAtom feed
10.29.8 is the newest release of 10.x.
In short
1 removed2 new3 fixed4 changed11 internal
- Removed
Remove CSS custom property check from
IS_NON_DIMENSIONAL(#2046, thanks @jridgewell)
Release note
tl;dr: This release is a bug fix only release and all users are encouraged to update.
This week saw many cool improvements surrounding our TypeScript definitions. Thanks to an amazing contribution from @lukeshiru the event target is now correctly inferred for all native elements. This alone should remove many manually casted event arguments in your code :tada:
Together @JoviDeCroock and @cristianbote set their minds on fixing a few newly reported issues surrounding refs and the like. Personally, I'm pretty impressed how quickly they could identify and resolve the issues. Much respect to you two :+1:
As the year is coming to an end @andrewiggins did some house-cleaning and found various places where we could save even more bytes! I don't know how he does it and it's just amazing to witness so much pure talent!
Beside that, the changes mainly revolve around maintenance tasks. We've switched to prettier for automatic code formatting, lowering the barrier for new contributors even more. The formatting is automatically applied on each commit via a git-hook, and everything will be taken care of for you :100:
We also saw two exciting contributions from Googlers: @jridgewell found a very hard to spot unnecessary case in a regex we use to append px to certain CSS values and @jakearchibald found an html attribute we missed in our typings :tada:
Like in our past release we'd like to take a moment to thank everybody who contributed, not just code but also made the time to write bug reports. Thank you so much :+1:
Bug Fixes
Cleanup changing
refscorrectly (#2055, thanks @JoviDeCroock)Ensure
renderCallbacksare called whensCUbails out (#2081, thanks @JoviDeCroock)Handle the stale
refforforwardRef(#2075) (#2076, thanks @cristianbote)
Golf :golfing_woman
Simplify
hookscheduling logic (-17 B) (#2085, thanks @andrewiggins)Improve tree-shakeability (-13 B) (#2079, thanks @andrewiggins)
Simplify ternary expressions (-7 B) (#2049, thanks @andrewiggins)
- Removed
Remove CSS custom property check from
IS_NON_DIMENSIONAL(#2046, thanks @jridgewell)
TypeScript
Add types for
currentTargeton event handlers forIntrinsicElements(#2084, thanks @lukeshiru)Improve
reftypings forIntrinsicElements(#2070, thanks @lukeshiru)Add
ashtml attribute to TypeScript defs (#2068, thanks @jakearchibald)
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.