All Versions
Latest Version
Avg Release Cycle
14 days
Latest Release
1115 days ago

Changelog History
Page 1

  • v10.5.7 Changes

    November 12, 2020
  • v10.5.6 Changes

    November 12, 2020

    ๐Ÿ› Bug Fixes


    • โž• Add animateTransform tag type (#2822, thanks @HuHguZ)
    • โž• Add displayName to context (#2820, thanks @max-voronov)
    • ๐Ÿ‘Œ Improve style attribute types (#1797, thanks @mnkhouri)
    • ๐Ÿ›  General JSX types export for jsx-runtime, fixes TS4.1 compatibility (#2811, thanks @ddprrt)
    • ๐Ÿ‘‰ Make ref types' current property non-optional (#2803, thanks @ivantm)

    ๐Ÿšง Maintenance

  • v10.5.5 Changes

    October 18, 2020

    ๐Ÿ› Bug Fixes


  • v10.5.4 Changes

    October 05, 2020

    _ tl;dr: Bug-Fix only release that should get rid of the last className edge cases. We encourage everyone to upgrade. _

    ๐Ÿš€ Despite our effort to account for all edge cases regarding className handling in preact/compat, we got some reports of some missed ones. This release corrects those ๐ŸŽ‰

    ๐Ÿš€ This release contains a fix to increase compatibility with next.js that ensures that the error overlay will show up.

    ๐Ÿ› Bug Fixes

  • v10.5.3 Changes

    September 28, 2020

    ๐Ÿš€ This release fixes a regression in regards to class/className handling in preact/compat. We encourage everyone to upgrade.

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fix className normalization (#2774, thanks @JoviDeCroock)
    • ๐Ÿ›  Fix edge cases for thrown Promises in Suspense (#2776, thanks @kitten)

    ๐Ÿšง Maintenance

  • v10.5.2 Changes

    September 23, 2020
  • v10.5.1 Changes

    September 23, 2020
    • ๐Ÿ›  Fix publishing error with jsx-runtime package (#2767, thanks @johakr)
  • v10.5.0 Changes

    September 23, 2020

    ๐Ÿ†• New JSX-runtime functions

    This has been a long time in the making for various virtual-dom based frameworks. Historically JSX was always transpiled to createElement function calls.

    // input\<div\>foobar\</div\>// output, we need to move "foobar" to `props.children`createElement("div, {}, "foobar");

    While this has served us well and is very reliable, it has proven to be hard to optimize. Most of the things we do in our createElement function could by done by babel directly, thereby making it smaller and faster. This is very desirable for us as this function is called a lot in any application. It's part of the so-called hot-path.

    ๐Ÿฑ And that's exactly what the new signature does. It removes the need for us to pull out key from props, add back children to props and just makes the implementation simpler. As a nice benefit users won't need to manually import h/createElement anymore ๐ŸŽ‰

    // input\<li key="foo"\>foobar\</li\>// outputjsx("li", { children: "foobar" }, "foo");

    Usage with babel:

    // babel.config.jsmodule.exports = {plugins: [["@babel/plugin-transform-react-jsx", {runtime: "automatic", // defaults to classic (classic == createElement calls)importSource: "preact", // NOT preact/jsx-runtime}]]}

    ๐Ÿš€ Note that the JSX transformer in TypeScript is a work in progress and will likely be released as part of version 4.1. We're currently running into microsoft/TypeScript#40502 though, so the JSX typings are not found.

    ๐Ÿ”‹ Features

    ๐Ÿ› Bug Fixes

    ๐Ÿšง Maintenance

  • v10.4.8 Changes

    August 26, 2020

    _ tl;dr: A good handful of bug fixes make this release the ideal candidate to upgrade! Should be very safe to upgrade_

    ๐Ÿš€ Thanks to all the people who made this release possible! This is for everyone who took part in our discussions, helped report issues, did code contributions or just spread the word. Thank you all for another amazing release ๐Ÿ™Œ


    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fix state turned readonly in update fn (#2717, thanks @marvinhagemeister)
    • ๐Ÿ›  Fix deprecation warnings flooding console with preact/debug (#2711, thanks @marvinhagemeister)
    • ๐ŸŽ‰ Initialize normalized props with undefined instead of null in preact/compat (#2695, thanks @aralroca)
    • โž• Add React "secret or fired" shim for react-relay (#2692, thanks @marvinhagemeister)
    • Properly unset href on nullish value (#2693, thanks @marvinhagemeister)
    • 0๏ธโƒฃ Go back to undefined as default value for useRef (#2689, thanks @marvinhagemeister)
    • ๐Ÿ›  preact/debug: Add component stack to prop type validation error, do not pass ref to prop-types validation (fixes mui incompatbility) (#2685, thanks @sventschui)


    • Automatically add dom lib (#2713, thanks @Gerrit0)
    • โšก๏ธ Update useDebugValue typings to align with React (#2699, thanks @leader22)
    • โœ‚ Remove useErrorBoundary compat types (#2631, thanks @38elements)
    • โž• Add support for IntrinsicElements in ComponentProps (#2680, thanks @remcohaszing)

    ๐Ÿšง Maintenance

  • v10.4.7 Changes

    August 05, 2020

    _ tl;dr: This is a bug-fix only release and safe to upgrade ๐ŸŽ‰_

    ๐Ÿš€ This release contains some amazing fixes by first time contributors! Thank you so much for everyone who filed issues or contributed PRs โค๏ธ

    ๐Ÿ› Bug Fixes


    ๐Ÿšง Maintenance