Skip to content

Update dependency preact to v10.5.5 - #34

Open
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/preact-10.x
Open

Update dependency preact to v10.5.5#34
renovate[bot] wants to merge 1 commit into
masterfrom
renovate/preact-10.x

Conversation

@renovate

@renovate renovate Bot commented Sep 23, 2020

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Type Update Change
preact (source) dependencies minor 10.4.8 -> 10.5.5

Release Notes

preactjs/preact

v10.5.5

比较 Source

Bug Fixes

Typings

v10.5.4

比较 Source

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

比较 Source

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

比较 Source

v10.5.1

比较 Source

v10.5.0

比较 Source

新建 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>

// output
jsx("li", { children: "foobar" }, "foo");

Usage with babel:

// babel.config.js
module.exports = {
  plugins: [
    ["@&#8203;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


Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate
renovate Bot force-pushed the renovate/preact-10.x branch from ae64ed9 to cb37474 比较 September 23, 2020 14:13
@renovate renovate Bot changed the title Update dependency preact to v10.5.0 Update dependency preact to v10.5.1 Sep 23, 2020
@renovate
renovate Bot force-pushed the renovate/preact-10.x branch from cb37474 to 4b83f0b 比较 September 23, 2020 15:33
@renovate renovate Bot changed the title Update dependency preact to v10.5.1 Update dependency preact to v10.5.2 Sep 23, 2020
@renovate
renovate Bot force-pushed the renovate/preact-10.x branch from 4b83f0b to 4c15c54 比较 September 28, 2020 21:02
@renovate renovate Bot changed the title Update dependency preact to v10.5.2 Update dependency preact to v10.5.3 Sep 28, 2020
@renovate
renovate Bot force-pushed the renovate/preact-10.x branch from 4c15c54 to 40a52e4 比较 October 5, 2020 19:11
@renovate renovate Bot changed the title Update dependency preact to v10.5.3 Update dependency preact to v10.5.4 Oct 5, 2020
@renovate
renovate Bot force-pushed the renovate/preact-10.x branch from 40a52e4 to 770e055 比较 October 18, 2020 10:51
@renovate renovate Bot changed the title Update dependency preact to v10.5.4 Update dependency preact to v10.5.5 Oct 18, 2020
注册 for free to join this conversation on GitHub. Already have an account? 登录 to comment

标签

None yet

项目

None yet

Development

Successfully merging this pull request may close these issues.

1 participant