Packages

preact

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

Your version

4.0.0

major23 Feb 2016Where it was published

4.8.0 is the newest release of 4.x.

In short

2 breaking2 new5 changed

  • Breaking

    Possibly Breaking Change: cache rendered DOM with components when recycling

  • Breaking

    Possibly Breaking Change: don't wipe recycled DOM nodes, simply diff when re-used

Release note

  • Add support for refs!

  • Add support for defaultProps (static property on Components)

  • Breaking

    Possibly Breaking Change: cache rendered DOM with components when recycling

  • Breaking

    Possibly Breaking Change: don't wipe recycled DOM nodes, simply diff when re-used

  • Use setImmediate() to improve setState() performance where available

  • Skip empty values when serializing style objects

  • Coerce falsey className and style values to an empty string to avoid class="null" and style="null"

  • Rename missing component insert from <x-undefined-element> to <undefined>

  • Use a Symbol for storing the prop cache where available

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.