preact v10.0.0-beta.3 Release Notes
Release Date: 2019-06-21 // almost 5 years ago-
tl;dr This is a bug-fix-only release and all users are encouraged to update. A final release is in sight ๐
It's the summer and while hopefully most of you will be able to enjoy the time
๐ outside we couldn't pass the opportunity to let our latest beta release free
into the world! This might be the last beta we'll publish before going gold,
๐ฑ so stay tuned ๐ For this reason we focused purely on shaking all bugs out
๐ and make this the most stable preact release we can ๐ ๐ฏMost notably this includes some rethinking of how we deal with
Fragments
๐ internally. Over the past weeks we received bug reports which all seemed to be
related and it turns out they were! They all shared the problem that the sibling
โก๏ธ order was different after a component update. We all got our heads together
๐ and found a better internal implementation forFragments
that's a lot more
๐ฑ sound theoretically. It should fix all ordering issues for good ๐ ๐๐ Although this release is quite and we've set our sights on a final release we're
already working on getting the Preact debug adapter in shape for the upcoming
๐ฑ react-devtools v4 ๐ It's not just more performant, but also adds the
๐ฑ hooks panel right in the devtools. More on that soon ๐Again, you are awesome
As always Preact wouldn't be what it is today without you all. Whether you've
been helping us squash bugs, joined feature discussions or just spread the word,
we're really thankful to be part of such an amazing community. We even got to
meet some of you at this years JSConfEU!๐ With all said: We can't wait to unleash the final release soon! If you're new
๐ to the beta releases, don't worry. The final release will be accompanied with
๐ฑ a migration guide ๐Important
โก๏ธ Because of the internal restructuring preact-render-to-string needs to be updated to at least version
5.0.4
.๐ Bug Fixes
- โช Restore debounceRendering after
act
(#1683, thanks @JoviDeCroock) - ๐ Fix cross browser assertions (#1708, thanks @marvinhagemeister)
- Bubble up Component dom changes up the virtual tree (+51 B) (#1700, thanks @andrewiggins)
- Begin rendering with
diff
instead ofdiffChildren
and other golf โณ (#1715, thanks @andrewiggins) - Implement
useRef
withuseState
(#1679, thanks @JoviDeCroock) - ๐ Fix
falsy
event values beeing added (#1712, thanks @cristianbote) - Minify names of externally exposed private functions (#1711, thanks @andrewiggins)
- Ensure correct unmount (#1687, thanks @JoviDeCroock)
- Correct
Portal
unmounting and props diffing (#1691, thanks @JoviDeCroock) - RFC: Privatize some options (-7 B) (#1692, thanks @andrewiggins)
- โก๏ธ Begin
diff
with next DOM sibling inforceUpdate
(#1689, thanks @andrewiggins) - Replace
ancestorComponent
withvnode
parent pointer (+5 B) (#1688, thanks @andrewiggins) - Delete React debugging props
__self
and__ source
(#1690, thanks @mxstbr) - Consistently use
_children
& combine Fragment and Component diffing (-73 B) (#1658, thanks @andrewiggins) - Don't use
typeof
check forh
(#1676, thanks @JoviDeCroock)
Typings
- โก๏ธ Update compat typings (#1703, thanks @pmkroeker)
- ๐
Retype
style
to error onstrings
(#1675, thanks @pmkroeker)
๐ง Maintenance
- โก๏ธ Update suspense so tests only rely on public API (#1724, thanks @andrewiggins)
- โ Disable Safari in Saucelabs tests (#1706, thanks @marvinhagemeister)
- โ Add redux to demo app (#1705, thanks @marvinhagemeister)
- โ Clean up scratch DOM after tests (#1701, thanks @andrewiggins)
- โ Separate lifecycle tests into separate files (#1702, thanks @andrewiggins)
- โ Add toEqualNode chai assertion (#1680, thanks @andrewiggins)
- ๐ Run ESLint on all source and test files (#1686, thanks @andrewiggins)
- โ Add
preact-charts
to Component Libraries (#1667, thanks @pmkroeker)
- โช Restore debounceRendering after