Releaaaaaaaaaaaaaaaaaaase
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-inelements (#2266, thanks @defx) - Upgrade devtools adapter to support Profiler and bring back
preact/devtoolsimport (#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.mapnot flattening result (#2287, thanks @marvinhagemeister) - Fix error when setting
sizeto an invalid value (#2285, thanks @marvinhagemeister) - Fix wrong SVG attribute for
clipPathUnits(#2251, thanks @friebe) - Fix both
classandclassNamebeing enumerable (#2280, thanks @marvinhagemeister) - Fix
classNamepatch not applied to props (#2279, thanks @marvinhagemeister) - Bailout when hook throws an error (#2193, thanks @JoviDeCroock)
- Avoid removing existing dom nodes on subsequent
replaceNodecalls (#2274, thanks @JoviDeCroock) - Fix
shouldComponentUpdategetting called onsetStateafterforceUpdate(#2258, thanks @laino) - Remove
process.env.NODE_ENVcheck frompreact/debugwhich broke browsers (#2257, thanks @marvinhagemeister)
Types
- Allow
nullas an initial value foruseRef(#2281, thanks @armujahid)
Maintenance
- Rename
_lastDomChildSiblingto_nextDom(#2297, thanks @andrewiggins) - Improve code coverage (#2299, thanks @andrewiggins)
- Update
mangle.jsonwith 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
sizeaction (#2270, thanks @developit) - Prevent
postinstallfrom 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 cito speed up travis (#2255, thanks @JoviDeCroock) - Add
package-lock.json(#2254, thanks @JoviDeCroock)