Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update supported Node versions: drop support for Node 16 #4898

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/wild-beds-guess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hardhat": minor
---

Dropped support for node v16
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18
2 changes: 1 addition & 1 deletion crates/edr_napi/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@types/chai": "^4.2.0",
"@types/chai-as-promised": "^7.1.8",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"chai": "^4.3.6",
"chai-as-promised": "^7.1.1",
"mocha": "^10.0.0",
Expand Down
2 changes: 1 addition & 1 deletion docs/src/content/tutorial/setting-up-the-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Most Ethereum libraries and tools are written in JavaScript, and so is Hardhat.

## Installing Node.js

You can [skip](./creating-a-new-hardhat-project.md) this section if you already have a working Node.js `>=16.0` installation. If not, here's how to install it on Ubuntu, MacOS and Windows.
You can [skip](./creating-a-new-hardhat-project.md) this section if you already have a working Node.js `>=18.0` installation. If not, here's how to install it on Ubuntu, MacOS and Windows.

### Linux

Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-chai-matchers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@types/bn.js": "^5.1.0",
"@types/chai": "^4.2.0",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
"bignumber.js": "^9.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"@types/keccak": "^3.0.1",
"@types/lodash": "^4.14.123",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@types/resolve": "^1.17.1",
"@types/semver": "^6.0.2",
"@types/sinon": "^9.0.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-core/src/internal/cli/constants.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const SUPPORTED_NODE_VERSIONS = ["^16.0.0", "^18.0.0", "^20.0.0"];
export const SUPPORTED_NODE_VERSIONS = ["^18.0.0", "^20.0.0"];
2 changes: 1 addition & 1 deletion packages/hardhat-core/src/internal/cli/project-creation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const TYPESCRIPT_DEPENDENCIES: Dependencies = {};
const TYPESCRIPT_PEER_DEPENDENCIES: Dependencies = {
"@types/chai": "^4.2.0",
"@types/mocha": ">=9.1.0",
"@types/node": ">=16.0.0",
"@types/node": ">=18.0.0",
"ts-node": ">=8.0.0",
typescript: ">=4.5.0",
};
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-ethers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@types/debug": "^4.1.4",
"@types/lodash.isequal": "^4.5.6",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@types/sinon": "^9.0.8",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-foundry/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@nomicfoundation/eslint-plugin-slow-imports": "workspace:^",
"@types/chai": "^4.2.0",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
"chai": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-ledger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@types/chai": "^4.2.0",
"@types/fs-extra": "^5.1.0",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@types/sinon": "^9.0.8",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-network-helpers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"@types/chai": "^4.2.0",
"@types/chai-as-promised": "^7.1.3",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
"chai": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-shorthand/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@types/debug": "^4.1.4",
"@types/fs-extra": "^5.1.0",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@types/semver": "^6.0.2",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-solhint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@types/chai": "^4.2.0",
"@types/fs-extra": "^5.1.0",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@types/sinon": "^9.0.8",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-solpp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"@types/chai": "^4.2.0",
"@types/fs-extra": "^5.1.0",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
"chai": "^4.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-toolbox-viem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@types/chai": "^4.2.0",
"@types/chai-as-promised": "^7.1.6",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
"chai": "^4.2.0",
Expand All @@ -77,7 +77,7 @@
"@types/chai": "^4.2.0",
"@types/chai-as-promised": "^7.1.6",
"@types/mocha": ">=9.1.0",
"@types/node": ">=16.0.0",
"@types/node": ">=18.0.0",
"chai": "^4.2.0",
"hardhat": "workspace:^2.11.0",
"hardhat-gas-reporter": "^1.0.8",
Expand Down
4 changes: 2 additions & 2 deletions packages/hardhat-toolbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@typechain/hardhat": "^9.0.0",
"@types/chai": "^4.2.0",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
"chai": "^4.2.0",
Expand Down Expand Up @@ -80,7 +80,7 @@
"@typechain/hardhat": "^9.0.0",
"@types/chai": "^4.2.0",
"@types/mocha": ">=9.1.0",
"@types/node": ">=16.0.0",
"@types/node": ">=18.0.0",
"chai": "^4.2.0",
"ethers": "^6.4.0",
"hardhat": "workspace:^2.11.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-truffle4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@types/fs-extra": "^5.1.0",
"@types/glob": "^7.1.1",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
"chai": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-truffle5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@types/fs-extra": "^5.1.0",
"@types/glob": "^7.1.1",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
"chai": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-verify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@types/debug": "^4.1.4",
"@types/lodash.clonedeep": "^4.5.7",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@types/semver": "^6.0.2",
"@types/sinon": "^9.0.8",
"@types/sinon-chai": "^3.2.9",
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-viem/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"@types/lodash": "^4.14.123",
"@types/lodash.memoize": "^4.1.7",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@types/sinon": "^9.0.8",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-vyper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@types/fs-extra": "^5.1.0",
"@types/lodash": "^4.14.123",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@types/semver": "^6.0.2",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-web3-legacy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@nomicfoundation/eslint-plugin-slow-imports": "workspace:^",
"@types/chai": "^4.2.0",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
"chai": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-web3-v4/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@types/chai": "^4.2.0",
"@types/chai-as-promised": "^7.1.3",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
"chai": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/hardhat-web3/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"@nomicfoundation/eslint-plugin-slow-imports": "workspace:^",
"@types/chai": "^4.2.0",
"@types/mocha": ">=9.1.0",
"@types/node": "^16.0.0",
"@types/node": "^18.0.0",
"@typescript-eslint/eslint-plugin": "5.61.0",
"@typescript-eslint/parser": "5.61.0",
"chai": "^4.2.0",
Expand Down
Loading
Loading