preact v10.4.2 Release Notes

Release Date: 2020-05-18 // almost 4 years ago
  • ๐Ÿš€ What a month we had! The weather is getting warmer and I think we an all enjoy a new refreshment in the form of a Preact release! The past weeks saw a good chunk of bug fixes and and a bit of house keeping. Upgrades should be as straigthforward as swapping out the version number in package.json and running npm install or yarn install once!

    Introducing prefresh (experimental)

    It was one of those miracle days where all the pieces fell into place just perfectly: @JoviDeCroock got a HMR (=hot module reloading) prototype up without any changes to Preact and running in a couple hours! With the biggset achievement being that it works amazingly well in keeping hooks state around.

    โœ… Since then he was contacted by various maintainers of bundlers to collaborate on an ideal developer experience. Today, about little more than a week later we have them ready to be tested. And we need your feedback to make it the best HMR experience we can! Please file any issue you come across!

    • ๐Ÿ“ฆ webpack
    • ๐Ÿ“ฆ vite
    • ๐Ÿ“ฆ nollup
    • Parcel (in progress)
    • Snowpack (in progress)

    Snowpack template

    Oh and while we were at it @sventschui added a Preact template for snowpack! You can get it up and running via this line:

    npx create-snowpack-app my-project --template @snowpack/app-template-preact
    

    EX5IXBLXsAIVhTx

    Preact sightings

    ๐Ÿš€ Recently deno cut it's 1.0.0 release which is a huge achievement. It's a new spin on what node could look like if it would started fresh in 2019 and we're excited where this experiment will lead to! Despite it being very early it made some waves in our community and we were filled with joy when we noticed that the website is built with our beloved framework!

    ๐Ÿ› Bug Fixes

    • โž• Add noop React.StrictMode to compat (#2529, thanks @developit)
    • โœ… Use latest reducer function in useReducer (#2526, thanks @hadeeb)
    • Improve IS_NON_DIMENSIONAL for compatibility with animation-iteration-count (#2523, thanks @viko16)
    • Polyfill prototype setter in debug (#2514, thanks @JoviDeCroock)
    • ๐Ÿ›  Fix hydrate export in compat (#2511, thanks @hadeeb)
    • ๐Ÿ›  Fix creating multiple roots from useEffect (#2493, thanks @JoviDeCroock)

    Types

    ๐Ÿšง Maintenance