tl;dr: This release allows our devtools extension to inspect hooks. Apart from that it includes the usual round of bug fixes.
We have a nice little present for you and that is hooks are now fully supported in Preact Devtools 0.5.0 🎉 The extension is currently awaiting approval in browsers stores and your browser will automatically update to it in the following days.
Both @andrewiggins and @JoviDeCroock went full on bug hunting mode and got some neat fixes in! We also saw an awesome contribution from @davidje13 who found an error in our types for memo
👍
But the true star from the show is without a doubt that we finally have updated our typings to bring back the marquee
element. @developit himself took the honors and made sure that developers can continue to use this element in their demo applications.
Bug Fixes
- Add support for hooks inspection via devtools (#2480, thanks @marvinhagemeister)
- Make warn effectively warn instead of throwing (#2477, thanks @JoviDeCroock)
- Support node13 (#2451, thanks @JoviDeCroock)
- Use
setProperty
to set "value" and "checked" properties (#2472, thanks @andrewiggins) - Normalize props on
cloneElement
(#2469, thanks @JoviDeCroock) - Set value/checked on custom-elements (#2465, thanks @JoviDeCroock)
- Add support for context
displayName
(#2454, thanks @marvinhagemeister)
Typings
- Add
<marquee>
typings (#2466, thanks @developit) - Account for
defaultProps
when wrapping components withmemo
(#2461, thanks @davidje13)
Maintenance
- Run benchmarks with v8, master, and local builds (#2475, thanks @andrewiggins)
- Reduce number of builds in actions (#2476, thanks @andrewiggins)
- Add npm prepare script (#2473, thanks @andrewiggins)
- Upgrade devtools adapter (#2471, thanks @marvinhagemeister)
- Tachometer benchmarks (#2462, thanks @andrewiggins)