github preactjs/preact 7.2.0

latest releases: 10.21.0, 10.20.2, 10.20.1...
7 years ago

⚛️ 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 (#446)
  • 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 by @insin)
  • (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

Don't miss a new preact release

NewReleases is sending notifications on new releases.