preact v10.0.5 Release Notes

Release Date: 2019-11-10 // over 4 years ago
  • _ tl;dr: This release is a bug fix only release and all users are encouraged to update._

    ๐Ÿฑ This week saw many cool improvements surrounding our TypeScript definitions. Thanks to an amazing contribution from @lukeshiru the event target is now correctly inferred for all native elements. This alone should remove many manually casted event arguments in your code ๐ŸŽ‰

    ๐Ÿฑ Together @JoviDeCroock and @cristianbote set their minds on fixing a few newly reported issues surrounding refs and the like. Personally, I'm pretty impressed how quickly they could identify and resolve the issues. Much respect to you two ๐Ÿ‘

    As the year is coming to an end @andrewiggins did some house-cleaning and found various places where we could save even more bytes! I don't know how he does it and it's just amazing to witness so much pure talent!

    ๐Ÿšง Beside that, the changes mainly revolve around maintenance tasks. We've switched to prettier for automatic code formatting, lowering the barrier for new contributors even more. The formatting is automatically applied on each commit via a git-hook, and everything will be taken care of for you ๐Ÿ’ฏ

    ๐Ÿฑ We also saw two exciting contributions from Googlers: @jridgewell found a very hard to spot unnecessary case in a regex we use to append px to certain CSS values and @jakearchibald found an html attribute we missed in our typings ๐ŸŽ‰

    ๐Ÿš€ Like in our past release we'd like to take a moment to thank everybody who contributed, not just code but also made the time to write bug reports. Thank you so much ๐Ÿ‘

    ๐Ÿ› Bug Fixes

    ๐Ÿฑ Golf ๐ŸŒ๏ธโ€โ™€๏ธ

    TypeScript

    • โž• Add types for currentTarget on event handlers for IntrinsicElements (#2084, thanks @lukeshiru)
    • ๐Ÿ‘Œ Improve ref typings for IntrinsicElements (#2070, thanks @lukeshiru)
    • โž• Add as html attribute to TypeScript defs (#2068, thanks @jakearchibald)

    ๐Ÿšง Maintenance