diff --git a/.changeset/calm-clouds-work.md b/.changeset/calm-clouds-work.md index b9217f3d6d..b988f88e25 100644 --- a/.changeset/calm-clouds-work.md +++ b/.changeset/calm-clouds-work.md @@ -3,4 +3,4 @@ "hardhat": patch --- -Replaced the hook for emitting compiled artifacts and updated its usage in the `hardhat-typechain` plugin. +Don't generate `hardhat-typechain` types for Solidity test files ([#6392](https://github.com/NomicFoundation/hardhat/issues/6392)) diff --git a/.changeset/giant-chairs-drop.md b/.changeset/giant-chairs-drop.md index eeaa42ca78..bd516fa2cd 100644 --- a/.changeset/giant-chairs-drop.md +++ b/.changeset/giant-chairs-drop.md @@ -2,4 +2,4 @@ "hardhat": patch --- -fix: We generate stack traces for failing Solidity tests by re-executing them for performance reasons. This fix ensures that we don't generate stack traces if EVM execution is indeterministic. Indeterminism can be caused by forking from the latest block number or by using impure cheatcodes. +Fix to ensure we don't generate stack traces if EVM execution is indeterministic. diff --git a/.changeset/little-laws-shop.md b/.changeset/little-laws-shop.md deleted file mode 100644 index 110fa65d89..0000000000 --- a/.changeset/little-laws-shop.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"hardhat": patch ---- - -Upgrade sentry from 5.x to 9.x diff --git a/.changeset/long-toes-deny.md b/.changeset/long-toes-deny.md index 448c503e67..4743ca3272 100644 --- a/.changeset/long-toes-deny.md +++ b/.changeset/long-toes-deny.md @@ -2,4 +2,4 @@ "hardhat": patch --- -Use default value for rpcCachePath when running solidity tests +Speed up Solidity Tests when forking by setting an rpc cache path ([#6459](https://github.com/NomicFoundation/hardhat/issues/6459)) diff --git a/.changeset/polite-crabs-relax.md b/.changeset/polite-crabs-relax.md index 73ea02d5c3..4237e8e7a0 100644 --- a/.changeset/polite-crabs-relax.md +++ b/.changeset/polite-crabs-relax.md @@ -3,4 +3,4 @@ "hardhat": patch --- -Added a mutex to synchronize compiler list downloads +Fixed errors in compiler list downloads with a synchronization mutex ([#6437](https://github.com/NomicFoundation/hardhat/issues/6437)) diff --git a/.changeset/pre.json b/.changeset/pre.json index 9cb62fa53f..3e935e04f2 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -31,16 +31,22 @@ "@nomicfoundation/example-project": "3.0.1" }, "changesets": [ + "calm-clouds-work", "cool-waves-wonder", "early-wolves-move", "eighty-clouds-act", + "giant-chairs-drop", + "long-toes-deny", "many-wombats-grin", "neat-frogs-punch", "olive-lobsters-carry", + "polite-crabs-relax", + "release-3.0.0-next.2", "selfish-worms-remain", "short-beans-rest", "short-zoos-arrive", "slow-lobsters-watch", + "small-buckets-ring", "strong-mugs-change" ] } diff --git a/.changeset/release-3.0.0-next.2.md b/.changeset/release-3.0.0-next.2.md new file mode 100644 index 0000000000..19ac923f92 --- /dev/null +++ b/.changeset/release-3.0.0-next.2.md @@ -0,0 +1,22 @@ +--- +"@nomicfoundation/hardhat-errors": patch +"@nomicfoundation/hardhat-ethers": patch +"@nomicfoundation/hardhat-ethers-chai-matchers": patch +"@nomicfoundation/hardhat-ignition": patch +"@nomicfoundation/hardhat-ignition-ethers": patch +"@nomicfoundation/hardhat-ignition-viem": patch +"@nomicfoundation/hardhat-keystore": patch +"@nomicfoundation/hardhat-mocha": patch +"@nomicfoundation/hardhat-network-helpers": patch +"@nomicfoundation/hardhat-node-test-reporter": patch +"@nomicfoundation/hardhat-node-test-runner": patch +"@nomicfoundation/hardhat-test-utils": patch +"@nomicfoundation/hardhat-typechain": patch +"@nomicfoundation/hardhat-utils": patch +"@nomicfoundation/hardhat-viem": patch +"@nomicfoundation/hardhat-zod-utils": patch +"@nomicfoundation/ignition-core": patch +"@nomicfoundation/ignition-ui": patch +--- + +Hardhat 3 Alpha release (2025-03-20T08:38:27.809Z) diff --git a/.changeset/small-buckets-ring.md b/.changeset/small-buckets-ring.md index 8d9bc37139..c6602183a0 100644 --- a/.changeset/small-buckets-ring.md +++ b/.changeset/small-buckets-ring.md @@ -1,5 +1,6 @@ --- "@nomicfoundation/hardhat-typechain": patch +"hardhat": patch --- -Added support for the `attach` method in `hardhat-typechain`. +Added support for the `attach` method in `hardhat-typechain` ([#6315](https://github.com/NomicFoundation/hardhat/issues/6315)) diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c1fb69fd4a..8d2831ab14 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,40 +18,40 @@ importers: v-next/example-project: devDependencies: '@nomicfoundation/hardhat-errors': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-errors '@nomicfoundation/hardhat-ethers': - specifier: workspace:^4.0.0-next.1 + specifier: workspace:^4.0.0-next.2 version: link:../hardhat-ethers '@nomicfoundation/hardhat-ethers-chai-matchers': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-ethers-chai-matchers '@nomicfoundation/hardhat-ignition': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-ignition '@nomicfoundation/hardhat-ignition-viem': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-ignition-viem '@nomicfoundation/hardhat-keystore': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-keystore '@nomicfoundation/hardhat-mocha': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-mocha '@nomicfoundation/hardhat-network-helpers': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-network-helpers '@nomicfoundation/hardhat-node-test-runner': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-node-test-runner '@nomicfoundation/hardhat-typechain': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-typechain '@nomicfoundation/hardhat-viem': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-viem '@nomicfoundation/ignition-core': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-ignition-core '@openzeppelin/contracts': specifier: 5.1.0 @@ -75,7 +75,7 @@ importers: specifier: foundry-rs/forge-std#v1.9.4 version: https://codeload.github.com/foundry-rs/forge-std/tar.gz/1eea5bae12ae557d589f9f0f0edae2faa47cb262 hardhat: - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat mocha: specifier: ^11.0.0 @@ -102,13 +102,13 @@ importers: specifier: 0.6.5-alpha.3 version: 0.6.5-alpha.3 '@nomicfoundation/hardhat-errors': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-errors '@nomicfoundation/hardhat-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-utils '@nomicfoundation/hardhat-zod-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-zod-utils '@nomicfoundation/solidity-analyzer': specifier: ^0.1.1 @@ -160,7 +160,7 @@ importers: specifier: ^4.3.0 version: 4.4.1(eslint@8.57.0) '@nomicfoundation/hardhat-node-test-reporter': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-node-test-reporter '@nomicfoundation/hardhat-test-utils': specifier: workspace:^ @@ -223,14 +223,14 @@ importers: v-next/hardhat-errors: dependencies: '@nomicfoundation/hardhat-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-utils devDependencies: '@eslint-community/eslint-plugin-eslint-comments': specifier: ^4.3.0 version: 4.4.1(eslint@8.57.0) '@nomicfoundation/hardhat-node-test-reporter': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-node-test-reporter '@types/node': specifier: ^20.14.9 @@ -281,10 +281,10 @@ importers: v-next/hardhat-ethers: dependencies: '@nomicfoundation/hardhat-errors': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-errors '@nomicfoundation/hardhat-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-utils debug: specifier: ^4.3.2 @@ -293,14 +293,14 @@ importers: specifier: ^6.13.4 version: 6.13.5 hardhat: - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat devDependencies: '@eslint-community/eslint-plugin-eslint-comments': specifier: ^4.3.0 version: 4.4.1(eslint@8.57.0) '@nomicfoundation/hardhat-node-test-reporter': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-node-test-reporter '@nomicfoundation/hardhat-test-utils': specifier: workspace:^ @@ -357,13 +357,13 @@ importers: v-next/hardhat-ethers-chai-matchers: dependencies: '@nomicfoundation/hardhat-errors': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-errors '@nomicfoundation/hardhat-ethers': - specifier: workspace:^4.0.0-next.1 + specifier: workspace:^4.0.0-next.2 version: link:../hardhat-ethers '@nomicfoundation/hardhat-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-utils '@types/chai-as-promised': specifier: ^8.0.1 @@ -381,17 +381,17 @@ importers: specifier: ^6.13.4 version: 6.13.5 hardhat: - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat devDependencies: '@eslint-community/eslint-plugin-eslint-comments': specifier: ^4.3.0 version: 4.4.1(eslint@8.57.0) '@nomicfoundation/hardhat-mocha': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-mocha '@nomicfoundation/hardhat-node-test-reporter': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-node-test-reporter '@nomicfoundation/hardhat-test-utils': specifier: workspace:^ @@ -460,16 +460,16 @@ importers: v-next/hardhat-ignition: dependencies: '@nomicfoundation/hardhat-errors': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-errors '@nomicfoundation/hardhat-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-utils '@nomicfoundation/ignition-core': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-ignition-core '@nomicfoundation/ignition-ui': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-ignition-ui chalk: specifier: ^5.3.0 @@ -488,7 +488,7 @@ importers: specifier: 1.0.2 version: 1.0.2(nyc@15.1.0) '@nomicfoundation/hardhat-network-helpers': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-network-helpers '@types/chai': specifier: ^4.2.0 @@ -548,7 +548,7 @@ importers: specifier: 4.0.0 version: 4.0.0(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.2.5) hardhat: - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat mocha: specifier: ^11.0.0 @@ -584,7 +584,7 @@ importers: specifier: 5.6.1 version: 5.6.1 '@nomicfoundation/hardhat-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-utils '@nomicfoundation/solidity-analyzer': specifier: ^0.1.1 @@ -696,23 +696,23 @@ importers: v-next/hardhat-ignition-ethers: dependencies: '@nomicfoundation/hardhat-errors': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-errors devDependencies: '@istanbuljs/nyc-config-typescript': specifier: 1.0.2 version: 1.0.2(nyc@15.1.0) '@nomicfoundation/hardhat-ethers': - specifier: workspace:^4.0.0-next.1 + specifier: workspace:^4.0.0-next.2 version: link:../hardhat-ethers '@nomicfoundation/hardhat-ignition': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-ignition '@nomicfoundation/hardhat-test-utils': specifier: workspace:^ version: link:../hardhat-test-utils '@nomicfoundation/ignition-core': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-ignition-core '@types/chai': specifier: ^4.2.0 @@ -766,7 +766,7 @@ importers: specifier: ^6.13.4 version: 6.13.5 hardhat: - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat mocha: specifier: ^11.0.0 @@ -802,7 +802,7 @@ importers: specifier: ^5.0.8 version: 5.1.1 '@nomicfoundation/ignition-core': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-ignition-core '@types/chai': specifier: ^4.2.0 @@ -904,23 +904,23 @@ importers: v-next/hardhat-ignition-viem: dependencies: '@nomicfoundation/hardhat-errors': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-errors devDependencies: '@istanbuljs/nyc-config-typescript': specifier: 1.0.2 version: 1.0.2(nyc@15.1.0) '@nomicfoundation/hardhat-ignition': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-ignition '@nomicfoundation/hardhat-test-utils': specifier: workspace:^ version: link:../hardhat-test-utils '@nomicfoundation/hardhat-viem': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-viem '@nomicfoundation/ignition-core': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-ignition-core '@types/chai': specifier: ^4.2.0 @@ -971,7 +971,7 @@ importers: specifier: 3.1.0 version: 3.1.0 hardhat: - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat mocha: specifier: ^11.0.0 @@ -1010,13 +1010,13 @@ importers: specifier: 1.7.1 version: 1.7.1 '@nomicfoundation/hardhat-errors': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-errors '@nomicfoundation/hardhat-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-utils '@nomicfoundation/hardhat-zod-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-zod-utils chalk: specifier: ^5.3.0 @@ -1025,7 +1025,7 @@ importers: specifier: ^4.3.2 version: 4.4.0(supports-color@5.5.0) hardhat: - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat zod: specifier: ^3.23.8 @@ -1035,7 +1035,7 @@ importers: specifier: ^4.3.0 version: 4.4.1(eslint@8.57.0) '@nomicfoundation/hardhat-node-test-reporter': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-node-test-reporter '@nomicfoundation/hardhat-test-utils': specifier: workspace:^ @@ -1092,16 +1092,16 @@ importers: v-next/hardhat-mocha: dependencies: '@nomicfoundation/hardhat-errors': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-errors '@nomicfoundation/hardhat-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-utils '@nomicfoundation/hardhat-zod-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-zod-utils hardhat: - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat mocha: specifier: ^11.0.0 @@ -1117,7 +1117,7 @@ importers: specifier: ^4.3.0 version: 4.4.1(eslint@8.57.0) '@nomicfoundation/hardhat-node-test-reporter': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-node-test-reporter '@nomicfoundation/hardhat-test-utils': specifier: workspace:^ @@ -1171,20 +1171,20 @@ importers: v-next/hardhat-network-helpers: dependencies: '@nomicfoundation/hardhat-errors': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-errors '@nomicfoundation/hardhat-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-utils hardhat: - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat devDependencies: '@eslint-community/eslint-plugin-eslint-comments': specifier: ^4.3.0 version: 4.4.1(eslint@8.57.0) '@nomicfoundation/hardhat-node-test-reporter': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-node-test-reporter '@nomicfoundation/hardhat-test-utils': specifier: workspace:^ @@ -1299,19 +1299,19 @@ importers: v-next/hardhat-node-test-runner: dependencies: '@nomicfoundation/hardhat-errors': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-errors '@nomicfoundation/hardhat-node-test-reporter': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-node-test-reporter '@nomicfoundation/hardhat-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-utils '@nomicfoundation/hardhat-zod-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-zod-utils hardhat: - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat tsx: specifier: ^4.19.3 @@ -1372,17 +1372,17 @@ importers: v-next/hardhat-test-utils: dependencies: '@nomicfoundation/hardhat-errors': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-errors '@nomicfoundation/hardhat-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-utils devDependencies: '@eslint-community/eslint-plugin-eslint-comments': specifier: ^4.3.0 version: 4.4.1(eslint@8.57.0) '@nomicfoundation/hardhat-node-test-reporter': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-node-test-reporter '@types/node': specifier: ^20.14.9 @@ -1433,16 +1433,16 @@ importers: v-next/hardhat-typechain: dependencies: '@nomicfoundation/hardhat-errors': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-errors '@nomicfoundation/hardhat-ethers': - specifier: workspace:^4.0.0-next.1 + specifier: workspace:^4.0.0-next.2 version: link:../hardhat-ethers '@nomicfoundation/hardhat-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-utils '@nomicfoundation/hardhat-zod-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-zod-utils '@typechain/ethers-v6': specifier: ^0.5.0 @@ -1454,7 +1454,7 @@ importers: specifier: ^6.13.4 version: 6.13.5 hardhat: - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat typechain: specifier: ^8.3.1 @@ -1467,7 +1467,7 @@ importers: specifier: ^4.3.0 version: 4.4.1(eslint@8.57.0) '@nomicfoundation/hardhat-node-test-reporter': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-node-test-reporter '@nomicfoundation/hardhat-test-utils': specifier: workspace:^ @@ -1546,7 +1546,7 @@ importers: specifier: ^4.3.0 version: 4.4.1(eslint@8.57.0) '@nomicfoundation/hardhat-node-test-reporter': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-node-test-reporter '@types/bn.js': specifier: ^5.1.5 @@ -1603,20 +1603,20 @@ importers: v-next/hardhat-viem: dependencies: '@nomicfoundation/hardhat-errors': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-errors '@nomicfoundation/hardhat-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-utils hardhat: - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat devDependencies: '@eslint-community/eslint-plugin-eslint-comments': specifier: ^4.3.0 version: 4.4.1(eslint@8.57.0) '@nomicfoundation/hardhat-node-test-reporter': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-node-test-reporter '@nomicfoundation/hardhat-test-utils': specifier: workspace:^ @@ -1673,14 +1673,14 @@ importers: v-next/hardhat-zod-utils: dependencies: '@nomicfoundation/hardhat-utils': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-utils devDependencies: '@eslint-community/eslint-plugin-eslint-comments': specifier: ^4.3.0 version: 4.4.1(eslint@8.57.0) '@nomicfoundation/hardhat-node-test-reporter': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-node-test-reporter '@nomicfoundation/hardhat-test-utils': specifier: workspace:^ @@ -1737,22 +1737,22 @@ importers: v-next/hardhat/templates/01-node-test-runner-viem: devDependencies: '@nomicfoundation/hardhat-ignition': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../../../hardhat-ignition '@nomicfoundation/hardhat-ignition-viem': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../../../hardhat-ignition-viem '@nomicfoundation/hardhat-keystore': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../../../hardhat-keystore '@nomicfoundation/hardhat-network-helpers': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../../../hardhat-network-helpers '@nomicfoundation/hardhat-node-test-runner': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../../../hardhat-node-test-runner '@nomicfoundation/hardhat-viem': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../../../hardhat-viem '@types/node': specifier: ^22.8.5 @@ -1761,7 +1761,7 @@ importers: specifier: foundry-rs/forge-std#v1.9.4 version: https://codeload.github.com/foundry-rs/forge-std/tar.gz/1eea5bae12ae557d589f9f0f0edae2faa47cb262 hardhat: - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../.. typescript: specifier: ~5.5.0 @@ -1773,28 +1773,28 @@ importers: v-next/hardhat/templates/02-mocha-ethers: devDependencies: '@nomicfoundation/hardhat-ethers': - specifier: workspace:^4.0.0-next.1 + specifier: workspace:^4.0.0-next.2 version: link:../../../hardhat-ethers '@nomicfoundation/hardhat-ethers-chai-matchers': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../../../hardhat-ethers-chai-matchers '@nomicfoundation/hardhat-ignition': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../../../hardhat-ignition '@nomicfoundation/hardhat-ignition-ethers': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../../../hardhat-ignition-ethers '@nomicfoundation/hardhat-keystore': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../../../hardhat-keystore '@nomicfoundation/hardhat-mocha': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../../../hardhat-mocha '@nomicfoundation/hardhat-network-helpers': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../../../hardhat-network-helpers '@nomicfoundation/hardhat-typechain': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../../../hardhat-typechain '@types/chai': specifier: ^4.2.0 @@ -1818,7 +1818,7 @@ importers: specifier: foundry-rs/forge-std#v1.9.4 version: https://codeload.github.com/foundry-rs/forge-std/tar.gz/1eea5bae12ae557d589f9f0f0edae2faa47cb262 hardhat: - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../.. mocha: specifier: ^11.0.0 @@ -1833,7 +1833,7 @@ importers: specifier: ^4.3.0 version: 4.4.1(eslint@8.57.0) '@nomicfoundation/hardhat-node-test-reporter': - specifier: workspace:^3.0.0-next.1 + specifier: workspace:^3.0.0-next.2 version: link:../hardhat-node-test-reporter '@nomicfoundation/hardhat-test-utils': specifier: workspace:^ diff --git a/scripts/version-alpha.mjs b/scripts/version-alpha.mjs new file mode 100644 index 0000000000..a10e612161 --- /dev/null +++ b/scripts/version-alpha.mjs @@ -0,0 +1,328 @@ +import { readdir, readFile, writeFile, stat } from "node:fs/promises"; +import path from "node:path"; +import { exec } from "node:child_process"; +import { promisify } from "node:util"; + +const execAsync = promisify(exec); + +const changesetDir = ".changeset"; +const packagesDir = "v-next"; + +/** + * This script applies changesets and creates a new Alpha version, + * based on changesets pre-release versioning. + * + * It reads all the new changesets and validates that: + * - they patch the main Hardhat package + * - there are no major or minor changesets + * + * It then combines the new changesets to create a new changelog + * section for the new version. + * + * The next step is to create a release changeset that patches all of the + * packages (except Hardhat, which by definition is already covered). + * By applying a changeset to all packages we eliminate issues + * with peer depenendencies not being updated. + * + * The release changeset is then applied, bumping versions across + * the packages (including the template packages). + * + * Finally the Hardhat packages changelog is updated with the + * prepared changelog section. + * + * It is up to the user to commit and push the changes as a release + * branch. + */ +async function versionAlpha() { + const changesets = await readAllNewChangsets(); + + validateChangesets(changesets); + + const currentHardhatAlphaVersion = await readCurrentHardhatAlphaVersion(); + const nextHardhatAlphaVersion = incrementHardhatAlphaVersion( + currentHardhatAlphaVersion + ); + + await createAllPackageChangesetFor(nextHardhatAlphaVersion); + + await executeChangesetVersion(); + + await updateHardhatChangelog(nextHardhatAlphaVersion, changesets); + + printFollowupInstructions(nextHardhatAlphaVersion, changesets); +} + +/** + * Read all the changesets that have not yet been applied + * based on the pre.json file. + */ +async function readAllNewChangsets() { + const allChangesetNames = (await readdir(changesetDir)) + .filter((file) => file.endsWith(".md")) + .map((file) => file.slice(0, -3)); + + const alreadyAppliedChangesetNames = JSON.parse( + await readFile(path.join(changesetDir, "pre.json")) + ); + + const newChangesetNames = allChangesetNames.filter( + (name) => !alreadyAppliedChangesetNames.changesets.includes(name) + ); + + const changesets = []; + + for (const newChangeSetName of newChangesetNames) { + const changesetFilePath = path.join(changesetDir, `${newChangeSetName}.md`); + + const changesetContent = await readFile(changesetFilePath, "utf-8"); + + const { content, frontMatter } = parseFrontMatter(changesetContent); + const commitHash = await getAddingCommit(changesetFilePath); + + changesets.push({ + frontMatter, + content, + path: changesetFilePath, + commitHash, + }); + } + + return changesets; +} + +/** + * Validate that the changesets meet our rules for an Alpha release + * changeset, logging and killing the script otherwise. + * + * The validations are: + * - every changeset must include a `"hardhat": patch` entry + * - no major or minor changesets are allowed + */ +function validateChangesets(changesets) { + if (changesets.length === 0) { + console.log("Error: No new changesets found."); + process.exit(1); + } + + let validationFailed = false; + + for (const { frontMatter, path: changesetPath } of changesets) { + if (!/^\s*"hardhat": patch$/m.test(frontMatter)) { + validationFailed = true; + console.log( + `Error: ${changesetPath}: No "hardhat: patch", every Alpha changeset must include hardhat` + ); + } + + if (/: (major|minor)\s*$/m.test(frontMatter)) { + validationFailed = true; + console.log( + `Error: ${changesetPath}: No "major" or "minor" changesets are allowed in Alpha` + ); + } + } + + if (validationFailed) { + process.exit(1); + } +} + +/** + * Read the current Alpha version based on the hardhat package.json + */ +async function readCurrentHardhatAlphaVersion() { + const hardhatPackageJson = JSON.parse( + await readFile(path.join("v-next", "hardhat", "package.json")) + ); + + return hardhatPackageJson.version; +} + +/** + * Increment the Alpha version by 1. We assume that the `next` + * tag is always used. + */ +function incrementHardhatAlphaVersion(version) { + const match = version.match(/(\d+\.\d+\.\d+)-next\.(\d+)/); + + if (!match) { + console.log(`Unsupported version format: ${version}`); + process.exit(1); + } + + const [, base, num] = match; + const nextNum = Number(num) + 1; + + return `${base}-next.${nextNum}`; +} + +/** + * Write a changeset file that has one entry for every package + * under `./v-next` excluding the hardhat package (this is + * covered definitionally because of the validation rules). + */ +async function createAllPackageChangesetFor(nextHardhatAlphaVersion) { + const releaseChangesetPath = path.join( + changesetDir, + `release-${nextHardhatAlphaVersion}.md` + ); + + const packageNames = await readAllPackageNames(); + + const releaseChangesetContent = `--- +${packageNames + .filter((name) => name !== "hardhat") + .map((name) => `"${name}": patch`) + .join("\n")} +--- + +Hardhat 3 Alpha release (${new Date().toISOString()}) +`; + + await writeFile(releaseChangesetPath, releaseChangesetContent); +} + +/** + * Use changeset via pnpm to bump versions across packages + * then update the pnpm lock file based on those changes. + */ +async function executeChangesetVersion() { + await execAsync("pnpm changeset version"); + await execAsync("pnpm install"); +} + +/** + * Prepend a new changelog section to the Hardhat package's + * changelog based on the new changesets. + */ +async function updateHardhatChangelog(nextHardhatAlphaVersion, changesets) { + const newChangelogSection = generateChangelogFrom( + nextHardhatAlphaVersion, + changesets + ); + + const hardhatChangelogPath = path.join( + packagesDir, + "hardhat", + "CHANGELOG.md" + ); + + const currentChangelog = await readFile(hardhatChangelogPath, "utf-8"); + + const newChangelog = currentChangelog.replace( + "# hardhat\n", + newChangelogSection + ); + + await writeFile(hardhatChangelogPath, newChangelog); +} + +function printFollowupInstructions(nextHardhatAlphaVersion, changesets) { + console.log(` + +# ${nextHardhatAlphaVersion} + +${generateReleaseMessage(changesets)} +`); +} + +async function readAllPackageNames() { + const ignoredChangesetPackages = JSON.parse( + await readFile(path.join(changesetDir, "config.json")) + ).ignore; + + const subdirs = await readdir(packagesDir); + + const packageNames = []; + + for (const dir of subdirs) { + const packageJsonPath = path.join(packagesDir, dir, "package.json"); + + try { + const stats = await stat(packageJsonPath); + + if (!stats.isFile()) { + continue; + } + + const pkgJson = JSON.parse(await readFile(packageJsonPath, "utf8")); + + if (ignoredChangesetPackages.includes(pkgJson.name)) { + continue; + } + + packageNames.push(pkgJson.name); + } catch (error) { + console.log(error); + process.exit(1); + } + } + + return packageNames.sort(); +} + +function generateChangelogFrom(nextHardhatAlphaVersion, changesets) { + return `# hardhat + +## ${nextHardhatAlphaVersion} + +### Patch Changes + +${generateChangesTextFrom(changesets)} +`; +} + +function generateReleaseMessage(changesets) { + return `This Hardhat 3 Alpha release [short summary of the changes]. + +### Changes + +${generateChangesTextFrom(changesets)} + +--- +> 💡 **The Nomic Foundation is hiring! Check [our open positions](https://www.nomic.foundation/jobs).** +--- +`; +} + +function generateChangesTextFrom(changesets) { + return changesets + .map(({ content, commitHash }) => + content + .trim() + .split("\n") + .map( + (entry) => + `- ${ + commitHash !== null ? `${commitHash.slice(0, 7)}: ` : "" + }${entry}` + ) + .join("\n") + ) + .join("\n"); +} + +function parseFrontMatter(markdown) { + const match = markdown.match(/^---\n([\s\S]*?)\n---\n([\s\S]*)$/); + if (!match) { + return { frontMatter: null, content: markdown }; + } + + return { + frontMatter: match[1], + content: match[2], + }; +} + +async function getAddingCommit(filePath) { + try { + const { stdout } = await execAsync( + `git log --diff-filter=A --follow --format=%h -- "${filePath}"` + ); + return stdout.trim() || null; + } catch { + return null; + } +} + +await versionAlpha(); diff --git a/v-next/example-project/package.json b/v-next/example-project/package.json index 22bbf79907..570ff47ca0 100644 --- a/v-next/example-project/package.json +++ b/v-next/example-project/package.json @@ -23,19 +23,19 @@ "test": "hardhat test node && hardhat test mocha" }, "devDependencies": { - "hardhat": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-ethers-chai-matchers": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-ethers": "workspace:^4.0.0-next.1", - "@nomicfoundation/hardhat-ignition": "workspace:^3.0.0-next.1", - "@nomicfoundation/ignition-core": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-ignition-viem": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-keystore": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-mocha": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-network-helpers": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-node-test-runner": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-typechain": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-viem": "workspace:^3.0.0-next.1", + "hardhat": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-ethers-chai-matchers": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-ethers": "workspace:^4.0.0-next.2", + "@nomicfoundation/hardhat-ignition": "workspace:^3.0.0-next.2", + "@nomicfoundation/ignition-core": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-ignition-viem": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-keystore": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-mocha": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-network-helpers": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-node-test-runner": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-typechain": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-viem": "workspace:^3.0.0-next.2", "@openzeppelin/contracts": "5.1.0", "@types/chai": "^4.2.0", "@types/mocha": ">=10.0.10", diff --git a/v-next/hardhat-errors/CHANGELOG.md b/v-next/hardhat-errors/CHANGELOG.md index 0b32a08dd7..cdbed1630f 100644 --- a/v-next/hardhat-errors/CHANGELOG.md +++ b/v-next/hardhat-errors/CHANGELOG.md @@ -1,5 +1,11 @@ # @nomicfoundation/hardhat-errors +## 3.0.0-next.2 + +### Patch Changes + +- Hardhat 3 Alpha release (2025-03-20T08:38:27.809Z) + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-errors/package.json b/v-next/hardhat-errors/package.json index 2b975578f6..ee79a41dd5 100644 --- a/v-next/hardhat-errors/package.json +++ b/v-next/hardhat-errors/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-errors", - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "description": "The different errors that Hardhat can throw", "homepage": "https://github.com/nomicfoundation/hardhat/tree/v-next/v-next/hardhat-errors", "repository": { @@ -43,7 +43,7 @@ ], "devDependencies": { "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", - "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.2", "@types/node": "^20.14.9", "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", @@ -61,6 +61,6 @@ "typescript-eslint": "7.7.1" }, "dependencies": { - "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.1" + "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.2" } } diff --git a/v-next/hardhat-ethers-chai-matchers/CHANGELOG.md b/v-next/hardhat-ethers-chai-matchers/CHANGELOG.md index 4c596fe3e7..cec6796c20 100644 --- a/v-next/hardhat-ethers-chai-matchers/CHANGELOG.md +++ b/v-next/hardhat-ethers-chai-matchers/CHANGELOG.md @@ -1,5 +1,11 @@ # @nomicfoundation/hardhat-ethers-chai-matchers +## 3.0.0-next.2 + +### Patch Changes + +- Hardhat 3 Alpha release (2025-03-20T08:38:27.809Z) + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-ethers-chai-matchers/package.json b/v-next/hardhat-ethers-chai-matchers/package.json index 890daff864..1d78f8e834 100644 --- a/v-next/hardhat-ethers-chai-matchers/package.json +++ b/v-next/hardhat-ethers-chai-matchers/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-ethers-chai-matchers", - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "description": "Hardhat utils for testing", "homepage": "https://github.com/nomicfoundation/hardhat/tree/v-next/v-next/hardhat-ethers-chai-matchers", "repository": { @@ -46,8 +46,8 @@ ], "devDependencies": { "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", - "@nomicfoundation/hardhat-mocha": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-mocha": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.2", "@nomicfoundation/hardhat-test-utils": "workspace:^", "@types/chai": "^4.2.0", "@types/debug": "^4.1.7", @@ -71,15 +71,15 @@ "typescript-eslint": "7.7.1" }, "dependencies": { - "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.2", "@types/chai-as-promised": "^8.0.1", "chai-as-promised": "^8.0.0", "deep-eql": "^5.0.1" }, "peerDependencies": { - "hardhat": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-ethers": "workspace:^4.0.0-next.1", + "hardhat": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-ethers": "workspace:^4.0.0-next.2", "chai": "^5.1.2", "ethers": "^6.13.4" } diff --git a/v-next/hardhat-ethers/CHANGELOG.md b/v-next/hardhat-ethers/CHANGELOG.md index 77bff47b19..413d304eff 100644 --- a/v-next/hardhat-ethers/CHANGELOG.md +++ b/v-next/hardhat-ethers/CHANGELOG.md @@ -1,5 +1,11 @@ # @nomicfoundation/hardhat-ethers +## 4.0.0-next.2 + +### Patch Changes + +- Hardhat 3 Alpha release (2025-03-20T08:38:27.809Z) + ## 4.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-ethers/package.json b/v-next/hardhat-ethers/package.json index 1bd71ad689..608a7057f9 100644 --- a/v-next/hardhat-ethers/package.json +++ b/v-next/hardhat-ethers/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-ethers", - "version": "4.0.0-next.1", + "version": "4.0.0-next.2", "description": "Hardhat plugin for ethers", "homepage": "https://github.com/nomicfoundation/hardhat/tree/v-next/v-next/hardhat-ethers", "repository": { @@ -44,7 +44,7 @@ ], "devDependencies": { "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", - "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.2", "@nomicfoundation/hardhat-test-utils": "workspace:^", "@types/debug": "^4.1.7", "@types/node": "^20.14.9", @@ -64,12 +64,12 @@ "typescript-eslint": "7.7.1" }, "dependencies": { - "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.2", "debug": "^4.3.2", "ethers": "^6.13.4" }, "peerDependencies": { - "hardhat": "workspace:^3.0.0-next.1" + "hardhat": "workspace:^3.0.0-next.2" } } diff --git a/v-next/hardhat-ignition-core/CHANGELOG.md b/v-next/hardhat-ignition-core/CHANGELOG.md index 5928c5fe10..904a590ed5 100644 --- a/v-next/hardhat-ignition-core/CHANGELOG.md +++ b/v-next/hardhat-ignition-core/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 3.0.0-next.2 + +### Patch Changes + +- Hardhat 3 Alpha release (2025-03-20T08:38:27.809Z) + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-ignition-core/package.json b/v-next/hardhat-ignition-core/package.json index 9bfe8e45fc..26d6d15dc0 100644 --- a/v-next/hardhat-ignition-core/package.json +++ b/v-next/hardhat-ignition-core/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/ignition-core", - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "description": "Hardhat Ignition is a declarative system for deploying smart contracts on Ethereum. It enables you to define smart contract instances you want to deploy, and any operation you want to run on them. By taking over the deployment and execution, Hardhat Ignition lets you focus on your project instead of getting caught up in the deployment details.", "homepage": "https://hardhat.org", "repository": "github:NomicFoundation/hardhat-ignition", @@ -78,7 +78,7 @@ }, "dependencies": { "@ethersproject/address": "5.6.1", - "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.2", "@nomicfoundation/solidity-analyzer": "^0.1.1", "cbor2": "^1.9.0", "debug": "^4.3.2", diff --git a/v-next/hardhat-ignition-ethers/CHANGELOG.md b/v-next/hardhat-ignition-ethers/CHANGELOG.md index 92bffc56a2..ec58a2ea0e 100644 --- a/v-next/hardhat-ignition-ethers/CHANGELOG.md +++ b/v-next/hardhat-ignition-ethers/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 3.0.0-next.2 + +### Patch Changes + +- Hardhat 3 Alpha release (2025-03-20T08:38:27.809Z) + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-ignition-ethers/package.json b/v-next/hardhat-ignition-ethers/package.json index 9ec47500df..3f26ea0696 100644 --- a/v-next/hardhat-ignition-ethers/package.json +++ b/v-next/hardhat-ignition-ethers/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-ignition-ethers", - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "description": "The Ethers extension to Hardhat Ignition. Hardhat Ignition is a declarative system for deploying smart contracts on Ethereum. It enables you to define smart contract instances you want to deploy, and any operation you want to run on them. By taking over the deployment and execution, Hardhat Ignition lets you focus on your project instead of getting caught up in the deployment details.", "homepage": "https://hardhat.org", "repository": "github:NomicFoundation/hardhat-ignition", @@ -33,10 +33,10 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "1.0.2", - "hardhat": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-ethers": "workspace:^4.0.0-next.1", - "@nomicfoundation/hardhat-ignition": "workspace:^3.0.0-next.1", - "@nomicfoundation/ignition-core": "workspace:^3.0.0-next.1", + "hardhat": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-ethers": "workspace:^4.0.0-next.2", + "@nomicfoundation/hardhat-ignition": "workspace:^3.0.0-next.2", + "@nomicfoundation/ignition-core": "workspace:^3.0.0-next.2", "@nomicfoundation/hardhat-test-utils": "workspace:^", "@types/chai": "^4.2.0", "@types/chai-as-promised": "^8.0.1", @@ -65,13 +65,13 @@ "typescript-eslint": "7.7.1" }, "dependencies": { - "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.1" + "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.2" }, "peerDependencies": { - "hardhat": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-ethers": "workspace:^4.0.0-next.1", - "@nomicfoundation/hardhat-ignition": "workspace:^3.0.0-next.1", - "@nomicfoundation/ignition-core": "workspace:^3.0.0-next.1", + "hardhat": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-ethers": "workspace:^4.0.0-next.2", + "@nomicfoundation/hardhat-ignition": "workspace:^3.0.0-next.2", + "@nomicfoundation/ignition-core": "workspace:^3.0.0-next.2", "ethers": "^6.13.4" } } diff --git a/v-next/hardhat-ignition-ui/CHANGELOG.md b/v-next/hardhat-ignition-ui/CHANGELOG.md index c4f8525c8b..90abda5d8b 100644 --- a/v-next/hardhat-ignition-ui/CHANGELOG.md +++ b/v-next/hardhat-ignition-ui/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 3.0.0-next.2 + +### Patch Changes + +- Hardhat 3 Alpha release (2025-03-20T08:38:27.809Z) + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-ignition-ui/package.json b/v-next/hardhat-ignition-ui/package.json index 98a5cdbb5e..d57208ab6c 100644 --- a/v-next/hardhat-ignition-ui/package.json +++ b/v-next/hardhat-ignition-ui/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/ignition-ui", - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "type": "module", "scripts": { "predev": "pnpm regenerate-deployment-example", @@ -20,7 +20,7 @@ "devDependencies": { "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", "@fontsource/roboto": "^5.0.8", - "@nomicfoundation/ignition-core": "workspace:^3.0.0-next.1", + "@nomicfoundation/ignition-core": "workspace:^3.0.0-next.2", "@types/chai": "^4.2.0", "@types/chai-as-promised": "^8.0.1", "@types/mocha": ">=10.0.10", diff --git a/v-next/hardhat-ignition-viem/CHANGELOG.md b/v-next/hardhat-ignition-viem/CHANGELOG.md index a0b0d08778..5f78ce4099 100644 --- a/v-next/hardhat-ignition-viem/CHANGELOG.md +++ b/v-next/hardhat-ignition-viem/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 3.0.0-next.2 + +### Patch Changes + +- Hardhat 3 Alpha release (2025-03-20T08:38:27.809Z) + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-ignition-viem/package.json b/v-next/hardhat-ignition-viem/package.json index c32463466f..acd74a2ca4 100644 --- a/v-next/hardhat-ignition-viem/package.json +++ b/v-next/hardhat-ignition-viem/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-ignition-viem", - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "description": "The Viem extension to Hardhat Ignition. Hardhat Ignition is a declarative system for deploying smart contracts on Ethereum. It enables you to define smart contract instances you want to deploy, and any operation you want to run on them. By taking over the deployment and execution, Hardhat Ignition lets you focus on your project instead of getting caught up in the deployment details.", "homepage": "https://hardhat.org", "repository": "github:NomicFoundation/hardhat-ignition", @@ -34,10 +34,10 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "1.0.2", - "hardhat": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-ignition": "workspace:^3.0.0-next.1", - "@nomicfoundation/ignition-core": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-viem": "workspace:^3.0.0-next.1", + "hardhat": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-ignition": "workspace:^3.0.0-next.2", + "@nomicfoundation/ignition-core": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-viem": "workspace:^3.0.0-next.2", "@nomicfoundation/hardhat-test-utils": "workspace:^", "@types/chai": "^4.2.0", "@types/chai-as-promised": "^8.0.1", @@ -66,13 +66,13 @@ "viem": "^2.21.42" }, "dependencies": { - "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.1" + "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.2" }, "peerDependencies": { - "hardhat": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-ignition": "workspace:^3.0.0-next.1", - "@nomicfoundation/ignition-core": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-viem": "workspace:^3.0.0-next.1", + "hardhat": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-ignition": "workspace:^3.0.0-next.2", + "@nomicfoundation/ignition-core": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-viem": "workspace:^3.0.0-next.2", "viem": "^2.21.42" } } diff --git a/v-next/hardhat-ignition/CHANGELOG.md b/v-next/hardhat-ignition/CHANGELOG.md index 109c0c6e32..81fc5b1d21 100644 --- a/v-next/hardhat-ignition/CHANGELOG.md +++ b/v-next/hardhat-ignition/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 3.0.0-next.2 + +### Patch Changes + +- Hardhat 3 Alpha release (2025-03-20T08:38:27.809Z) + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-ignition/package.json b/v-next/hardhat-ignition/package.json index 898e1cee62..a0094c5f15 100644 --- a/v-next/hardhat-ignition/package.json +++ b/v-next/hardhat-ignition/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-ignition", - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "description": "Hardhat Ignition is a declarative system for deploying smart contracts on Ethereum. It enables you to define smart contract instances you want to deploy, and any operation you want to run on them. By taking over the deployment and execution, Hardhat Ignition lets you focus on your project instead of getting caught up in the deployment details.", "homepage": "https://hardhat.org", "repository": "github:NomicFoundation/hardhat-ignition", @@ -49,8 +49,8 @@ }, "devDependencies": { "@istanbuljs/nyc-config-typescript": "1.0.2", - "hardhat": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-network-helpers": "workspace:^3.0.0-next.1", + "hardhat": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-network-helpers": "workspace:^3.0.0-next.2", "@types/chai": "^4.2.0", "@types/chai-as-promised": "^8.0.1", "@types/debug": "^4.1.7", @@ -81,16 +81,16 @@ "viem": "^2.21.42" }, "dependencies": { - "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.1", - "@nomicfoundation/ignition-core": "workspace:^3.0.0-next.1", - "@nomicfoundation/ignition-ui": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.2", + "@nomicfoundation/ignition-core": "workspace:^3.0.0-next.2", + "@nomicfoundation/ignition-ui": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.2", "chalk": "^5.3.0", "debug": "^4.3.2", "prompts": "^2.4.2", "json5": "^2.2.3" }, "peerDependencies": { - "hardhat": "workspace:^3.0.0-next.1" + "hardhat": "workspace:^3.0.0-next.2" } } diff --git a/v-next/hardhat-keystore/CHANGELOG.md b/v-next/hardhat-keystore/CHANGELOG.md index c0d3135d9e..e103ba0a65 100644 --- a/v-next/hardhat-keystore/CHANGELOG.md +++ b/v-next/hardhat-keystore/CHANGELOG.md @@ -1,5 +1,11 @@ # @nomicfoundation/hardhat-keystore +## 3.0.0-next.2 + +### Patch Changes + +- Hardhat 3 Alpha release (2025-03-20T08:38:27.809Z) + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-keystore/package.json b/v-next/hardhat-keystore/package.json index 58ce397a03..93ba137f52 100644 --- a/v-next/hardhat-keystore/package.json +++ b/v-next/hardhat-keystore/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-keystore", - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "description": "A module for managing keystore files that store a map from IDs to encrypted string values.", "homepage": "https://github.com/nomicfoundation/hardhat/tree/v-next/v-next/hardhat-keystore", "repository": { @@ -42,7 +42,7 @@ ], "devDependencies": { "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", - "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.2", "@nomicfoundation/hardhat-test-utils": "workspace:^", "@types/debug": "^4.1.7", "@types/node": "^20.14.9", @@ -62,9 +62,9 @@ "typescript-eslint": "7.7.1" }, "dependencies": { - "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-zod-utils": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-zod-utils": "workspace:^3.0.0-next.2", "@noble/ciphers": "1.2.1", "@noble/hashes": "1.7.1", "chalk": "^5.3.0", @@ -72,6 +72,6 @@ "zod": "^3.23.8" }, "peerDependencies": { - "hardhat": "workspace:^3.0.0-next.1" + "hardhat": "workspace:^3.0.0-next.2" } } diff --git a/v-next/hardhat-mocha/CHANGELOG.md b/v-next/hardhat-mocha/CHANGELOG.md index dc6c2a08b5..737908b809 100644 --- a/v-next/hardhat-mocha/CHANGELOG.md +++ b/v-next/hardhat-mocha/CHANGELOG.md @@ -1,5 +1,11 @@ # @nomicfoundation/hardhat-mocha +## 3.0.0-next.2 + +### Patch Changes + +- Hardhat 3 Alpha release (2025-03-20T08:38:27.809Z) + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-mocha/package.json b/v-next/hardhat-mocha/package.json index d02776bb53..e9ed5a7139 100644 --- a/v-next/hardhat-mocha/package.json +++ b/v-next/hardhat-mocha/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-mocha", - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "description": "A mocha test runner", "homepage": "https://github.com/nomicfoundation/hardhat/tree/v-next/v-next/hardhat-mocha", "repository": { @@ -42,7 +42,7 @@ ], "devDependencies": { "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", - "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.2", "@nomicfoundation/hardhat-test-utils": "workspace:^", "@types/mocha": ">=10.0.10", "@types/node": "^20.14.9", @@ -61,10 +61,10 @@ "typescript-eslint": "7.7.1" }, "dependencies": { - "hardhat": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-zod-utils": "workspace:^3.0.0-next.1", + "hardhat": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-zod-utils": "workspace:^3.0.0-next.2", "mocha": "^11.0.0", "tsx": "^4.19.3", "zod": "^3.23.8" diff --git a/v-next/hardhat-network-helpers/CHANGELOG.md b/v-next/hardhat-network-helpers/CHANGELOG.md index 9624022c90..c07b0167e4 100644 --- a/v-next/hardhat-network-helpers/CHANGELOG.md +++ b/v-next/hardhat-network-helpers/CHANGELOG.md @@ -1,5 +1,11 @@ # @nomicfoundation/hardhat-network-helpers +## 3.0.0-next.2 + +### Patch Changes + +- Hardhat 3 Alpha release (2025-03-20T08:38:27.809Z) + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-network-helpers/package.json b/v-next/hardhat-network-helpers/package.json index 88464c624a..768fe1230a 100644 --- a/v-next/hardhat-network-helpers/package.json +++ b/v-next/hardhat-network-helpers/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-network-helpers", - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "description": "Hardhat utils for testing", "homepage": "https://github.com/nomicfoundation/hardhat/tree/v-next/v-next/hardhat-network-helpers", "repository": { @@ -45,7 +45,7 @@ ], "devDependencies": { "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", - "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.2", "@nomicfoundation/hardhat-test-utils": "workspace:^", "@types/debug": "^4.1.7", "@types/node": "^20.14.9", @@ -65,10 +65,10 @@ "typescript-eslint": "7.7.1" }, "dependencies": { - "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.1" + "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.2" }, "peerDependencies": { - "hardhat": "workspace:^3.0.0-next.1" + "hardhat": "workspace:^3.0.0-next.2" } } diff --git a/v-next/hardhat-node-test-reporter/CHANGELOG.md b/v-next/hardhat-node-test-reporter/CHANGELOG.md index a3214eda50..cf317bd1cb 100644 --- a/v-next/hardhat-node-test-reporter/CHANGELOG.md +++ b/v-next/hardhat-node-test-reporter/CHANGELOG.md @@ -1,5 +1,11 @@ # @nomicfoundation/hardhat-node-test-reporter +## 3.0.0-next.2 + +### Patch Changes + +- Hardhat 3 Alpha release (2025-03-20T08:38:27.809Z) + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-node-test-reporter/package.json b/v-next/hardhat-node-test-reporter/package.json index ee212f81af..b550c17766 100644 --- a/v-next/hardhat-node-test-reporter/package.json +++ b/v-next/hardhat-node-test-reporter/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-node-test-reporter", - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "description": "A node:test reporter", "homepage": "https://github.com/nomicfoundation/hardhat/tree/v-next/v-next/hardhat-node-test-reporter", "repository": { diff --git a/v-next/hardhat-node-test-runner/CHANGELOG.md b/v-next/hardhat-node-test-runner/CHANGELOG.md index 041a9ac0e1..a258ed3a7b 100644 --- a/v-next/hardhat-node-test-runner/CHANGELOG.md +++ b/v-next/hardhat-node-test-runner/CHANGELOG.md @@ -1,5 +1,11 @@ # @nomicfoundation/hardhat-node-test-runner +## 3.0.0-next.2 + +### Patch Changes + +- Hardhat 3 Alpha release (2025-03-20T08:38:27.809Z) + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-node-test-runner/package.json b/v-next/hardhat-node-test-runner/package.json index 12e21602c9..419ff4fc5e 100644 --- a/v-next/hardhat-node-test-runner/package.json +++ b/v-next/hardhat-node-test-runner/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-node-test-runner", - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "description": "A node:test runner", "homepage": "https://github.com/nomicfoundation/hardhat/tree/v-next/v-next/hardhat-node-test-runner", "repository": { @@ -59,14 +59,14 @@ "typescript-eslint": "7.7.1" }, "dependencies": { - "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-zod-utils": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-zod-utils": "workspace:^3.0.0-next.2", "tsx": "^4.19.3", "zod": "^3.23.8" }, "peerDependencies": { - "hardhat": "workspace:^3.0.0-next.1" + "hardhat": "workspace:^3.0.0-next.2" } } diff --git a/v-next/hardhat-test-utils/CHANGELOG.md b/v-next/hardhat-test-utils/CHANGELOG.md index a6e1c7dede..7bb497a3ce 100644 --- a/v-next/hardhat-test-utils/CHANGELOG.md +++ b/v-next/hardhat-test-utils/CHANGELOG.md @@ -1,5 +1,11 @@ # @nomicfoundation/hardhat-test-utils +## 3.0.0-next.2 + +### Patch Changes + +- Updated dependencies [c9d81f9] + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-test-utils/package.json b/v-next/hardhat-test-utils/package.json index 4c5a85db3f..a8b2b422e2 100644 --- a/v-next/hardhat-test-utils/package.json +++ b/v-next/hardhat-test-utils/package.json @@ -1,7 +1,7 @@ { "name": "@nomicfoundation/hardhat-test-utils", "private": true, - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "description": "Test utilities used to develop and test Hardhat", "homepage": "https://github.com/nomicfoundation/hardhat/tree/v-next/v-next/hardhat-test-utils", "repository": { @@ -38,7 +38,7 @@ ], "devDependencies": { "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", - "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.2", "@types/node": "^20.14.9", "@typescript-eslint/eslint-plugin": "^7.7.1", "@typescript-eslint/parser": "^7.7.1", @@ -56,7 +56,7 @@ "typescript-eslint": "7.7.1" }, "dependencies": { - "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.1" + "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.2" } } diff --git a/v-next/hardhat-typechain/CHANGELOG.md b/v-next/hardhat-typechain/CHANGELOG.md index cc955ef10f..3b36b717e9 100644 --- a/v-next/hardhat-typechain/CHANGELOG.md +++ b/v-next/hardhat-typechain/CHANGELOG.md @@ -1,5 +1,12 @@ # @nomicfoundation/hardhat-typechain +## 3.0.0-next.2 + +### Patch Changes + +- 739f6b3: Don't generate `hardhat-typechain` types for Solidity test files ([#6392](https://github.com/NomicFoundation/hardhat/issues/6392)) +- 89f95f9: Added support for the `attach` method in `hardhat-typechain` ([#6315](https://github.com/NomicFoundation/hardhat/issues/6315)) + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-typechain/package.json b/v-next/hardhat-typechain/package.json index 3348e8e78c..2b6aad0071 100644 --- a/v-next/hardhat-typechain/package.json +++ b/v-next/hardhat-typechain/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-typechain", - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "description": "Hardhat plugin to support typechain", "homepage": "https://github.com/nomicfoundation/hardhat/tree/v-next/v-next/hardhat-typechain", "repository": { @@ -46,7 +46,7 @@ ], "devDependencies": { "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", - "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.2", "@nomicfoundation/hardhat-test-utils": "workspace:^", "@types/debug": "^4.1.7", "@types/node": "^20.14.9", @@ -66,17 +66,17 @@ "typescript-eslint": "7.7.1" }, "dependencies": { - "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-zod-utils": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-zod-utils": "workspace:^3.0.0-next.2", "@typechain/ethers-v6": "^0.5.0", "debug": "^4.3.2", "typechain": "^8.3.1", "zod": "^3.23.8" }, "peerDependencies": { - "hardhat": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-ethers": "workspace:^4.0.0-next.1", + "hardhat": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-ethers": "workspace:^4.0.0-next.2", "ethers": "^6.13.4" } } diff --git a/v-next/hardhat-utils/CHANGELOG.md b/v-next/hardhat-utils/CHANGELOG.md index 0290eb52f3..b23b713280 100644 --- a/v-next/hardhat-utils/CHANGELOG.md +++ b/v-next/hardhat-utils/CHANGELOG.md @@ -1,5 +1,11 @@ # @nomicfoundation/hardhat-utils +## 3.0.0-next.2 + +### Patch Changes + +- c9d81f9: Fixed errors in compiler list downloads with a synchronization mutex ([#6437](https://github.com/NomicFoundation/hardhat/issues/6437)) + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-utils/package.json b/v-next/hardhat-utils/package.json index 3bfe4fb83a..b7f8678c19 100644 --- a/v-next/hardhat-utils/package.json +++ b/v-next/hardhat-utils/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-utils", - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "description": "Utilities for Hardhat and its plugins", "homepage": "https://github.com/nomicfoundation/hardhat/tree/v-next/v-next/hardhat-utils", "repository": { @@ -63,7 +63,7 @@ ], "devDependencies": { "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", - "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.2", "@types/bn.js": "^5.1.5", "@types/debug": "^4.1.7", "@types/node": "^20.14.9", diff --git a/v-next/hardhat-viem/CHANGELOG.md b/v-next/hardhat-viem/CHANGELOG.md index 4fa14ab6d2..39a649dd20 100644 --- a/v-next/hardhat-viem/CHANGELOG.md +++ b/v-next/hardhat-viem/CHANGELOG.md @@ -1,5 +1,11 @@ # @nomicfoundation/hardhat-viem +## 3.0.0-next.2 + +### Patch Changes + +- Hardhat 3 Alpha release (2025-03-20T08:38:27.809Z) + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-viem/package.json b/v-next/hardhat-viem/package.json index cf553eca24..9e43f4861f 100644 --- a/v-next/hardhat-viem/package.json +++ b/v-next/hardhat-viem/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-viem", - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "description": "Hardhat plugin for viem", "homepage": "https://github.com/nomicfoundation/hardhat/tree/v-next/v-next/hardhat-viem", "repository": { @@ -46,7 +46,7 @@ ], "devDependencies": { "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", - "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.2", "@nomicfoundation/hardhat-test-utils": "workspace:^", "@types/node": "^20.14.9", "@typescript-eslint/eslint-plugin": "^7.7.1", @@ -66,11 +66,11 @@ "viem": "^2.21.42" }, "dependencies": { - "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.1" + "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.2" }, "peerDependencies": { - "hardhat": "workspace:^3.0.0-next.1", + "hardhat": "workspace:^3.0.0-next.2", "viem": "^2.21.42" } } diff --git a/v-next/hardhat-zod-utils/CHANGELOG.md b/v-next/hardhat-zod-utils/CHANGELOG.md index 4cc3f4e303..c473bc9894 100644 --- a/v-next/hardhat-zod-utils/CHANGELOG.md +++ b/v-next/hardhat-zod-utils/CHANGELOG.md @@ -1,5 +1,11 @@ # @nomicfoundation/hardhat-zod-utils +## 3.0.0-next.2 + +### Patch Changes + +- Updated dependencies [c9d81f9] + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat-zod-utils/package.json b/v-next/hardhat-zod-utils/package.json index 42f4cb3bf3..7a149e31c2 100644 --- a/v-next/hardhat-zod-utils/package.json +++ b/v-next/hardhat-zod-utils/package.json @@ -1,6 +1,6 @@ { "name": "@nomicfoundation/hardhat-zod-utils", - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "description": "Utilities to use Zod to validate Hardhat plugins' config", "homepage": "https://github.com/nomicfoundation/hardhat/tree/v-next/v-next/hardhat-zod-utils", "repository": { @@ -43,7 +43,7 @@ ], "devDependencies": { "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", - "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.2", "@nomicfoundation/hardhat-test-utils": "workspace:^", "@types/node": "^20.14.9", "@typescript-eslint/eslint-plugin": "^7.7.1", @@ -63,7 +63,7 @@ "zod": "^3.23.8" }, "dependencies": { - "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.1" + "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.2" }, "peerDependencies": { "zod": "^3.23.8" diff --git a/v-next/hardhat/CHANGELOG.md b/v-next/hardhat/CHANGELOG.md index 3f75ff9a8f..ae1e1cab56 100644 --- a/v-next/hardhat/CHANGELOG.md +++ b/v-next/hardhat/CHANGELOG.md @@ -1,5 +1,15 @@ # hardhat +## 3.0.0-next.2 + +### Patch Changes + +- aab6d99: Speed up Solidity Tests when forking by setting an rpc cache path ([#6459](https://github.com/NomicFoundation/hardhat/issues/6459)) +- 89f95f9: Added support for the `attach` method in `hardhat-typechain` ([#6315](https://github.com/NomicFoundation/hardhat/issues/6315)) +- 739f6b3: Don't generate `hardhat-typechain` types for Solidity test files ([#6392](https://github.com/NomicFoundation/hardhat/issues/6392)) +- 1e625dc: Fix to ensure we don't generate stack traces if EVM execution is indeterministic. +- c9d81f9: Fixed errors in compiler list downloads with a synchronization mutex ([#6437](https://github.com/NomicFoundation/hardhat/issues/6437)) + ## 3.0.0-next.1 ### Patch Changes diff --git a/v-next/hardhat/package.json b/v-next/hardhat/package.json index e307cced92..ac6e7d5a01 100644 --- a/v-next/hardhat/package.json +++ b/v-next/hardhat/package.json @@ -1,6 +1,6 @@ { "name": "hardhat", - "version": "3.0.0-next.1", + "version": "3.0.0-next.2", "description": "Hardhat is an extensible developer tool that helps smart contract developers increase productivity by reliably bringing together the tools they want.", "homepage": "https://github.com/nomicfoundation/hardhat/tree/v-next/v-next/hardhat", "repository": { @@ -65,7 +65,7 @@ ], "devDependencies": { "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", - "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.2", "@nomicfoundation/hardhat-test-utils": "workspace:^", "@types/adm-zip": "^0.5.5", "@types/debug": "^4.1.7", @@ -89,9 +89,9 @@ "dependencies": { "@ignored/edr": "0.10.0-alpha.1", "@ignored/edr-optimism": "0.6.5-alpha.3", - "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-zod-utils": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-errors": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-utils": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-zod-utils": "workspace:^3.0.0-next.2", "@nomicfoundation/solidity-analyzer": "^0.1.1", "@sentry/core": "^9.4.0", "@sentry/node": "^9.4.0", diff --git a/v-next/hardhat/templates/01-node-test-runner-viem/package.json b/v-next/hardhat/templates/01-node-test-runner-viem/package.json index c6c78ddc9c..a7b7f2016c 100644 --- a/v-next/hardhat/templates/01-node-test-runner-viem/package.json +++ b/v-next/hardhat/templates/01-node-test-runner-viem/package.json @@ -5,13 +5,13 @@ "description": "A TypeScript Hardhat project using Node Test Runner and Viem", "type": "module", "devDependencies": { - "hardhat": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-ignition": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-ignition-viem": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-keystore": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-node-test-runner": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-network-helpers": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-viem": "workspace:^3.0.0-next.1", + "hardhat": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-ignition": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-ignition-viem": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-keystore": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-node-test-runner": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-network-helpers": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-viem": "workspace:^3.0.0-next.2", "@types/node": "^22.8.5", "forge-std": "foundry-rs/forge-std#v1.9.4", "typescript": "~5.5.0", diff --git a/v-next/hardhat/templates/02-mocha-ethers/package.json b/v-next/hardhat/templates/02-mocha-ethers/package.json index f27e3e2609..1d2959d549 100644 --- a/v-next/hardhat/templates/02-mocha-ethers/package.json +++ b/v-next/hardhat/templates/02-mocha-ethers/package.json @@ -5,15 +5,15 @@ "description": "A TypeScript Hardhat project using Mocha and Ethers.js", "type": "module", "devDependencies": { - "hardhat": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-ethers-chai-matchers": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-ethers": "workspace:^4.0.0-next.1", - "@nomicfoundation/hardhat-ignition": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-ignition-ethers": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-keystore": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-mocha": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-network-helpers": "workspace:^3.0.0-next.1", - "@nomicfoundation/hardhat-typechain": "workspace:^3.0.0-next.1", + "hardhat": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-ethers-chai-matchers": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-ethers": "workspace:^4.0.0-next.2", + "@nomicfoundation/hardhat-ignition": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-ignition-ethers": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-keystore": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-mocha": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-network-helpers": "workspace:^3.0.0-next.2", + "@nomicfoundation/hardhat-typechain": "workspace:^3.0.0-next.2", "@types/chai": "^4.2.0", "@types/chai-as-promised": "^8.0.1", "@types/mocha": ">=10.0.10", diff --git a/v-next/template-package/package.json b/v-next/template-package/package.json index 11d7d7024b..232fd6cacc 100644 --- a/v-next/template-package/package.json +++ b/v-next/template-package/package.json @@ -45,7 +45,7 @@ ], "devDependencies": { "@eslint-community/eslint-plugin-eslint-comments": "^4.3.0", - "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.1", + "@nomicfoundation/hardhat-node-test-reporter": "workspace:^3.0.0-next.2", "@nomicfoundation/hardhat-test-utils": "workspace:^", "@types/node": "^20.14.9", "@typescript-eslint/eslint-plugin": "^7.7.1",