Packages

preact

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

Your version

8.1.0

9 Apr 2017Where it was published

8.5.3 is the newest release of 8.x.

In short

1 removed3 changed

  • Removed

    Remove object check before setting attributes (fixes custom toString, #401 - thanks @NekR!)

Release note

As of 8.1.0, we're officially out of beta! If you were waiting to upgrade to Preact 8, now's the time.

💁 8.x included a few important backwards-incompatible changes, so we've put together a 8.0 migration guide to help. The guide includes "polyfills" you can use to restore 7.x functionality so your migration goes smoothly.

If you have any issues upgrading, including anything caused by this release, drop us a line!

This release resolves a few issues people have had when upgrading.

  • Removed

    Remove object check before setting attributes (fixes custom toString, #401 - thanks @NekR!)

  • Cast boolean children to null for component props (fixes rc-animate, #629 - thanks @hassanbazzi!)

  • Call componentDidMount on children before componentDidUpdate on parent (#440, #506 - thanks @robertknight!)

  • Revert 8.0.0 behavior of throwing when encountering undefined components

    • preact/debug will be released shortly and does a much better job reporting stack traces!

🌈 Also worth noting, the linkstate module is now 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.