Update dependency hardhat to v3#468
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
cbd9eb3 to
0e9ccd4
Compare
0e9ccd4 to
33fb685
Compare
c9fa39a to
e28323e
Compare
e28323e to
9086b49
Compare
9086b49 to
ee121d9
Compare
93611eb to
20bfc00
Compare
4c8d1bb to
99b1e61
Compare
72a5921 to
1e9e224
Compare
3360d06 to
71d1ef2
Compare
0e2505f to
25e5489
Compare
25e5489 to
ad440b1
Compare
9b38d6b to
38af324
Compare
6882a99 to
91d1ad4
Compare
91d1ad4 to
e3a22fe
Compare
0861ebc to
70d08e0
Compare
b0c3044 to
2ac48d4
Compare
fc24362 to
4abee37
Compare
d890bc9 to
5031f78
Compare
9c63923 to
92c7c69
Compare
92c7c69 to
3705ae4
Compare
3705ae4 to
5d47678
Compare
791ddc9 to
bb64b9c
Compare
8a383e4 to
d53a359
Compare
d53a359 to
801facd
Compare
2643c1c to
00e5c2b
Compare
5f2aa09 to
73e7fd9
Compare
73e7fd9 to
b7baebb
Compare
b7baebb to
3ea0e10
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.8.0→^3.0.0Release Notes
NomicFoundation/hardhat (hardhat)
v3.9.0Compare Source
Minor Changes
0fd498dThanks @kanej! - Added support forcoverage.skipFiles, a list of globs of Solidity files to exclude from coverage instrumentation and reporting during a--coveragerun.Patch Changes
#8383
1660f1eThanks @schaable! - Fixed an intermittent "Provider for provided chain type does not exist" error that could occur when multiple network connections were created concurrently.#8371
287620eThanks @gultekinmakif! - Account overrides that share an address with the network's built-in genesis accounts are now correctly merged into a single genesis entry.#8375
931a5f0Thanks @schaable! - Suppressed the solc initcode size warning for Solidity test contracts and when running under--coverage.#8372
5f6aff2Thanks @gultekinmakif! - Improved validation forinitialDatenetwork configuration. InvalidDateobjects and unparseable datestrings are now rejected during config loading rather than causing a runtime error later.v3.8.0Compare Source
Minor Changes
#8339
f21390fThanks @alcuadrado! - AddeddefinePlugin, a new helper exported fromhardhat/plugins. Plugin authors should wrap their plugin literal with it so the default export of theirindexmodule becomes:definePluginreturns its argument unchanged and, as a side effect, registers the plugin's id in a process-wide registry of loaded plugins. Hardhat's CLI uses that registry to warn when a plugin is imported but missing from the user'spluginsarray.#8339
19c6927Thanks @alcuadrado! - Hardhat now warns when a plugin is imported in your Hardhat config file but missing from thepluginsarray. The warning is printed to stderr after the runtime environment is created, listing the offending plugins and pointing the user at the fix.If your Hardhat config file is written in TypeScript, for the warning to be reliable your project's
tsconfig.jsonmust enableverbatimModuleSyntax: true. Without it, TypeScript deletes unused default-value imports, so an unused plugin can't be detected.Patch Changes
#8336
86bfe66Thanks @Wodann! - - Fixed default gas limit of Solidity test runner when a custom transaction gas cap (EIP-7825) or block gas limit is specified#8345
9d5b96cThanks @alcuadrado! - Add.solidityStackproperty to theSolidityErrorexceptions generated by EDR#8365
dbb689bThanks @kanej! - Suppress the solc contract size warning for Solidity test files.#8368
2e2ba99Thanks @kanej! - Fixed thebuildtask attempting to download a compiler even though apathto a local compiler is configured.#8339
25cea9fThanks @alcuadrado! - The sample projects initialized withhardhat --initnow setverbatimModuleSyntax: truein theirtsconfig.json. This ensures that plugin imports inhardhat.config.tsare actually evaluated at runtime, which is required for the new "imported but unused plugin" warning to work reliably.Updated dependencies:
v3.7.0Compare Source
Minor Changes
ce430acThanks @tenderdeve! - Hardhat 3 is now stable, the "Beta" wording is being dropped from thehardhat --initprocess and project templates.v3.6.0Compare Source
Minor Changes
#8327
dee44f6Thanks @alcuadrado! - Add acleanupArtifactsoption toSolidityBuildSystem#build. Whentrue, the build system runscleanupArtifactsagainst the build's root file paths after a successful build, deleting orphan artifacts and unreachable build-info files for the scope.#8327
dee44f6Thanks @alcuadrado! - Deprecate the followingSolidityHooks:getCompiler,onCleanUpArtifacts,preprocessProjectFileBeforeBuilding,preprocessSolcInputBeforeBuilding,readSourceFile,invokeSolc, andreadNpmPackageRemappings. They will be removed in a future release.Use
processArtifactsAfterSuccessfulBuildinstead ofonCleanUpArtifacts, andgetCompilationJobErrorsinstead ofinvokeSolc.#8327
dee44f6Thanks @alcuadrado! - AddSolidityHooks#getCompilationJobErrorshook, which lets plugins process the compiler output errors of a compilation job before they are reported to the user.#8327
dee44f6Thanks @alcuadrado! - AddSolidityHooks#processArtifactsAfterSuccessfulBuildhook to let plugins post-process the artifacts. The hook receives the resolved build options as a new exportedResolvedBuildOptionstype.Patch Changes
#8327
dee44f6Thanks @alcuadrado! -SolidityBuildSystem#cleanupArtifactsnow returns the list of artifact paths that remain after the cleanup.#8335
a4bf547Thanks @gultekinmakif! - Allow STRING_WITHOUT_DEFAULT and FILE_WITHOUT_DEFAULT as positional arguments#8326
959f2e1Thanks @kanej! - Fixedhardhat flattensilently producing a misleading output for projects with cyclic Solidity dependencies.#8262
d3ba170Thanks @fvictorio! - Add AGENTS.md and agentic skills to sample projectsUpdated dependencies:
v3.5.1Compare Source
Patch Changes
#8316
971a135Thanks @alcuadrado! - Fixhardhat --initwhen used with pnpm 11#8302
fb99caaThanks @ChristopherDedominici! - Suppress solc warnings that are direct side effects of--coverageinstrumentation.#8315
90650fdThanks @schaable! - Improved error messages for common migration errors.v3.5.0Compare Source
Minor Changes
#8301
793cc84Thanks @kanej! - Disable transaction gas cap and block gas limit when running tests under--coverage.#8270
cf2823bThanks @schaable! - Solidity test configuration now also accepts{ profiles: { default: ... } }. Only thedefaultprofile is currently supported, other profile names will be supported in a future release. The previous flat shape continues to work unchanged.The resolved
HardhatConfig.test.solidityis now profile-keyed: read per-profile fields athre.config.test.solidity.profiles.default.*instead ofhre.config.test.solidity.*. Plugins that read the resolved Solidity test config need to be updated.Patch Changes
#8298
83b1ae1Thanks @Wodann! - - Fixed a bug when using a test filter where thesetUpfunction would be run for empty test suitesvm.prankcheatcode#8264
8452f97Thanks @alcuadrado! - Export./package.jsonso consumers can import the package's manifest.#8310
9f394ecThanks @js360000! - Fix JSON-RPCerror.datashape for revert errors (code 3): return the raw revert hex string directly instead of a{ message, txHash, data }wrapper object. This matches the geth/anvil/EVM-node convention that client tooling (viem, ethers, web3.js) relies on when decoding custom errors. Closes #8075.#8269
045cb8dThanks @alcuadrado! - Always load the builtin plugins' type extensions#8243
08805dbThanks @ChristopherDedominici! - Support EIP-712 cheatcodes in Solidity Test.#8301
793cc84Thanks @kanej! - Respect user config forallowUnlimitedContractSizewhen running under--coverage.#8259
1d1204fThanks @kanej! - Fixed build overrides not being respected when runningcompile#8188
d48bbfdThanks @alcuadrado! - Add--init --template <template-name>to initialize projects in a non-interactive way. Also add--init --templatesto get the list of template names.#8290
3a15b11Thanks @gultekinmakif! - Fixedabstractcontracts being picked up as test suites by the Solidity test runner (#8203).#8266
325bae1Thanks @schaable! - Sanitized snapshot cheatcode group names to avoid issues when persisting them to disk. A warning is shown when a group is renamed suggesting the user to update their snapshot group names to match the on-disk names.#8312
76c15ffThanks @alcuadrado! - Update the Hardhat 3 TypeScript project templates for TypeScript 6.Updated dependencies:
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--gas-stats. Thanks @jose-blockchain! (#7733)f1e9b05: Added support forinline actionsin tasks 7851.73cb725: ExposegasLimitconfiguration for Solidity tests #7996v3.1.9Compare Source
Patch Changes
621d07e: Make the coverage work with versions of Solidity that aren't fully supported by EDR #79823e39a06: Round average and median gas usage in the gas analytics output78af2ed: Allow multiple parallel downloads of different compilers (7946).v3.1.8Compare Source
Patch Changes
a6947fb: Use the official Linux ARM64 builds of solc in theproductionprofile when available (#7917).fd42744: Fixed missing EIP-7212 precompile in Solidity Tests (#7872).v3.1.7Compare Source
Patch Changes
4995121: Suppressed pragma and license warnings in Solidity test files (7894).22adbcb: Added support foreth_getProof(3345).v3.1.6Compare Source
Patch Changes
98fbf44: ImplementedSolidityBuildSystemImplementation#compileBuildInfo(#7891)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.
🔕 Ignore: Close this PR and you won't be reminded about these updates again.
This PR was generated by Mend Renovate. View the repository job log.