preact v10.0.2 Release Notes

Release Date: 2019-10-28 // over 4 years ago
  • _ tl;dr: This is release contains mostly bug fixes and some size reductions. We encourage everyone to upgrade._

    ๐Ÿš€ Just a week has passed since the last release and there are already an exciting number of new commits in master. Hackoktoberfest has had really positive effects on us and we're excited to see some new contributors in this release ๐Ÿ’ฏ

    ๐Ÿ‘€ As you can see from the changelog: @andrewiggins is currently on a byte removing spree, so I thought it'd be appropriate to list them in their own category ๐ŸŽ‰ A few others joined him and marie kondo'ed everything that didn't spark joy in us!

    ๐Ÿฑ Besides some great savings, there are new debug warnings for components and fixes for our Suspense implementation ๐ŸŽ‰

    ๐Ÿ”‹ Features

    • โž• Add debug warnings when calling setState or forceUpdate on an unmounted component (#2037, thanks @andrewiggins)

    ๐Ÿ› Bug Fixes

    Golf (size reductions)

    • Inline coerceToVNode inside of toChildArray (-21 B) (#2040, thanks @andrewiggins)
    • โœ‚ Remove unused mount check in context Provider (-6 B) (#2039, thanks @andrewiggins)
    • Golfed render (#2045, thanks @MohammedSheikhIbrahim)
    • โœ‚ Remove useless return from eventProxy (#2026, thanks @jridgewell)
    • Rewrite useImperativeHandle to use useLayoutEffect (-35 B) (#2003, thanks @andrewiggins)
    • Re-purpose renderCallbacks as a general per-component commit queue (#2011, thanks @andrewiggins)

    Types

    • โž• Add nonce to JSX HTMLAttributes types for better Content Security Policy support. (#2035, thanks @calvinf)
    • โœ‚ Remove internal import from compat types (#2018, thanks @andrewiggins)
    • ๐Ÿ›  Fix internal vnode typings (#2015, thanks @pmkroeker)

    ๐Ÿšง Maintenance

    • โœ‚ Remove end of line in compat/mangle.json (#2053, thanks @38elements)
    • Add _afterPaintQueued and _fallback to mangle.json (#2043, thanks @38elements)
    • โœ‚ Remove OpenCollective postinstall Banner (#2033, thanks @developit)
    • โšก๏ธ Update preact/compat in readme (#2029, thanks @developit)
    • ๐Ÿ›  Fixed some typos and grammatical mistakes. (#2028, thanks @MohammedSheikhIbrahim)
    • ๐Ÿ‘ฎ Add _force and _lastDomChild to mangle.json (#2023, thanks @developit)
    • โž• Add _suspensions to mangle (#2019, thanks @JoviDeCroock)
    • โž• Add npm script to run compat TS tests (#2017, thanks @andrewiggins)