chore(deps): update hardhat packages (major)#176
Conversation
| "@graphprotocol/graph-ts": "0.38.0", | ||
| "@nomicfoundation/hardhat-foundry": "1.2.0", | ||
| "@nomicfoundation/hardhat-ignition-viem": "0.15.15", | ||
| "@nomicfoundation/hardhat-toolbox-viem": "4.1.1", | ||
| "@nomicfoundation/hardhat-ignition-viem": "3.0.4", | ||
| "@nomicfoundation/hardhat-toolbox-viem": "5.0.1", | ||
| "@nomiclabs/hardhat-solhint": "4.1.0", | ||
| "@openzeppelin/contracts": "5.4.0", | ||
| "@openzeppelin/subgraphs": "0.1.8-5", | ||
| "hardhat": "2.26.5", | ||
| "hardhat": "3.0.11", | ||
| "solhint": "6.0.1" | ||
| }, | ||
| "overrides": { |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
9a280ba to
99c752e
Compare
99c752e to
7a60260
Compare
70d8dae to
efdbe69
Compare
efdbe69 to
62f7eff
Compare
| @@ -38,12 +38,12 @@ | |||
| "@graphprotocol/graph-cli": "0.96.0", | |||
| "@graphprotocol/graph-ts": "0.38.0", | |||
There was a problem hiding this comment.
Bug: The upgrade to Hardhat v3 is missing the required ESM configuration ("type": "module" in package.json or renaming config to .mts), which will break all Hardhat commands.
Severity: CRITICAL | Confidence: High
🔍 Detailed Analysis
The project's dependencies are upgraded to Hardhat v3, which is an ESM-first framework. However, the project's configuration is not updated to be ESM-compatible. The package.json file lacks the required "type": "module" field, and the configuration file hardhat.config.ts has not been renamed to hardhat.config.mts. The tsconfig.json further specifies "module": "commonjs". This mismatch will cause Hardhat 3 to fail when it tries to load the configuration file, as it will be processed as CommonJS instead of the required ESM. This failure will prevent all Hardhat commands, such as deployments and tests, from running.
💡 Suggested Fix
To make the project compatible with Hardhat v3, either add "type": "module" to the package.json file or rename the Hardhat configuration file from hardhat.config.ts to hardhat.config.mts.
🤖 Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: package.json#L39
Potential issue: The project's dependencies are upgraded to Hardhat v3, which is an
ESM-first framework. However, the project's configuration is not updated to be
ESM-compatible. The `package.json` file lacks the required `"type": "module"` field, and
the configuration file `hardhat.config.ts` has not been renamed to `hardhat.config.mts`.
The `tsconfig.json` further specifies `"module": "commonjs"`. This mismatch will cause
Hardhat 3 to fail when it tries to load the configuration file, as it will be processed
as CommonJS instead of the required ESM. This failure will prevent all Hardhat commands,
such as deployments and tests, from running.
Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 6983881
b4a0036 to
bff257d
Compare
6b091e7 to
62a1162
Compare
62a1162 to
64bdc74
Compare
c17357a to
dc7f474
Compare
dc7f474 to
6d89665
Compare
e3ea95d to
0ce49bf
Compare
9815b40 to
b4677ee
Compare
d76e0c3 to
625651f
Compare
625651f to
ddfada7
Compare
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
ddfada7 to
fbd5e64
Compare
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
This PR contains the following updates:
1.2.0→3.0.00.15.16→3.1.14.1.1→5.0.34.1.0→5.0.02.27.1→3.3.0Release Notes
NomicFoundation/hardhat (@nomicfoundation/hardhat-foundry)
v3.0.0Compare Source
Major Changes
4cd63e9: Introduce the@nomicfoundation/hardhat-foundryplugin for Hardhat 3v1.2.1Compare Source
NomicFoundation/hardhat (@nomicfoundation/hardhat-ignition-viem)
v3.1.1Compare Source
Changes
#8088
23c0d36Thanks @alcuadrado! - Optimize imports.Updated dependencies:
v3.1.0Compare Source
Minor Changes
481b221Thanks @manuelwedler! - Added support for verifying on all enabled verification services (e.g. Sourcify) (#7538).Patch Changes
v3.0.9Compare Source
Patch Changes
2cbf218: Fix an issue that prevented the verification of contracts using FQNs (#8014)13918b4: Add support for custom chains not in viem's built-in chain list, thanks @daanporon! (#7763)v3.0.8Compare Source
Patch Changes
6674b00: Bumphardhat-utilsmajorv3.0.7Compare Source
Patch Changes
2bc18b2: Bumpedviemversion across all packages 7861.v3.0.6Compare Source
Patch Changes
dac916b: Expose ignition retry loop variables in user config (Hardhat v3) (#7303)v3.0.5Compare Source
Patch Changes
d1c1803: Make@nomicfoundation/hardhat-ignition's UI work well with other plugins, like Ledger's.v3.0.4Compare Source
Patch Changes
843c1ae: Fixed a bug preventing Ignition from using thehre.config.ignitionsettings when deploying via script (#7641)558ac5b: Update installation and config instructionsv3.0.3Compare Source
Patch Changes
bebf87c: Added support for Linea network verification, thanks @kyzooghost (#7357)v3.0.2Compare Source
Patch Changes
ddefbff: Added guard to stop multiple simultaneous calls toignition.deploy(...)at once (#6440)v3.0.1Compare Source
Patch Changes
86cecc7: Fix the type guard to includem.encodeFunctionCallin those that do not submit transactions, thanks @radik878 (#7264)v3.0.0Compare Source
Major Changes
29cc141: First release of Hardhat 3!NomicFoundation/hardhat (@nomicfoundation/hardhat-toolbox-viem)
v5.0.3Compare Source
Patch Changes
13918b4: Add support for custom chains not in viem's built-in chain list, thanks @daanporon! (#7763)v5.0.2Compare Source
Patch Changes
2bc18b2: Bumpedviemversion across all packages 7861.v5.0.1Compare Source
Patch Changes
558ac5b: Update installation and config instructionsv5.0.0Compare Source
Major Changes
29cc141: First release of Hardhat 3!v4.1.2Compare Source
This release is a small bump to the version of
solidity-coverageto include changes for the Osaka transaction gas limit.Changes
a7e4215: Update solidity-coverage minimum version to include Osaka changesNomicFoundation/hardhat (@nomiclabs/hardhat-solhint)
v5.0.0Compare Source
v4.1.2Compare Source
v4.1.1Compare Source
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - 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.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.