tl;dr: Another bug-fix only release. It's safe to upgrade and we encourage everybody to do so 👍
It's sunny today and I haven't been outside yet, so I'll make it quick: Those pesky ref TypeScript errors when used with a CSS-in-JS library should be no more! So if you're using styled-components
, emotion
, goober
or any other CSS-in-JS library, this update is for you! 💯
@robertknight found that false
values where not special cased for aria-*
attributes as they have a different way of treating boolean values compared to the DOM. Many boolean-like attributes like aria-checked
have three states:
true
element is checkedfalse
element is unchecked, but it's possible to check itundefined
(default) element can't be checked
As usual thank you so much for everyone who helped make Preact better by contributing code or reporting issues! You all rock 👍
Bug Fixes
- Add support for
false
value in aria-attributes (#2347, thanks @marvinhagemeister) - Remove array provided to callback in
React.Children.map
and.forEach
(#2326, thanks @mhmdanas) - Fix
React.Children.map/forEach
missing index (#2322, thanks @JoviDeCroock)
Typings
- Match
useErrorBoundary
type withcomponentDidCatch
(#2332, thanks @intrnl) - Fix incompatible
ref
typing with ReactElement (& popular react libraries) (#2099, thanks @xiel) - Make
useErrorBoundary
's callback param optional (#2320, thanks @intrnl)
Maintenance
- Fix failing
useImperativeHandle
tests (#2346, thanks @marvinhagemeister) - Create
ISSUE_TEMPLATE.md
(#2342, thanks @JoviDeCroock) - Node "exports" adjustments (#2327, thanks @guybedford)
- Add
package.json
topackage.exports
(#2319, thanks @MylesBorins)