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 hardhat from 2.12.6 to 2.13.1 #32

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

Conversation

DomantasP
Copy link
Collaborator

This PR was automatically created by Snyk using the credentials of a real user.


Snyk has created this PR to upgrade hardhat from 2.12.6 to 2.13.1.

As this is a private repository, Snyk-bot does not have access. Therefore, this PR has been created automatically, but appears to have been created by a real user.

✨ 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 9 versions ahead of your current version.
  • The recommended version was released 24 days ago, on 2023-04-10.
Release notes
Package name: hardhat
  • 2.13.1 - 2023-04-10

    This release adds support for the upcoming Shanghai hardfork. This hardfork is not enabled by default; if you want to use it, then you have to enable it in your Hardhat config:

    module.exports = {
      networks: {
        hardhat: {
          hardfork: "shanghai"
        }
      }
    }

    Besides that, this version fixes a problem when importing scoped packages in a Yarn Berry monorepo that uses PnP (thanks @ zouguangxian!)

  • 2.13.0 - 2023-03-02

    This new version of Hardhat adds two long-awaited features: ES Modules support, and better support for solc’s IR-based compilation pipeline. Besides that, this version includes several other improvements and bug fixes.

    Remember to give this repo a star ⭐ if you are enjoying Hardhat!

    ES Modules support

    Hardhat was designed with CommonJS in mind, but in the last years adoption of ES Modules (ESM) has been growing. This version includes better support for it. You can now write scripts and tests as ESM, but your Hardhat config —and anything imported from it— still needs to use CommonJS.

    ES modules let you use import/export and top-level await. This means that instead of writing a script like this:

    // script.js
    const helpers = require("@ nomicfoundation/hardhat-network-helpers");

    async function main() {
    const latestBlockNumber = await helpers.time.latestBlock();
    console.log("Latest block:", latestBlockNumber);
    }

    main()
    .then(() => process.exit(0))
    .catch(error => {
    console.error(error);
    process.exit(1);
    });

    you can now write a less verbose ESM script:

    // script.mjs <-- notice the extension
    import helpers from "@ nomicfoundation/hardhat-network-helpers";

    const latestBlockNumber = await helpers.time.latestBlock();
    console.log("Latest block:", latestBlockNumber);

    Check our guide about Using ES modules with Hardhat to learn more.

    Huge thanks to @ phated, who started the work on this and helped us along the way.

    IR-based compilation pipeline

    The solc compiler has a newer, alternative way of generating bytecode through an intermediate representation (IR). Previous versions of Hardhat don’t work well with this compilation mode, especially when the optimizer is fully-enabled.

    This release adds better support for the IR compilation pipeline, but you might still get some issues if you use the default settings. We recommend enabling the minimal necessary optimization steps when compiling with IR:

    solidity: {
      version: "0.8.18",
      settings: {
        viaIR: true,
        optimizer: {
          enabled: true,
          details: {
            yulDetails: {
              optimizerSteps: "u:",
            },
          },
        },
      },
    }

    You can learn more about Hardhat and IR here.

    Other improvements

    In addition to ES Modules and compiling with the IR-based pipeline, this version includes these improvements and bug fixes:

    • Added support for Solidity 0.8.18 (thanks @ taxio!)
    • Hardhat's task runner now allows you to override the arguments passed to subtasks (thanks @ zemse!)
    • The colors used to show errors and warnings are better and more readable (thanks @ frangio!)
    • We now show better error messages when a transaction to a JSON-RPC network reverts (thanks @ orenyomtov!)
    • Hardhat is now more tolerant to Node.js versions that are not officially supported (thanks @ iamrekas!)
    • The resolveJsonModule compiler option is now enabled by default in the sample tsconfig (thanks @ mlshv!)
    • The sample project’s deploy script uses better example values (thanks @ mutedSpectre!)
    • Fixed an issue with a warning showing the same solc version multiple times (thanks @ shark0der!)
    • Fixed an error that could happen when a download failed
  • 2.13.0-dev.4 - 2023-03-02
  • 2.13.0-dev.3 - 2023-02-27
  • 2.13.0-dev.2 - 2022-12-30
  • 2.13.0-dev.1 - 2022-11-24
  • 2.13.0-dev.0 - 2022-10-21
  • 2.12.8-viair.0 - 2023-02-14
  • 2.12.7 - 2023-02-09
  • 2.12.6 - 2023-01-11
from hardhat GitHub release notes
Commit messages
Package name: hardhat
  • 29a55f2 Version Packages
  • 7645946 Merge pull request #3767 from NomicFoundation/shanghai
  • 5426f58 Merge pull request #3806 from zZoMROT/aurora-apiurl
  • 4e1fcdc Add changeset
  • c939a4c Fix aurora api url
  • dfc4465 Merge pull request #3778 from shungo0222/patch-1
  • 83254fd Merge pull request #3797 from NomicFoundation/add-hh-storage-dumper
  • 1cc5cee Run prettier
  • 7bb0025 Add docs/**/*.ts files to prettier script
  • 57ce19a Merge branch 'NomicFoundation:main' into hardhat-storage-dumper
  • fcb182d Add max initcode tests for eth_sendRawTransaction
  • 9f27a75 Validate max init code size in the JSON-RPC layer
  • 0932974 Set disableMaxInitCodeSizeCheck to true by default
  • 3a609dd Update hardhat-runtime-environment.md
  • 1b5183f Merge branch 'hardhat-deals' of github.com:Karuzzzo/hardhat into hardhat-deals
  • 2396d2a heyy storage layout yesss
  • 8da0be1 Merge pull request #3774 from NomicFoundation/add-infura-to-docs
  • 6980f1f Run prettier
  • 6b07971 docs: add infura, and replace goerli with sepolia
  • bb67583 Merge pull request #3764 from cyri113/patch-2
  • 18ba52a Fix added community plugin
  • 95fa921 Merge pull request #3769 from Karuzzzo/hardhat-deals
  • 0e3c15d Fix added community plugin
  • 02b9625 Upgrade ethereumjs versions to next major

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.

3 participants