Skip to content

Commit

Permalink
build: upgrade & consolidate @types/node at v18.11.9 - NodeJS typings
Browse files Browse the repository at this point in the history
1. The default/suggested NodeJS version we use and recommend is v18 LTS
but there were a lot of places in the code that still declared v14 and
v16 both of which are now EOL.
2. This was/is working fine but eventually we'll hit some compiler issue
where the upgrade will be forced so it's most likely wiser to do this little
quality of life/housekeeping change now when it's not urgent.

Signed-off-by: Peter Somogyvari <[email protected]>
  • Loading branch information
petermetz committed Mar 18, 2024
1 parent df6661e commit 8ddc02d
Show file tree
Hide file tree
Showing 34 changed files with 60 additions and 104 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@types/chai": "4.3.5",
"@types/crypto-js": "4.1.1",
"@types/mocha": "8.2.2",
"@types/node": "16.18.41",
"@types/node": "18.11.9",
"@types/rewire": "2.5.28",
"chai": "4.3.7",
"mocha": "8.4.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/cactus-example-cbdc-bridging-backend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"@types/express": "4.17.19",
"@types/express-jwt": "6.0.2",
"@types/fs-extra": "9.0.13",
"@types/node": "10.17.60",
"@types/node": "18.11.9",
"@types/uuid": "9.0.8",
"cucumber": "5.0.3",
"hardhat": "2.17.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"@types/chai": "^4.2.11",
"@types/chai-as-promised": "^7.1.2",
"@types/mocha": "^7.0.2",
"@types/node": "^13.13.52",
"@types/node": "18.11.9",
"@types/sinon": "^7.5.2",
"@types/sinon-chai": "^3.2.3",
"chai": "^4.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@testing-library/react": "^13.4.0",
"@testing-library/user-event": "^13.5.0",
"@types/jest": "^27.5.2",
"@types/node": "^16.18.66",
"@types/node": "18.11.9",
"@types/react": "^18.2.39",
"@types/react-dom": "^18.2.17",
"axios": "1.6.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@hyperledger/cactus-plugin-ledger-connector-aries": "2.0.0-alpha.2",
"@hyperledger/cactus-plugin-ledger-connector-ethereum": "2.0.0-alpha.2",
"@hyperledger/cactus-plugin-ledger-connector-fabric": "2.0.0-alpha.2",
"@types/node": "14.18.54",
"@types/node": "18.11.9",
"axios": "1.6.0",
"body-parser": "1.20.2",
"cookie-parser": "1.4.6",
Expand Down
2 changes: 1 addition & 1 deletion examples/cactus-example-electricity-trade/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"@hyperledger/cactus-plugin-keychain-memory": "2.0.0-alpha.2",
"@hyperledger/cactus-plugin-ledger-connector-ethereum": "2.0.0-alpha.2",
"@hyperledger/cactus-plugin-ledger-connector-sawtooth": "2.0.0-alpha.2",
"@types/node": "14.18.54",
"@types/node": "18.11.9",
"body-parser": "1.20.2",
"cookie-parser": "1.4.6",
"debug": "3.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"copy-static-assets": "ts-node copyStaticAssets.ts"
},
"dependencies": {
"@types/node": "14.18.54",
"@types/node": "18.11.9",
"config": "1.31.0",
"ethereumjs-common": "1.5.2",
"ethereumjs-tx": "2.1.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/cactus-example-tcs-huawei/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@hyperledger/cactus-cmd-socketio-server": "2.0.0-alpha.2",
"@hyperledger/cactus-core-api": "2.0.0-alpha.2",
"@hyperledger/cactus-verifier-client": "2.0.0-alpha.2",
"@types/node": "14.18.54",
"@types/node": "18.11.9",
"@types/uuid": "9.0.8",
"body-parser": "1.20.2",
"cookie-parser": "1.4.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"tslint": "tslint -c tslint.json -p tsconfig.json"
},
"dependencies": {
"@types/node": "14.18.54",
"@types/node": "18.11.9",
"ts-node": "9.1.1"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"copy-static-assets": "ts-node copyStaticAssets.ts"
},
"dependencies": {
"@types/node": "14.18.54",
"@types/node": "18.11.9",
"config": "1.31.0",
"ethereumjs-common": "1.5.2",
"ethereumjs-tx": "2.1.2",
Expand Down
2 changes: 1 addition & 1 deletion examples/test-run-transaction/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"init-test-run-transaction": "ln -s ../examples/test-run-transaction/node_modules ../../dist/node_modules"
},
"dependencies": {
"@types/node": "14.18.54",
"@types/node": "18.11.9",
"body-parser": "1.20.2",
"cookie-parser": "1.4.6",
"debug": "2.6.9",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
"@types/benchmark": "2.1.5",
"@types/fs-extra": "9.0.13",
"@types/jest": "29.5.3",
"@types/node": "16.18.41",
"@types/node": "18.11.9",
"@types/node-fetch": "2.6.4",
"@types/tape": "4.13.4",
"@types/tape-promise": "4.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/cactus-api-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@hyperledger/cactus-test-tooling": "2.0.0-alpha.2",
"@types/jsonwebtoken": "9.0.0",
"@types/lodash": "4.14.195",
"@types/node": "20.8.10",
"@types/node": "18.11.9",
"lodash": "4.17.21"
},
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions packages/cactus-cmd-socketio-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"dependencies": {
"@hyperledger/cactus-common": "2.0.0-alpha.2",
"@hyperledger/cactus-core-api": "2.0.0-alpha.2",
"@types/node": "14.18.54",
"@types/node": "18.11.9",
"body-parser": "1.20.2",
"config": "3.3.7",
"cookie-parser": "1.4.5",
Expand Down Expand Up @@ -77,7 +77,7 @@
"@types/jsonwebtoken": "9.0.0",
"@types/lodash": "4.14.195",
"@types/morgan": "1.9.1",
"@types/node": "14.18.54",
"@types/node": "18.11.9",
"@types/shelljs": "0.8.11",
"http-terminator": "3.2.0",
"lodash": "4.17.21",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"devDependencies": {
"@types/chai": "4.3.0",
"@types/mocha": "5.2.7",
"@types/node": "10.17.60",
"@types/node": "18.11.9",
"@types/sinon": "5.0.7",
"@types/sinon-chai": "3.2.8",
"chai": "4.3.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"devDependencies": {
"@types/chai": "4.3.0",
"@types/mocha": "5.2.7",
"@types/node": "10.17.60",
"@types/node": "18.11.9",
"@types/sinon": "5.0.7",
"@types/sinon-chai": "3.2.8",
"chai": "4.3.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"dependencies": {
"@hyperledger/cactus-cmd-socketio-server": "2.0.0-alpha.2",
"@hyperledger/cactus-common": "2.0.0-alpha.2",
"@types/node": "15.14.9",
"@types/node": "18.11.9",
"body-parser": "1.20.2",
"config": "3.3.9",
"cookie-parser": "1.4.6",
Expand All @@ -74,7 +74,7 @@
"@types/cookie-parser": "1.4.5",
"@types/express": "4.17.19",
"@types/http-errors": "2.0.1",
"@types/node": "15.14.9",
"@types/node": "18.11.9",
"@types/shelljs": "0.8.12",
"shelljs": "0.8.5",
"socket.io-client-fixed-types": "4.5.4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"copy-static-assets": "ts-node copyStaticAssets.ts"
},
"dependencies": {
"@types/node": "14.18.54",
"@types/node": "18.11.9",
"config": "1.31.0",
"ethereumjs-common": "1.5.2",
"ethereumjs-tx": "2.1.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"start": "cd ./dist && node common/core/bin/www.js"
},
"dependencies": {
"@types/node": "14.18.54",
"@types/node": "18.11.9",
"body-parser": "1.20.2",
"cbor": "6.0.1",
"config": "3.3.7",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"devDependencies": {
"@types/chai": "4.3.0",
"@types/mocha": "5.2.7",
"@types/node": "10.17.60",
"@types/node": "18.11.9",
"@types/sinon": "5.0.7",
"@types/sinon-chai": "3.2.8",
"chai": "4.3.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/cactus-test-verifier-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"devDependencies": {
"@types/body-parser": "1.19.4",
"@types/express": "4.17.19",
"@types/node": "14.18.54",
"@types/node": "18.11.9",
"@types/uuid": "9.0.8",
"uuid": "9.0.1",
"web3-eth-accounts": "4.0.3"
Expand Down
2 changes: 1 addition & 1 deletion weaver/core/drivers/fabric-driver/package-local.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"winston": "3.10.0"
},
"devDependencies": {
"@types/node": "16.18.41",
"@types/node": "18.11.9",
"nodemon": "2.0.22",
"patch-package": "6.5.1",
"typedoc": "0.25.6",
Expand Down
2 changes: 1 addition & 1 deletion weaver/core/drivers/fabric-driver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"winston": "3.10.0"
},
"devDependencies": {
"@types/node": "16.18.41",
"@types/node": "18.11.9",
"nodemon": "2.0.22",
"patch-package": "6.5.1",
"typedoc": "0.25.6",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"devDependencies": {
"@types/jsrsasign": "10.5.11",
"@types/node": "16.18.41",
"@types/node": "18.11.9",
"@types/uuid": "9.0.6",
"chai": "4.3.7",
"chai-as-promised": "7.1.1",
Expand Down
2 changes: 1 addition & 1 deletion weaver/core/identity-management/iin-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
},
"devDependencies": {
"@types/jsrsasign": "10.5.11",
"@types/node": "16.18.41",
"@types/node": "18.11.9",
"@types/uuid": "9.0.8",
"chai": "4.3.7",
"chai-as-promised": "7.1.1",
Expand Down
2 changes: 1 addition & 1 deletion weaver/samples/besu/besu-cli/package-local.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"devDependencies": {
"@types/jest": "29.5.3",
"@types/node": "16.18.41",
"@types/node": "18.11.9",
"jest": "29.6.2",
"ts-jest": "29.1.1",
"ts-node": "10.9.1",
Expand Down
2 changes: 1 addition & 1 deletion weaver/samples/besu/besu-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
},
"devDependencies": {
"@types/jest": "29.5.3",
"@types/node": "16.18.41",
"@types/node": "18.11.9",
"jest": "29.6.2",
"ts-jest": "29.1.1",
"ts-node": "10.9.1",
Expand Down
2 changes: 1 addition & 1 deletion weaver/samples/fabric/fabric-cli/package-local.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@grpc/proto-loader": "0.7.8",
"@types/express": "4.17.19",
"@types/jest": "29.5.3",
"@types/node": "12.20.55",
"@types/node": "18.11.9",
"google-protobuf": "3.21.2",
"jest": "29.6.2",
"pkg": "4.5.1",
Expand Down
2 changes: 1 addition & 1 deletion weaver/samples/fabric/fabric-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"@grpc/proto-loader": "0.7.8",
"@types/express": "4.17.19",
"@types/jest": "29.5.3",
"@types/node": "12.20.55",
"@types/node": "18.11.9",
"google-protobuf": "3.21.2",
"jest": "29.6.2",
"pkg": "4.5.1",
Expand Down
2 changes: 1 addition & 1 deletion weaver/sdks/besu/node/package-local.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"web3-utils": "1.10.0"
},
"devDependencies": {
"@types/node": "16.18.41",
"@types/node": "18.11.9",
"chai": "4.3.7",
"chai-as-promised": "7.1.1",
"mocha": "5.2.0",
Expand Down
2 changes: 1 addition & 1 deletion weaver/sdks/besu/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"web3-utils": "1.10.0"
},
"devDependencies": {
"@types/node": "16.18.41",
"@types/node": "18.11.9",
"chai": "4.3.7",
"chai-as-promised": "7.1.1",
"mocha": "5.2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"uuid": "8.3.2"
},
"devDependencies": {
"@types/node": "16.18.41",
"@types/node": "18.11.9",
"chai": "4.3.7",
"chai-as-promised": "7.1.1",
"mocha": "5.2.0",
Expand Down
2 changes: 1 addition & 1 deletion weaver/sdks/fabric/interoperation-node-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"uuid": "9.0.1"
},
"devDependencies": {
"@types/node": "16.18.41",
"@types/node": "18.11.9",
"chai": "4.3.7",
"chai-as-promised": "7.1.1",
"mocha": "5.2.0",
Expand Down
Loading

0 comments on commit 8ddc02d

Please sign in to comment.