Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
⬆️ Update web3 dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nazarhussain committed Sep 15, 2022
1 parent f381fbb commit c4cecf1
Show file tree
Hide file tree
Showing 32 changed files with 6,183 additions and 1,749 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"private": true,
"scripts": {
"bootstrap": "yarn exec lerna bootstrap",
"build": "yarn exec lerna run build --stream",
"build": "lerna run build --stream",
"prepare": "lerna run prepare --stream --concurrency=1 && husky install",
"publish-release": "./scripts/publish-release.sh",
"publish-dist-tag": "./scripts/publish-dist-tag.sh",
Expand Down Expand Up @@ -44,7 +44,7 @@
"packages/*/package.json": "node ./scripts/check-truffle-namespace-dependency-versions.js"
},
"resolutions": {
"web3-core": "^4.0.0-alpha.0",
"web3-net": "4.0.0-alpha.0"
"web3-core": "^4.0.1-alpha.0",
"web3-net": "^4.0.1-alpha.0"
}
}
2 changes: 1 addition & 1 deletion packages/abi-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"dependencies": {
"change-case": "3.0.2",
"fast-check": "3.1.1",
"web3-utils": "1.7.4"
"web3-utils": "^4.0.1-alpha.0"
},
"devDependencies": {
"@fast-check/jest": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/artifactor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"tmp": "^0.2.1",
"ts-node": "10.7.0",
"typescript": "^4.1.4",
"web3": "^4.0.0-alpha.1"
"web3": "^4.0.1-alpha.0"
},
"publishConfig": {
"access": "public"
Expand Down
2 changes: 1 addition & 1 deletion packages/codec/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"lodash": "^4.17.21",
"semver": "7.3.7",
"utf8": "^3.0.0",
"web3-utils": "^4.0.0-alpha.1"
"web3-utils": "^4.0.1-alpha.0"
},
"devDependencies": {
"@truffle/contract-schema": "^3.4.10",
Expand Down
13 changes: 7 additions & 6 deletions packages/compile-solidity/src/compilerSupplier/rangeUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,18 @@ export function rangeContainsAtLeast(
const individualAtLeast = !!(
semver.valid(range, { loose: true }) &&
semver.gte(range, comparisonVersion, {
includePrerelease: true,
loose: true
})
);
//the following line doesn't, despite the flag, but does work with version ranges
const rangeAtLeast = !!(
semver.validRange(range, { loose: true }) &&
!semver.gtr(comparisonVersion, range, {
includePrerelease: true,
loose: true
}) //intersects will throw if given undefined so must ward against
(
semver.validRange(range, { loose: true }) &&
!semver.gtr(comparisonVersion, range, {
includePrerelease: true,
loose: true
})
) //intersects will throw if given undefined so must ward against
);
return individualAtLeast || rangeAtLeast;
}
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@types/configstore": "^4.0.0",
"@types/find-up": "^2.1.0",
"@types/lodash": "^4.14.179",
"@types/node": "~12.12.0",
"@types/node": "~18.7.18",
"@types/sinon": "^9.0.10",
"mocha": "9.2.2",
"sinon": "^9.0.2",
Expand Down
1 change: 0 additions & 1 deletion packages/config/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"./typings",
"node_modules/@types/node",
"../../node_modules/@types/mocha",
"../../node_modules/@types/node"
]
},
"include": [
Expand Down
2 changes: 1 addition & 1 deletion packages/contract-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
"ganache": "7.4.0",
"mocha": "9.2.2",
"sinon": "^9.0.2",
"web3": "^4.0.0-alpha.1"
"web3": "^4.0.1-alpha.0"
}
}
Empty file.
5,723 changes: 5,723 additions & 0 deletions packages/contract/dist/truffle-contract.js.map

Large diffs are not rendered by default.

Empty file.
6 changes: 3 additions & 3 deletions packages/contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@
"bignumber.js": "^7.2.1",
"debug": "^4.3.1",
"ethers": "^4.0.32",
"web3": "^4.0.0-alpha.1",
"web3-eth-abi": "^4.0.0-alpha.0",
"web3-utils": "^4.0.0-alpha.1"
"web3": "^4.0.1-alpha.0",
"web3-eth-abi": "^4.0.1-alpha.0",
"web3-utils": "^4.0.1-alpha.0"
},
"devDependencies": {
"assert": "^2.0.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@
"spawn-args": "0.2.0",
"tmp": "^0.2.1",
"universal-analytics": "^0.4.17",
"web3": "^4.0.0-alpha.1",
"web3-utils": "4.0.0-alpha.1",
"web3": "^4.0.1-alpha.0",
"web3-utils": "4.0.1-alpha.0",
"xregexp": "^4.2.4",
"yargs": "^13.3.0"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/db-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"meow": "^9.0.0",
"react": "^16.8.0",
"source-map-support": "^0.5.19",
"web3": "^4.0.0-alpha.1"
"web3": "^4.0.1-alpha.0"
},
"devDependencies": {
"@types/jest": "27.4.1",
Expand All @@ -69,7 +69,7 @@
"typedoc": "0.22.18",
"typescript": "^4.7.4",
"typescript-transform-paths": "3.3.1",
"web3-core": "^4.0.0-alpha.0"
"web3-core": "^4.0.1-alpha.0"
},
"keywords": [
"smart-contract",
Expand Down
4 changes: 2 additions & 2 deletions packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"pouchdb-adapter-node-websql": "^7.0.0",
"pouchdb-debug": "^7.1.1",
"pouchdb-find": "^7.0.0",
"web3-utils": "^4.0.0-alpha.1"
"web3-utils": "^4.0.1-alpha.0"
},
"devDependencies": {
"@fast-check/jest": "^1.0.1",
Expand Down Expand Up @@ -86,7 +86,7 @@
"typedoc": "0.22.18",
"typescript": "^4.7.4",
"typescript-transform-paths": "3.3.1",
"web3": "4.0.0-alpha.1"
"web3": "4.0.1-alpha.0"
},
"keywords": [
"database",
Expand Down
4 changes: 2 additions & 2 deletions packages/debugger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
"redux-saga": "1.0.0",
"reselect-tree": "^1.3.7",
"semver": "7.3.7",
"web3": "^4.0.0-alpha.1",
"web3-eth-abi": "^4.0.0-alpha.0"
"web3": "^4.0.1-alpha.0",
"web3-eth-abi": "^4.0.1-alpha.0"
},
"devDependencies": {
"@babel/core": "^7.16.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/decoder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@truffle/source-map-utils": "^1.3.95",
"bn.js": "^5.1.3",
"debug": "^4.3.1",
"web3-utils": "^4.0.0-alpha.1"
"web3-utils": "^4.0.1-alpha.0"
},
"devDependencies": {
"@truffle/config": "^1.3.37",
Expand All @@ -49,7 +49,7 @@
"mocha": "9.2.2",
"tmp": "^0.2.1",
"typescript": "^4.7.4",
"web3": "4.0.0-alpha.1"
"web3": "4.0.1-alpha.0"
},
"keywords": [
"abi",
Expand Down
4 changes: 2 additions & 2 deletions packages/deployer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@truffle/expect": "^0.1.3",
"debug": "^4.3.1",
"eth-ens-namehash": "^2.0.8",
"web3-utils": "^4.0.0-alpha.1"
"web3-utils": "^4.0.1-alpha.0"
},
"devDependencies": {
"@truffle/config": "^1.3.37",
Expand All @@ -33,7 +33,7 @@
"ganache": "7.4.0",
"mocha": "9.2.2",
"sinon": "^9.0.2",
"web3": "4.0.0-alpha.1"
"web3": "4.0.1-alpha.0"
},
"keywords": [
"contracts",
Expand Down
4 changes: 2 additions & 2 deletions packages/encoder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"bn.js": "^5.1.3",
"debug": "^4.3.1",
"lodash": "^4.17.21",
"web3-utils": "^4.0.0-alpha.1"
"web3-utils": "^4.0.1-alpha.0"
},
"devDependencies": {
"@fast-check/jest": "^1.0.1",
Expand Down Expand Up @@ -64,7 +64,7 @@
"ts-jest": "28.0.7",
"typescript": "^4.7.4",
"utf8": "^3.0.0",
"web3": "4.0.0-alpha.1"
"web3": "4.0.1-alpha.0"
},
"keywords": [
"abi",
Expand Down
2 changes: 1 addition & 1 deletion packages/environment/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"ganache": "7.4.0",
"node-ipc": "9.2.1",
"source-map-support": "^0.5.19",
"web3": "^4.0.0-alpha.1"
"web3": "^4.0.1-alpha.0"
},
"devDependencies": {
"debug": "^4.3.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/events/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"@truffle/spinners": "^0.2.2",
"debug": "^4.3.1",
"emittery": "^0.4.1",
"web3-utils": "^4.0.0-alpha.1"
"web3-utils": "^4.0.1-alpha.0"
}
}
2 changes: 1 addition & 1 deletion packages/external-compile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@truffle/expect": "^0.1.3",
"debug": "^4.3.1",
"glob": "^7.1.6",
"web3-utils": "^4.0.0-alpha.1"
"web3-utils": "^4.0.1-alpha.0"
},
"devDependencies": {
"chai": "^4.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/fetch-and-compile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@truffle/source-fetcher": "^1.0.17",
"debug": "^4.3.2",
"semver": "7.3.7",
"web3-utils": "^4.0.0-alpha.1"
"web3-utils": "^4.0.1-alpha.0"
},
"devDependencies": {
"@truffle/compile-common": "^0.8.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/hdwallet-provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
"mocha": "9.2.2",
"ts-node": "10.7.0",
"typescript": "^4.7.4",
"web3": "^4.0.0-alpha.1"
"web3": "^4.0.1-alpha.0"
},
"keywords": [
"etheruem",
Expand Down
4 changes: 2 additions & 2 deletions packages/interface-adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
"dependencies": {
"bn.js": "^5.1.3",
"ethers": "^4.0.32",
"web3": "^4.0.0-alpha.1",
"web3-utils": "^4.0.0-alpha.1"
"web3": "^4.0.1-alpha.0",
"web3-utils": "^4.0.1-alpha.0"
},
"devDependencies": {
"@types/bn.js": "^5.1.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/provider/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@truffle/error": "^0.1.1",
"@truffle/interface-adapter": "^0.5.21",
"debug": "^4.3.1",
"web3": "^4.0.0-alpha.1"
"web3": "^4.0.1-alpha.0"
},
"devDependencies": {
"ganache": "7.4.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/require/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"npm-run-all": "^4.1.5",
"ts-node": "10.7.0",
"typescript": "^4.7.4",
"web3": "1.7.4"
"web3": "^4.0.1-alpha.0"
},
"peerDependencies": {
"ts-node": "*"
Expand Down
2 changes: 1 addition & 1 deletion packages/resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"fs-extra": "^9.1.0",
"get-installed-path": "^4.0.8",
"glob": "^7.1.6",
"web3-utils": "^4.0.0-alpha.1"
"web3-utils": "^4.0.1-alpha.0"
},
"devDependencies": {
"@types/node": "~12.12.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/source-fetcher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"axios": "0.27.2",
"debug": "^4.3.1",
"node-abort-controller": "^3.0.1",
"web3-utils": "^4.0.0-alpha.1"
"web3-utils": "^4.0.1-alpha.0"
},
"devDependencies": {
"@types/async-retry": "^1.4.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/source-map-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"debug": "^4.3.1",
"json-pointer": "^0.6.1",
"node-interval-tree": "^1.3.3",
"web3-utils": "^4.0.0-alpha.1"
"web3-utils": "^4.0.1-alpha.0"
},
"keywords": [
"contracts",
Expand Down
2 changes: 1 addition & 1 deletion packages/truffle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"shebang-loader": "0.0.1",
"stream-buffers": "^3.0.1",
"tmp": "^0.2.1",
"web3": "^4.0.0-alpha.1",
"web3": "^4.0.1-alpha.0",
"webpack": "^5.73.0",
"webpack-bundle-analyzer": "^3.0.3",
"webpack-cli": "^4.10.0",
Expand Down
Loading

0 comments on commit c4cecf1

Please sign in to comment.