tl;dr: This is a bug-fix only release and safe to upgrade 🎉
This release contains some amazing fixes by first time contributors! Thank you so much for everyone who filed issues or contributed PRs ❤️
Bug Fixes
- Avoid touching DOM-attributes during hydration (#2679, thanks @JoviDeCroock)
- Fix incorrect
download
attribute handling (#2674, thanks @marvinhagemeister) - Allow the same component to be suspended multiple times (#2661, thanks @tanhauhau)
- Allow resolve promise after suspense unmounted (#2664, thanks @tanhauhau)
- Throw when hook is used inside effect (#2672, thanks @marvinhagemeister)
- Fix incorrect text node handling in
diffElementNodes
(#2658, thanks @perseveringman) - Default
useRef
tonull
(#2648, thanks @JoviDeCroock) - Fix calling
setState
inconstructor
(#2640, thanks @sventschui)
Types
- Change argument of
useRef
to optional (#2651, thanks @38elements) - Updated
capture
definition. (#2643, thanks @JonathanBristow) - Update
preact/compat
types (#2628, thanks @jeremy-coleman)
Maintenance
- Run benches on linux VMs (#2595, thanks @andrewiggins)
- Fix
package.json
"authors" field (#2635, thanks @developit)