Packages

preact

11.2.0 · 6 Nov 2026MIT63.2M / weekRepositoryHomepagenpmAtom feed

Your version

11.0.2

23 Oct 2026Where it was published

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

  • Breaking

    Improve accessibility discriminated unions for dynamic input and select props

    To check
  • Breaking

    Make accessible element attribute types the default

  • Breaking

    Correct createRef nullability and remove its default any type

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 createRef nullability and remove its default any type (#5326, thanks @rschristian)

Performance

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.