From 4bbc030ba86f2e5b6494b395d77acce130d90c66 Mon Sep 17 00:00:00 2001 From: Muhammad Altabba <24407834+Muhammad-Altabba@users.noreply.github.com> Date: Thu, 26 Jan 2023 09:04:57 +0100 Subject: [PATCH] Update node minimum version to 14 (#5765) * update node minimum version to 14 * added node and npm recommended main versions to all package.config --- package.json | 2 +- packages/web3-core/package.json | 4 ++++ packages/web3-errors/package.json | 4 ++++ packages/web3-eth-abi/package.json | 4 ++++ packages/web3-eth-accounts/package.json | 4 ++++ packages/web3-eth-contract/package.json | 4 ++++ packages/web3-eth-ens/package.json | 4 ++++ packages/web3-eth-iban/package.json | 4 ++++ packages/web3-eth-personal/package.json | 4 ++++ packages/web3-eth/package.json | 4 ++++ packages/web3-net/package.json | 4 ++++ packages/web3-providers-http/package.json | 4 ++++ packages/web3-providers-ipc/package.json | 4 ++++ packages/web3-providers-ws/package.json | 4 ++++ packages/web3-rpc-methods/package.json | 4 ++++ packages/web3-types/package.json | 4 ++++ packages/web3-utils/package.json | 4 ++++ packages/web3-validator/package.json | 4 ++++ packages/web3/package.json | 3 ++- tools/web3-packagetemplate/package.json | 4 ++++ tools/web3-plugin-example/package.json | 3 ++- 21 files changed, 77 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 4284aedd8f9..201d543563a 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ "url": "https://github.com/ChainSafe/web3.js/issues" }, "engines": { - "node": ">=12", + "node": ">=14", "npm": ">=6.12.0" }, "workspaces": { diff --git a/packages/web3-core/package.json b/packages/web3-core/package.json index d07efd3637d..0a54b7b8afc 100644 --- a/packages/web3-core/package.json +++ b/packages/web3-core/package.json @@ -6,6 +6,10 @@ "repository": "https://github.com/ChainSafe/web3.js", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*" ], diff --git a/packages/web3-errors/package.json b/packages/web3-errors/package.json index e8b05865280..c9160918053 100644 --- a/packages/web3-errors/package.json +++ b/packages/web3-errors/package.json @@ -6,6 +6,10 @@ "repository": "https://github.com/ChainSafe/web3.js", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*" ], diff --git a/packages/web3-eth-abi/package.json b/packages/web3-eth-abi/package.json index 81a3120a450..058c92a1d6e 100644 --- a/packages/web3-eth-abi/package.json +++ b/packages/web3-eth-abi/package.json @@ -6,6 +6,10 @@ "repository": "https://github.com/ethereum/web3.js/tree/4.x/packages/web3-eth-abi", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*" ], diff --git a/packages/web3-eth-accounts/package.json b/packages/web3-eth-accounts/package.json index 77b10007ed4..d81970fd6af 100644 --- a/packages/web3-eth-accounts/package.json +++ b/packages/web3-eth-accounts/package.json @@ -6,6 +6,10 @@ "repository": "https://github.com/ChainSafe/web3.js", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*" ], diff --git a/packages/web3-eth-contract/package.json b/packages/web3-eth-contract/package.json index 5a35a09dabb..d0f4cc1f93f 100644 --- a/packages/web3-eth-contract/package.json +++ b/packages/web3-eth-contract/package.json @@ -6,6 +6,10 @@ "repository": "https://github.com/ethereum/web3.js/tree/4.x/packages/web3-eth-contract", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*" ], diff --git a/packages/web3-eth-ens/package.json b/packages/web3-eth-ens/package.json index 6fe944f02b5..72442e34454 100644 --- a/packages/web3-eth-ens/package.json +++ b/packages/web3-eth-ens/package.json @@ -6,6 +6,10 @@ "repository": "https://github.com/ChainSafe/web3.js", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*" ], diff --git a/packages/web3-eth-iban/package.json b/packages/web3-eth-iban/package.json index a7f84e70f96..7c91c3b2da8 100644 --- a/packages/web3-eth-iban/package.json +++ b/packages/web3-eth-iban/package.json @@ -6,6 +6,10 @@ "repository": "https://github.com/ChainSafe/web3.js", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*" ], diff --git a/packages/web3-eth-personal/package.json b/packages/web3-eth-personal/package.json index 9f271cd7425..394d1be2472 100644 --- a/packages/web3-eth-personal/package.json +++ b/packages/web3-eth-personal/package.json @@ -6,6 +6,10 @@ "repository": "https://github.com/ChainSafe/web3.js", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*" ], diff --git a/packages/web3-eth/package.json b/packages/web3-eth/package.json index 788c014c8ff..ec520b855a4 100644 --- a/packages/web3-eth/package.json +++ b/packages/web3-eth/package.json @@ -6,6 +6,10 @@ "repository": "https://github.com/ChainSafe/web3.js", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*" ], diff --git a/packages/web3-net/package.json b/packages/web3-net/package.json index 88234413567..31048de29ea 100644 --- a/packages/web3-net/package.json +++ b/packages/web3-net/package.json @@ -6,6 +6,10 @@ "repository": "https://github.com/ChainSafe/web3.js", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*" ], diff --git a/packages/web3-providers-http/package.json b/packages/web3-providers-http/package.json index 6e5569eb4a6..1fa1f44117a 100644 --- a/packages/web3-providers-http/package.json +++ b/packages/web3-providers-http/package.json @@ -6,6 +6,10 @@ "repository": "https://github.com/ChainSafe/web3.js", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*" ], diff --git a/packages/web3-providers-ipc/package.json b/packages/web3-providers-ipc/package.json index 4d6e9579d93..95122e8eed6 100644 --- a/packages/web3-providers-ipc/package.json +++ b/packages/web3-providers-ipc/package.json @@ -6,6 +6,10 @@ "repository": "https://github.com/ChainSafe/web3.js", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*" ], diff --git a/packages/web3-providers-ws/package.json b/packages/web3-providers-ws/package.json index 650284833ed..81dd31a87ab 100644 --- a/packages/web3-providers-ws/package.json +++ b/packages/web3-providers-ws/package.json @@ -6,6 +6,10 @@ "repository": "https://github.com/ChainSafe/web3.js", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*" ], diff --git a/packages/web3-rpc-methods/package.json b/packages/web3-rpc-methods/package.json index 047ede166f7..eae3bc5ddf1 100644 --- a/packages/web3-rpc-methods/package.json +++ b/packages/web3-rpc-methods/package.json @@ -6,6 +6,10 @@ "repository": "https://github.com/ChainSafe/web3.js", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*" ], diff --git a/packages/web3-types/package.json b/packages/web3-types/package.json index a117d35acb0..77434a63fd9 100644 --- a/packages/web3-types/package.json +++ b/packages/web3-types/package.json @@ -6,6 +6,10 @@ "repository": "https://github.com/ChainSafe/web3.js", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*" ], diff --git a/packages/web3-utils/package.json b/packages/web3-utils/package.json index 25bb0d960df..5303658c952 100644 --- a/packages/web3-utils/package.json +++ b/packages/web3-utils/package.json @@ -7,6 +7,10 @@ "repository": "https://github.com/ChainSafe/web3.js", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*" ], diff --git a/packages/web3-validator/package.json b/packages/web3-validator/package.json index f9e9c6d5db2..6644430c1be 100644 --- a/packages/web3-validator/package.json +++ b/packages/web3-validator/package.json @@ -6,6 +6,10 @@ "repository": "https://github.com/ChainSafe/web3.js", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*", "dist/**/*" diff --git a/packages/web3/package.json b/packages/web3/package.json index 9d5e926c6f4..c0cd9f41ea6 100644 --- a/packages/web3/package.json +++ b/packages/web3/package.json @@ -5,7 +5,8 @@ "main": "lib/index.js", "repository": "https://github.com/ChainSafe/web3.js", "engines": { - "node": ">=12.0.0" + "node": ">=14.0.0", + "npm": ">=6.12.0" }, "author": "ChainSafe Systems", "license": "LGPL-3.0", diff --git a/tools/web3-packagetemplate/package.json b/tools/web3-packagetemplate/package.json index e48ae949995..41bbcfd764d 100644 --- a/tools/web3-packagetemplate/package.json +++ b/tools/web3-packagetemplate/package.json @@ -6,6 +6,10 @@ "repository": "https://github.com/ChainSafe/web3.js", "author": "ChainSafe Systems", "license": "LGPL-3.0", + "engines": { + "node": ">=14", + "npm": ">=6.12.0" + }, "files": [ "lib/**/*" ], diff --git a/tools/web3-plugin-example/package.json b/tools/web3-plugin-example/package.json index 879cf082e42..28c1dbfb841 100644 --- a/tools/web3-plugin-example/package.json +++ b/tools/web3-plugin-example/package.json @@ -4,7 +4,8 @@ "description": "Example implementations of Web3.js' 4.x plugin system", "repository": "https://github.com/ChainSafe/web3.js", "engines": { - "node": ">=12.0.0" + "node": ">=14", + "npm": ">=6.12.0" }, "author": "ChainSafe Systems", "license": "LGPL-3.0",