All Versions
46
Latest Version
Avg Release Cycle
14 days
Latest Release
1120 days ago

Changelog History
Page 1

  • v10.5.7 Changes

    November 12, 2020
  • v10.5.6 Changes

    November 12, 2020

    🐛 Bug Fixes

    Types

    • ➕ 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

    Typings

  • 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

    🚧 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 🙌

    Golfing

    🐛 Bug Fixes

    Typings

    🚧 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

    Types

    🚧 Maintenance