preact v10.3.0 Release Notes
Release Date: 2020-02-03 // about 4 years ago-
_ tl;dr: This release contains a good number of bug fixes and we encourage all users to upgrade._
๐ A little bit of time has passed since our last release and we're excited to ship another one, making Preact even more robust! The fixes nearly touch all packages and further improves compatibility with third-party libraries ๐
๐ฑ If you glance at the contributor names, you'll notice a few new ones there. It's safe to say that we were amazed and super ecstatic by the amount of new first time contributors to Preact! ๐
๐ Features
- ๐ Include support for customised
built-in
elements (#2266, thanks @defx) - โฌ๏ธ Upgrade devtools adapter to support Profiler and bring back
preact/devtools
import (#2246, thanks @marvinhagemeister)
๐ Bug Fixes
- โก๏ธ Suspended components should rerender through
shouldComponentUpdate
(#2125, thanks @andrewiggins) - โฌ๏ธ Reduce reads of
dom.nextSibling
(#2294, thanks @andrewiggins) - Preserve state when using placeholders (#2295, thanks @andrewiggins)
- ๐ Fix
Children.map
not flattening result (#2287, thanks @marvinhagemeister) - ๐ Fix error when setting
size
to an invalid value (#2285, thanks @marvinhagemeister) - ๐ Fix wrong SVG attribute for
clipPathUnits
(#2251, thanks @friebe) - ๐ Fix both
class
andclassName
being enumerable (#2280, thanks @marvinhagemeister) - ๐ Fix
className
patch not applied to props (#2279, thanks @marvinhagemeister) - Bailout when hook throws an error (#2193, thanks @JoviDeCroock)
- Avoid removing existing dom nodes on subsequent
replaceNode
calls (#2274, thanks @JoviDeCroock) - ๐ Fix
shouldComponentUpdate
getting called onsetState
afterforceUpdate
(#2258, thanks @laino) - โ Remove
process.env.NODE_ENV
check frompreact/debug
which broke browsers (#2257, thanks @marvinhagemeister)
Types
- ๐ Allow
null
as an initial value foruseRef
(#2281, thanks @armujahid)
๐ง Maintenance
- Rename
_lastDomChildSibling
to_nextDom
(#2297, thanks @andrewiggins) - ๐ Improve code coverage (#2299, thanks @andrewiggins)
- โก๏ธ Update
mangle.json
with Suspense prop rename (#2298, thanks @andrewiggins) - ๐ Fix SVG polygon test failing on IE 11 (#2288, thanks @marvinhagemeister)
- Try out new node submodule exports (#2283, thanks @JoviDeCroock)
- โ Add section about reporting bugs (#2278, thanks @marvinhagemeister)
- ๐ Improve CONTRIBUTINIG + comments (#2277, thanks @marvinhagemeister)
- โ Add
size
action (#2270, thanks @developit) - Prevent
postinstall
from running on installation (#2271, thanks @JoviDeCroock) - โ Add test coverage for
createElement
(#2273, thanks @zubhav) - ๐ Fix custom element tests failing in IE (#2272, thanks @marvinhagemeister)
- ๐ Fix failing IE test (#2267, thanks @marvinhagemeister)
- โ Add info for first time contributors (#2265, thanks @marvinhagemeister)
- โ Add unit tests to check proper component unmounting (#2195, thanks @timon-witt)
- โ Add
npm ci
to speed up travis (#2255, thanks @JoviDeCroock) - โ Add
package-lock.json
(#2254, thanks @JoviDeCroock)
- ๐ Include support for customised