Packages

preact

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

Your version

7.2.0

23 Jan 2017Where it was published

7.2.1 is the newest release of 7.x.

In short

3 new7 fixed

Release note

Preact 7.2.0 is now available as a regular release!

npm install --save preact

Bugs Squashed

  • Fix IE issues from 7.1 and update test cases (huge thanks to @mkxml for the hard work on this 🙇)

  • Fix TextNode duplication in IE (#430, thanks also to @mkxml)

  • Fix unnececssary diff when swapping from dangerouslySetInnerHTML to children (thanks @harish2704)

  • Fix issue in 7.x with <select> sometimes not applying value prop

  • Don't stringify true children, instead skip them (#468, thanks @jxodwyer)

  • Fix issue where unmount could be skipped on a top-level component (#493, discovered

  • (DevTools Integration) Fix multiple root element issue

New Features

  • Use a shared empty Array for props.children when there are no children. Fixes simple shallow equality-based shouldComponentUpdate for leaf nodes 🎉

  • Remove instanceof SVGElement check in favor of duck typing. Fixes JSDOM compatibility and improves diff performance (#423, thanks @nhunzaker)

  • Better TypeScript Definitions: Component lifecycle methods, setState callback, etc

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.