preact
11.2.0 · 6 Nov 2026MIT63.2M / weekRepositoryHomepagenpmAtom feed
11.2.0 is the newest release of 11.x.
Summary· from the note as AI read it
Migration neededRead before upgrading: 3 changes to make.
Before you upgrade
- Stricter input/select prop types may fail existing typechecksTo check
- Stricter accessible attribute types now default; recheck TypeScript typecheck of JSX props
- createRef no longer defaults to any; add explicit type parameters and handle null
New
- Reduce core diff bundle size
- Trim core scheduling and DOM bookkeeping
- Reduce core bundle size
In short
3 breaking3 faster5 fixed1 internal
- BreakingTo check
Improve accessibility discriminated unions for dynamic input and select props
- Breaking
Make accessible element attribute types the default
- Breaking
Correct
createRefnullability and remove its defaultanytype
Release note
Fixes
Keep queued components updating and finish
act()cleanup after an uncaught render error (#5265, thanks @JoviDeCroock)Correct the browser ESM entry point for
preact/compat/server(#5304, thanks @rschristian)Retain deferred hydration ranges through suspension, resumption, and unmounting (#5315, thanks @JoviDeCroock)
Leave non-plain style objects untouched in compat, preserving string-valued signal styles (#5318, thanks @JoviDeCroock)
Prevent duplicate DOM after an uncaught render error (#5328, thanks @brevin-aq and @JoviDeCroock)
Types
Improve accessibility discriminated unions for dynamic input and select props (#5311, thanks @rschristian)
Make accessible element attribute types the default (#5312, thanks @rschristian)
Correct
createRefnullability and remove its defaultanytype (#5326, thanks @rschristian)
Performance
Reduce core diff bundle size (#5316, thanks @JoviDeCroock)
Trim core scheduling and DOM bookkeeping (#5317, thanks @JoviDeCroock)
Reduce core bundle size (#5319, 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.