Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade preact from 10.4.7 to 10.5.4 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

snyk-bot
Copy link
Contributor

Snyk has created this PR to upgrade preact from 10.4.7 to 10.5.4.

merge advice

✨ Snyk has automatically assigned this pull request, set who gets assigned.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 6 versions ahead of your current version.
  • The recommended version was released 25 days ago, on 2020-10-05.
Release notes
Package name: preact
  • 10.5.4 - 2020-10-05

    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

  • 10.5.3 - 2020-09-28

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

    Bug Fixes

    Maintenance

  • 10.5.2 - 2020-09-23
  • 10.5.1 - 2020-09-23
    • Fix publishing error with jsx-runtime package (#2767, thanks @johakr)
  • 10.5.0 - 2020-09-23

    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>
    

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

    Usage with babel:

    // babel.config.js
    module.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

  • 10.4.8 - 2020-08-26
    Read more
  • 10.4.7 - 2020-08-05
    Read more
from preact GitHub release notes
Commit messages
Package name: preact
  • 042be5e Merge pull request #2787 from preactjs/release-10.5.4
  • 81d6843 Release 10.5.4
  • 100868b Merge pull request #2784 from preactjs/feature/emit-error-event-for-catched-errors
  • 059b5be Merge branch 'master' into feature/emit-error-event-for-catched-errors
  • 7ac45b3 Size tweaks
  • 7746eaa Merge pull request #2786 from preactjs/fix-classname-descriptors-elements
  • 1f3cc96 Use setTimeout
  • e786577 Add real-world function spread tests
  • 35dc841 Fix className descriptors for Element nodes
  • 2f9c858 Fix test
  • af4a962 Emit error event for errors handled by an error boundary
  • 784733c Merge pull request #2782 from preactjs/class-presedence
  • 07a22d9 account for PR remarks
  • a92ddea give presedence to className over class
  • 8603d70 Merge pull request #2780 from preactjs/release-10.5.3
  • c69ecd1 Release 10.5.3
  • 0cb2634 Merge pull request #2774 from preactjs/fix-classname
  • 06fd0e9 Merge branch 'master' into fix-classname
  • b3da47d Merge pull request #2776 from kitten/fix/suspense-hooks-edgecases
  • 2cb903f Merge branch 'master' into fix/suspense-hooks-edgecases
  • 27eca03 Merge pull request #2777 from preactjs/check-export-map
  • 74cf0df Replace custom script with check-export-map
  • e8233d4 Add tests (for what I *think* is the functionality we want?)
  • aedd903 Add test for thrown error in useState setup function

Compare


Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

👩‍💻 Set who automatically gets assigned

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant