chore(deps): update hardhat packages (major)#211
Conversation
| "@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", |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
| "@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", |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
e780591 to
a855f89
Compare
a855f89 to
1835ea3
Compare
176815c to
e70445e
Compare
e70445e to
5e29af1
Compare
| @@ -39,12 +39,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 incomplete. The configuration in hardhat.config.ts and package.json still uses outdated Hardhat v2 patterns, causing incompatibility.
Severity: CRITICAL | Confidence: High
🔍 Detailed Analysis
The project's dependencies were updated to Hardhat v3, but the configuration was not adapted to its breaking changes. Specifically, Hardhat v3 requires plugins to be configured declaratively in hardhat.config.ts, but the code still uses the old side-effect import style (import "@nomicfoundation/hardhat-toolbox-viem";). Additionally, Hardhat v3 is ESM-first, which requires either renaming the config file to .mts or adding "type": "module" to package.json. Neither of these required changes were made. As a result, any Hardhat task, such as compile or deploy, will fail to load the configuration and crash.
💡 Suggested Fix
Update hardhat.config.ts to use the declarative plugin configuration required by Hardhat v3. Also, enable ESM support by adding "type": "module" to the package.json file to ensure the Hardhat configuration can be correctly parsed.
🤖 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#L40
Potential issue: The project's dependencies were updated to Hardhat v3, but the
configuration was not adapted to its breaking changes. Specifically, Hardhat v3 requires
plugins to be configured declaratively in `hardhat.config.ts`, but the code still uses
the old side-effect import style (`import "@nomicfoundation/hardhat-toolbox-viem";`).
Additionally, Hardhat v3 is ESM-first, which requires either renaming the config file to
`.mts` or adding `"type": "module"` to `package.json`. Neither of these required changes
were made. As a result, any Hardhat task, such as `compile` or `deploy`, will fail to
load the configuration and crash.
Did we get this right? 👍 / 👎 to inform future reviews.
Reference ID: 6982684
04677ef to
2a1d813
Compare
8894971 to
fcce52d
Compare
fcce52d to
63ec25e
Compare
3091bc1 to
245fd99
Compare
245fd99 to
b3bb0fa
Compare
50531c7 to
c0ad68e
Compare
cd82aa1 to
7a1bdca
Compare
7a1bdca to
33a5290
Compare
e4eb842 to
b35e42e
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.
|
56d3dea to
cb58843
Compare
2851226 to
4103289
Compare
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
4103289 to
fbaf004
Compare
This PR contains the following updates:
1.2.0→3.0.20.15.16→3.1.54.1.1→5.0.54.1.0→5.0.02.27.1→3.4.5Release Notes
NomicFoundation/hardhat (@nomicfoundation/hardhat-foundry)
v3.0.2Compare Source
Patch Changes
#8179
d16d82aThanks @alcuadrado! - Await all returned promises for better debuggabilityUpdated dependencies:
v3.0.1Compare Source
Patch Changes
#8096
7fb721bThanks @alcuadrado! - [chore] Move to packages/ folder.Updated dependencies:
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.5Compare Source
Patch Changes
2a4ae8eThanks @alcuadrado! - Update how type extensions are handled to optimize the bootstrap process of Hardhat.v3.1.4Compare Source
Patch Changes
24a76b5Thanks @schaable! - Speed up non-Ignition workflows by deferring Ignition loading until the first deploy.v3.1.3Compare Source
Patch Changes
d16d82aThanks @alcuadrado! - Await all returned promises for better debuggabilityv3.1.2Compare Source
Patch Changes
#8104
e27a7adThanks @ChristopherDedominici! - Use code 3 for JSON-RPC revert error codes to align with standard node behavior and preserve error causes in viem/ethers.#6763
f65cdc3Thanks @zoeyTM! - Fixed Hardhat Ignition + Ledger UI interactions by integrating Hardhat 3's user interruptions flow with Hardhat Ignition's UI (#6682)#8096
7fb721bThanks @alcuadrado! - [chore] Move to packages/ folder.#8116
88787e1Thanks @kanej! - Deprecate thehre.network.connect()method in favour ofhre.network.create(), exactly the same method but more clearly indicating that it will create a new connection.Updated dependencies:
v3.1.1Compare Source
Patch 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.5Compare Source
Patch Changes
2a4ae8eThanks @alcuadrado! - Update how type extensions are handled to optimize the bootstrap process of Hardhat.v5.0.4Compare Source
Patch Changes
#8104
e27a7adThanks @ChristopherDedominici! - Use code 3 for JSON-RPC revert error codes to align with standard node behavior and preserve error causes in viem/ethers.#8096
7fb721bThanks @alcuadrado! - [chore] Move to packages/ folder.#8116
88787e1Thanks @kanej! - Deprecate thehre.network.connect()method in favour ofhre.network.create(), exactly the same method but more clearly indicating that it will create a new connection.Updated dependencies:
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
NomicFoundation/hardhat (hardhat)
v3.4.5Compare Source
Patch Changes
#8253
4aeed16Thanks @schaable! - Fix compilation artifacts accidentally being deleted when their path contains an intermediate directory whose name ends in.sol.#8191
2a4ae8eThanks @alcuadrado! - Update how type extensions are handled to optimize the bootstrap process of Hardhat.#8190
2443073Thanks @anaPerezGhiglia! - Bump EDR version to0.12.0-next.32.#8228
417bbf9Thanks @alcuadrado! - Small performance optimizations#8229
a4d106eThanks @schaable! - AddisolateandevmVersionto the Solidity test inline configuration.Updated dependencies:
v3.4.4Compare Source
Patch Changes
#8213
448da88Thanks @kanej! - Reduced internal memory usage during coverage test runs (#8213)#8197
d3cb008Thanks @alcuadrado! - Update the error reporting logic to reduce noisev3.4.3Compare Source
Patch Changes
#8196
b669814Thanks @alcuadrado! - Improve error messages in common failures#8196
73436aaThanks @alcuadrado! - Export missing error types#8195
79205ccThanks @ChristopherDedominici! - Replacechalkwithutil.styleText.#8224
3614c02Thanks @schaable! - Add afuzz.showLogsoption to the Solidity test config to displayconsole.logoutput from fuzz tests.#8218
32f2b59Thanks @alcuadrado! - Fixhardhat test solidity --no-compilefailing withSELECTED_TEST_FILES_NOT_COMPILEDwhen no test files are specified.#8139
536b745Thanks @anaPerezGhiglia! - Bumped EDR version to0.12.0-next.31#8199
2cb91f1Thanks @alcuadrado! - Add LPT scheduling to the Solidity build system#8219
2cad309Thanks @schaable! - Improved performance by replacing the semver dependency with a lightweight in-tree implementation.#8207
d594209Thanks @alcuadrado! - Improved performance by replacing the debug logging library with a lightweight in-tree implementation.#8189
b5ca1aeThanks @alcuadrado! - Introduce a TrueCasePathResolver class to optimize repeated filesystem casing resolutionUpdated dependencies:
v3.4.2Compare Source
Patch Changes
#8177
7cab964Thanks @alcuadrado! - Optimize theHookManagerand thecoverageplugin#8187
8f6a418Thanks @ChristopherDedominici! - Improved the logic for handlingNode.jsversions that fall below the minimum requirement.#8183
88f8d59Thanks @schaable! - Speed up startup by loading the coverage manager only when --coverage is set.#8183
82208baThanks @schaable! - Speed up HRE creation by loading user-interruption support only when it's first used.#8175
eeea0aaThanks @ChristopherDedominici! - Restructure the imports of the network-manager.#8183
baa9c9aThanks @schaable! - Speed up startup by loading the gas-analytics manager only when --gas-stats or --gas-stats-json is set.#8180
4122faaThanks @alcuadrado! - Optimize file system traversal helpersUpdated dependencies:
v3.4.1Compare Source
Patch Changes
#8142
a997091Thanks @ChristopherDedominici! - Makenode:testsequential by default and run test files in the same process (isolation: "none").#8173
1a01f9bThanks @alcuadrado! - Improve error reporter#8176
13e46b2Thanks @kanej! - Fixed compilation error check to ignore ambiguous warnings (#8176)#8179
d16d82aThanks @alcuadrado! - Await all returned promises for better debuggabilityUpdated dependencies:
v3.4.0Compare Source
Minor Changes
#8116
88787e1Thanks @kanej! - AddgetOrCreateto the network API#8127
353cf86Thanks @alcuadrado! - Make the split of contracts and solidity tests compilation optional, and controlled with a newsplitTestsCompilationconfig field.Patch Changes
#8105
00e9695Thanks @marianfe! - Add Solidity 0.8.34 to the default EVM targets table (osaka) (#8105)#8108
5404ac8Thanks @schaable! - Display contract runtime bytecode size in the gas stats table and JSON output#8104
e27a7adThanks @ChristopherDedominici! - Use code 3 for JSON-RPC revert error codes to align with standard node behavior and preserve error causes in viem/ethers.#8103
14b335aThanks @kanej! - Improved network handler performance through additional metadata to allow early skipping (#8103)#8148
49ec5d0Thanks @alcuadrado! - Don't report HardhatErrors that aren't bugs#8102
d5f8394Thanks @kanej! - Improved performance of network handler initialization (#8102)#8141
63c68c1Thanks @ChristopherDedominici! - Added support for EDR structured Solidity test cheatcode errors.#8123
cf3933bThanks @alcuadrado! - Add atoolVersionsInBuildInfosetting to the Solidity config, which istrueby default in theproductionbuild profile. When enabled, the version of Hardhat is included in the Build Info files.NOTE: This change can lead to build info ids changing despite the compilation output's bytecodes being identical, especially when using the
productionbuild profile.#8143
f74cec9Thanks @ChristopherDedominici! - Update.gitignorefiles in the sample projects to ignore snapshots and env files.#8096
7fb721bThanks @alcuadrado! - [chore] Move to packages/ folder.#8116
88787e1Thanks @kanej! - Deprecate thehre.network.connect()method in favour ofhre.network.create(), exactly the same method but more clearly indicating that it will create a new connection.#8119
ff5a97eThanks @schaable! - Show proxy chain information in --gas-stats and --gas-stats-json output#8114
6eeb144Thanks @ChristopherDedominici! - Updated forking configurations to support number and bigint.#8121
0f1038cThanks @alcuadrado! - Update the default outputSelection setting of solc to decrease the artifacts size.NOTE: This change can lead to build info ids changing, despite compilation output's bytecodes being identical.
#8122
edfa548Thanks @alcuadrado! - Optimizehre.artifacts.artifactExists()#8115
935a043Thanks @ChristopherDedominici! - Breaking change: removedtimeoutoption for Solidity tests inhardhat.config.tsfile.#8120
688870cThanks @alcuadrado! - Fix remappings duplicationUpdated dependencies:
v3.3.0Compare Source
Minor Changes
dfe4ffeThanks @schaable! - Add support for per-test inline configuration in solidity tests.Patch Changes
#8008
6fb3c27Thanks @marianfe! - Introduce multi-compiler abstraction that allows plugins to define new Solidity compiler types (#8008).#8077
4581395Thanks @alcuadrado! - Optimize the initialization of EDR Network Connections by caching their genesis state.#7983
8e194d0Thanks @ChristopherDedominici! - Added--verbosity(and-v,-vv, and the other shorthands) to all tasks, including TypeScript tests (7983), (7963).#8077
4581395Thanks @alcuadrado! - Fix a bug wherenetwork.connect()re-resolved the config when not needed.#8009
83b412eThanks @marianfe! - AddSolidityHooks#downloadCompilersandSolidityHooks#getCompilerhooks for extensible custom compiler support (#8009)#8091
c89cb91Thanks @kanej! - Improved performance of the network stack by removing a clone of the http request (#8046)#8088
23c0d36Thanks @alcuadrado! - Optimize imports.#8074
8984862Thanks @alcuadrado! - Optimize the initialization of EDR Network Connections by only processing the build outputs once.#8082
72a033dThanks @popescuoctavian! - Bumped EDR version to0.12.0-next.29#8008
57d1075Thanks @marianfe! - Introduce theConfigHooks#validateResolvedConfighook and theHardhatConfigValidationErrortype to be able to run global validations on the resolved config (#8008).#8079
759983bThanks @alcuadrado! - Optimize the network connections to prevent memory leaks.Updated dependencies:
v3.2.0Compare Source
Minor Changes
392fc38Thanks @schaable! - Add--gas-stats-json <path>global option to write gas usage statistics to a JSON file (#7990).Patch Changes
#8061
c03f647Thanks @ChristopherDedominici! - Fixed bug to preserve revert data in JSON-RPC responses for non-ProviderErrors (8061).#8060
4461d1eThanks @kanej! - Updatednetwork.createServersignature to type non-generic chainTypes#8038
465d00dThanks @schaable! - Aggregate deployment gas statistics (min, avg, median, max, count) instead of showing only the last deployment cost and size (#8037)#8060
0e8abcfThanks @kanej! - Added guard againsthttpnetwork configs innetwork.createServer(...)#8036
954825aThanks @schaable! - Aggregate--gas-statsoutput when using multiple test runners, printing a single consolidated table at the end instead of separate tables per runner (#7500).#8062
45963d4Thanks @ChristopherDedominici! - Fixed compiler download for old versions in ARM64 (8062).Updated dependencies:
v3.1.12Compare Source
Patch Changes
01b41ee: Added support for function gas snapshots and snapshot cheatcodes in Solidity tests with--snapshotand--snapshot-checkflags (#7769)e37f96c: AddTestRunResulttype that wrapsTestSummary, allowing plugins to extend test results with additional databda5a0a: Bumped EDR version to0.12.0-next.28v3.1.11Compare Source
Patch Changes
2cbf218: Bumped EDR version to0.12.0-next.27BREAKING CHANGE: Memory capture used to be enabled by default on geth, but has since been flipped ethereum/go-ethereum#23558 and is now disabled by default. We have followed suit and disabled it by default as well. If you were relying on memory capture, you will need to explicitly enable it by setting the
enableMemoryoption to true in your tracer configuration.bc193be: Use concrete value types for contract names in hardhat-viem and hardhat-ethers2cbf218: Make SolidityBuildSystem easier to work with (#7988)19b691d: Fix typo in assertion message #80282cbf218: ExposeResulttype for task action success/failure signaling.2cbf218: Fixed the acceptance of relative paths tonode_modulesin npm remappings (#8007)2cbf218: Implement a global banner logic in Hardhat 3 #80214ff11c1: Return typedResultfrom test runners and telemetry tasks (#8015).2cbf218: Show fs paths and better error messages when a Solidity file can't be compiled with any configured compiler (#7988)2cbf218: AddonTestRunStart,onTestWorkerDone, andonTestRunDonetest hooks (#8001)v3.1.10Compare Source
Patch Changes
ca26adb: Updatehardhat nodeto always use the newnodenetwork (#7989)[#7989]87623db: Introduce new inter-process mutex implementation (7942).88e9cb5: Add aSolidityHooks#readNpmPackageRemappingshookec03a01: Allow overriding the type of the network configsdefaultandlocalhost#78052c2e1f5: Throw better error messages when trying to use a Hardhat 2 plugin with Hardhat 3 #7991.90b5eec: Suggest installing hardhat-foundry when appropriate87623db: Make the solc downloader safe when run by multiple processes (7946).726ff37: Update the--coveragetable output to match the style used by `-Configuration
📅 Schedule: (UTC)
🚦 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.