This is probably the last release for 2020. Thank you everyone for the amazing contributions over the year and we can't wait to see where Preact is going in 2021! Lot's of interesting ideas are being worked on 🎉
Bug Fixes
- Correct
_nextDom
pointer if it is being unmounted (#2889, thanks @andrewiggins) - Updating
/compat/server
exports to work with import/export syntax and webpack 5 (#2873, thanks @SomethingSexy) - Remove arguments warning for
useMemo
/useCallback
hooks (#2870, thanks @afzalsayed96) - Use strict equality checks when comparing
VNode
type (#2855, thanks @andrewiggins) - Fix
ref
not being removed fromprops
withjsx-runtime
(#2840, thanks @marvinhagemeister) - Compat: Don't convert
onchange
tooninput
forinput[type=range]
in IE11 (#2817, thanks @gcraftyg)
Types
- Improve
JSDoc
comments (#2883, thanks @andrewiggins) - Use
CSSStyleDeclaration
for CSS property list (#2869, thanks @developit) - Add
readonly
attribute (#2868, thanks @rschristian) - Add
defaultValue
for select tag (#2848, thanks @Rafi993) - Update
_original
typings (#2830, thanks @marvinhagemeister) - Update
csstype
from version 2 to version 3 (#2829, thanks @bz2)
Other
- SimplifyPortal implementation (#2890, thanks @marvinhagemeister, @developit)
- Simplify
vnode
re-use detection (-2 B) (#2863, thanks @marvinhagemeister) - Save 6 Bytes (#2844, thanks @marvinhagemeister)
- Move child reodering to
diffChildren
(#2813, thanks @JoviDeCroock)
Maintenance
- Add discussions and a csb template (#2875, thanks @JoviDeCroock)
- In benches, abstract framework differences with
createRoot
API (#2866, thanks @andrewiggins) - Add filter benchmark (#2851, thanks @marvinhagemeister)
- Update benchmarks (#2865, thanks @andrewiggins)
- Add preactjs-gh-sponsor account to
FUNDING.yml
(#2861, thanks @JoviDeCroock) - Upgrade
devDependencies
(#2856, thanks @andrewiggins) - Add package tags (#2841, thanks @developit)
- Trial codesandbox-ci (#2819, thanks @JoviDeCroock)