10.0.1 - B(oooooo)-gs begone
tl;dr: This is a standard bug-fix release with no new features. We encourage everyone to upgrade
Wow, we've been overwhelmed with the reactions to our final Preact X release! We saw a huge uptick in npm downloads to 200.000 per week 🎉 Another exciting announcement is that Google AMP is officially using Preact under the hood. We've receivied many more thank you notes (and even stroopwafels!) from companies using Preact. Those range from small companies to big enterprise ones, where Preact is used in a wide span of different environments.
We preactively allocated the weeks after the big launch for a period of bug-fixes only in case something slipped through. It was admittedly a more conservative decision after our long alpha and beta period, but we wanted to make sure that you all would have a butter smooth experience no matter what 🌠 It's safe to say that it went really well and we've only received a couple bug reports so far 🎉
In the short amount of time that has passed since the release, we managed to squash a good portion of those! Thank you so much to everyone for reporting bugs and helping us track them down! You rock 👍 💯
Bug Fixes
- Resolve attributes of reused nodes that weren't present in
virtual-dom
(#1987, thanks @JoviDeCroock) - Fix stale
context
values (forcreateContext
-API) (#2005, thanks @JoviDeCroock) - Properly flush nested
setState
callbacks (-6 B) (#2010, thanks @andrewiggins) - Import and re-export hooks explicitly to allow for webpack tree shaking (#2006, thanks @davidbailey00)
- Removing reference to
preact-context
library (#2001, thanks @jackbravo) - Fix
forceUpdate
enqueued child update being skipped (#1988, thanks @marvinhagemeister) - Append
Portal
node to container instead of prepend (#1971, thanks @toraora) - Always pull
_force
flag from component (#1984, thanks @marvinhagemeister) - Fix typos in JSDoc (#1973, thanks @polemius)
- Fix
replaceNode
not always taking effect (#1970, thanks @JoviDeCroock)
Types
- Remove
null
fromVNode.type
TS definition and add some TS tests (#1994, thanks @andrewiggins) - Add
_force
to internal.d.ts (#1990, thanks @38elements) - Improve
VNode
typings (#1979, thanks @andrewiggins)
Maintenance
- Golf
shouldComponentUpdate
(#1980, thanks @JoviDeCroock) - Add Songsterr to Real-World Apps section (#1972, thanks @followdarko)