diff --git a/package-lock.json b/package-lock.json index ba443b13b..2b027cd09 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,19 +14,19 @@ "semver": "^7.7.1" }, "devDependencies": { - "@babel/code-frame": "^7.26.2", + "@babel/code-frame": "^7.27.1", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "^9.25.1", + "@eslint/js": "^9.26.0", "@types/jest": "^29.5.14", "@types/semver": "^7.7.0", - "@typescript-eslint/eslint-plugin": "^8.31.0", - "@typescript-eslint/parser": "^8.31.0", + "@typescript-eslint/eslint-plugin": "^8.32.0", + "@typescript-eslint/parser": "^8.32.0", "c8": "^10.1.3", "cross-env": "^7.0.3", - "eslint": "^9.25.1", - "eslint-config-prettier": "^10.1.2", - "esm-utils": "^4.3.0", - "globals": "^16.0.0", + "eslint": "^9.26.0", + "eslint-config-prettier": "^10.1.5", + "esm-utils": "^4.4.2", + "globals": "^16.1.0", "jest": "^29.7.0", "jest-light-runner": "^0.7.8", "jest-snapshot-serializer-ansi": "^2.2.1", @@ -34,11 +34,11 @@ "jest-watch-typeahead": "^2.2.2", "lines-and-columns": "^2.0.4", "prettier": "^3.5.3", - "solc": "^0.8.29", + "solc": "^0.8.30", "ts-loader": "^9.5.2", "ts-node": "^10.9.2", "typescript": "^5.8.3", - "webpack": "^5.99.7", + "webpack": "^5.99.8", "webpack-cli": "^6.0.1" }, "engines": { @@ -2632,9 +2632,9 @@ } }, "node_modules/caniuse-lite": { - "version": "1.0.30001686", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001686.tgz", - "integrity": "sha512-Y7deg0Aergpa24M3qLC5xjNklnKnhsmSyR/V89dLZ1n0ucJIFNs7PgR2Yfa/Zf6W79SbBicgtGxZr2juHkEUIA==", + "version": "1.0.30001717", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001717.tgz", + "integrity": "sha512-auPpttCq6BDEG8ZAuHJIplGw6GODhjw+/11e7IjpnYCxZcW/ONgPs0KVBJ0d1bY3e2+7PRe5RCLyP+PfwVgkYw==", "dev": true, "funding": [ { @@ -7367,10 +7367,11 @@ } }, "node_modules/solc": { - "version": "0.8.29", - "resolved": "https://registry.npmjs.org/solc/-/solc-0.8.29.tgz", - "integrity": "sha512-M1hmcsejAtT1RWC+wy45Oi8a82nSnDl65wDzA3/8uWTC7R7VcnrMVIHv6/LHqnQPZ7OM2RIeKh3zpNo4E5lYbw==", + "version": "0.8.30", + "resolved": "https://registry.npmjs.org/solc/-/solc-0.8.30.tgz", + "integrity": "sha512-9Srk/gndtBmoUbg4CE6ypAzPQlElv8ntbnl6SigUBAzgXKn35v87sj04uZeoZWjtDkdzT0qKFcIo/wl63UMxdw==", "dev": true, + "license": "MIT", "dependencies": { "command-exists": "^1.2.8", "commander": "^8.1.0", diff --git a/package.json b/package.json index 0a639ab51..0b5958911 100644 --- a/package.json +++ b/package.json @@ -83,19 +83,19 @@ "node": ">=18" }, "devDependencies": { - "@babel/code-frame": "^7.26.2", + "@babel/code-frame": "^7.27.1", "@eslint/eslintrc": "^3.3.1", - "@eslint/js": "^9.25.1", + "@eslint/js": "^9.26.0", "@types/jest": "^29.5.14", "@types/semver": "^7.7.0", - "@typescript-eslint/eslint-plugin": "^8.31.0", - "@typescript-eslint/parser": "^8.31.0", + "@typescript-eslint/eslint-plugin": "^8.32.0", + "@typescript-eslint/parser": "^8.32.0", "c8": "^10.1.3", "cross-env": "^7.0.3", - "eslint": "^9.25.1", - "eslint-config-prettier": "^10.1.2", - "esm-utils": "^4.3.0", - "globals": "^16.0.0", + "eslint": "^9.26.0", + "eslint-config-prettier": "^10.1.5", + "esm-utils": "^4.4.2", + "globals": "^16.1.0", "jest": "^29.7.0", "jest-light-runner": "^0.7.8", "jest-snapshot-serializer-ansi": "^2.2.1", @@ -103,11 +103,11 @@ "jest-watch-typeahead": "^2.2.2", "lines-and-columns": "^2.0.4", "prettier": "^3.5.3", - "solc": "^0.8.29", + "solc": "^0.8.30", "ts-loader": "^9.5.2", "ts-node": "^10.9.2", "typescript": "^5.8.3", - "webpack": "^5.99.7", + "webpack": "^5.99.8", "webpack-cli": "^6.0.1" }, "dependencies": { diff --git a/tests/format/HexLiteral/HexLiteral.sol b/tests/format/HexLiteral/HexLiteral.sol index 109dca288..a8960aed3 100644 --- a/tests/format/HexLiteral/HexLiteral.sol +++ b/tests/format/HexLiteral/HexLiteral.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract HexLiteral { bytes8 hex1 = hex'DeadBeef'; diff --git a/tests/format/HexLiteral/__snapshots__/format.test.js.snap b/tests/format/HexLiteral/__snapshots__/format.test.js.snap index ee96ae0a2..4a90d6bb7 100644 --- a/tests/format/HexLiteral/__snapshots__/format.test.js.snap +++ b/tests/format/HexLiteral/__snapshots__/format.test.js.snap @@ -8,7 +8,7 @@ singleQuote: false | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract HexLiteral { bytes8 hex1 = hex'DeadBeef'; @@ -17,7 +17,7 @@ contract HexLiteral { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract HexLiteral { bytes8 hex1 = hex"DeadBeef"; @@ -35,7 +35,7 @@ singleQuote: true | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract HexLiteral { bytes8 hex1 = hex'DeadBeef'; @@ -44,7 +44,7 @@ contract HexLiteral { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract HexLiteral { bytes8 hex1 = hex'DeadBeef'; diff --git a/tests/format/ModifierInvocations/ModifierInvocations.sol b/tests/format/ModifierInvocations/ModifierInvocations.sol index 25626d0f2..f2bbcf644 100644 --- a/tests/format/ModifierInvocations/ModifierInvocations.sol +++ b/tests/format/ModifierInvocations/ModifierInvocations.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract ModifierDefinitions { // We enforce the use of parentheses in modifiers without parameters. diff --git a/tests/format/ModifierInvocations/__snapshots__/format.test.js.snap b/tests/format/ModifierInvocations/__snapshots__/format.test.js.snap index 021a74cc6..639b5384f 100644 --- a/tests/format/ModifierInvocations/__snapshots__/format.test.js.snap +++ b/tests/format/ModifierInvocations/__snapshots__/format.test.js.snap @@ -7,7 +7,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract ModifierDefinitions { // We enforce the use of parentheses in modifiers without parameters. @@ -26,7 +26,7 @@ contract ModifierInvocations is ModifierDefinitions { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract ModifierDefinitions { // We enforce the use of parentheses in modifiers without parameters. diff --git a/tests/format/NumberLiteral/NumberLiteral.sol b/tests/format/NumberLiteral/NumberLiteral.sol index 3dd35e56d..c27c91768 100644 --- a/tests/format/NumberLiteral/NumberLiteral.sol +++ b/tests/format/NumberLiteral/NumberLiteral.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract NumberLiteral { function numbers()public { diff --git a/tests/format/NumberLiteral/__snapshots__/format.test.js.snap b/tests/format/NumberLiteral/__snapshots__/format.test.js.snap index 31300a1f8..f331aa3a4 100644 --- a/tests/format/NumberLiteral/__snapshots__/format.test.js.snap +++ b/tests/format/NumberLiteral/__snapshots__/format.test.js.snap @@ -7,7 +7,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract NumberLiteral { function numbers()public { @@ -22,7 +22,7 @@ contract NumberLiteral { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract NumberLiteral { function numbers() public { diff --git a/tests/format/Parentheses/AddNoParentheses.sol b/tests/format/Parentheses/AddNoParentheses.sol index 4f81b78d5..eb33c1d5b 100644 --- a/tests/format/Parentheses/AddNoParentheses.sol +++ b/tests/format/Parentheses/AddNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract AddNoParentheses { function addAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/BitAndNoParentheses.sol b/tests/format/Parentheses/BitAndNoParentheses.sol index 3f20e7ee4..6cef2489a 100644 --- a/tests/format/Parentheses/BitAndNoParentheses.sol +++ b/tests/format/Parentheses/BitAndNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract BitAndNoParentheses { function bitAndAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/BitOrNoParentheses.sol b/tests/format/Parentheses/BitOrNoParentheses.sol index b3b6e3e93..9f74ce0f5 100644 --- a/tests/format/Parentheses/BitOrNoParentheses.sol +++ b/tests/format/Parentheses/BitOrNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract BitOrNoParentheses { function bitOrAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/BitXorNoParentheses.sol b/tests/format/Parentheses/BitXorNoParentheses.sol index 3619143d0..88ccb52b7 100644 --- a/tests/format/Parentheses/BitXorNoParentheses.sol +++ b/tests/format/Parentheses/BitXorNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract BitXorNoParentheses { function bitXorAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/DivNoParentheses.sol b/tests/format/Parentheses/DivNoParentheses.sol index 52717ae44..7e57fbbbf 100644 --- a/tests/format/Parentheses/DivNoParentheses.sol +++ b/tests/format/Parentheses/DivNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract DivNoParentheses { function divAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/ExpNoParentheses.sol b/tests/format/Parentheses/ExpNoParentheses.sol index 3fb91d65e..b9f97c11f 100644 --- a/tests/format/Parentheses/ExpNoParentheses.sol +++ b/tests/format/Parentheses/ExpNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract ExpNoParentheses { function expAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/LogicNoParentheses.sol b/tests/format/Parentheses/LogicNoParentheses.sol index 2345f549f..09dde0c68 100644 --- a/tests/format/Parentheses/LogicNoParentheses.sol +++ b/tests/format/Parentheses/LogicNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract LogicNoParentheses { function orOr(bool a, bool b, bool c) public pure returns (bool) { diff --git a/tests/format/Parentheses/ModNoParentheses.sol b/tests/format/Parentheses/ModNoParentheses.sol index 15050bdb9..d0b75479b 100644 --- a/tests/format/Parentheses/ModNoParentheses.sol +++ b/tests/format/Parentheses/ModNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract ModNoParentheses { function modAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/MulNoParentheses.sol b/tests/format/Parentheses/MulNoParentheses.sol index 5c33e83c8..6914fe152 100644 --- a/tests/format/Parentheses/MulNoParentheses.sol +++ b/tests/format/Parentheses/MulNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract MulNoParentheses { function mulAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/ShiftLNoParentheses.sol b/tests/format/Parentheses/ShiftLNoParentheses.sol index 6bf3aa5e8..55090ea46 100644 --- a/tests/format/Parentheses/ShiftLNoParentheses.sol +++ b/tests/format/Parentheses/ShiftLNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract ShiftLNoParentheses { function shiftLAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/ShiftRNoParentheses.sol b/tests/format/Parentheses/ShiftRNoParentheses.sol index af677ea33..0e8777834 100644 --- a/tests/format/Parentheses/ShiftRNoParentheses.sol +++ b/tests/format/Parentheses/ShiftRNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract ShiftRNoParentheses { function shiftRAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/SubNoParentheses.sol b/tests/format/Parentheses/SubNoParentheses.sol index 6b1aa7858..14d3d7544 100644 --- a/tests/format/Parentheses/SubNoParentheses.sol +++ b/tests/format/Parentheses/SubNoParentheses.sol @@ -1,5 +1,5 @@ // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract SubNoParentheses { function subAdd(uint256 a, uint256 b, uint256 c) diff --git a/tests/format/Parentheses/__snapshots__/format.test.js.snap b/tests/format/Parentheses/__snapshots__/format.test.js.snap index 815377d40..8d2f95ba3 100644 --- a/tests/format/Parentheses/__snapshots__/format.test.js.snap +++ b/tests/format/Parentheses/__snapshots__/format.test.js.snap @@ -7,7 +7,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract AddNoParentheses { function addAdd(uint256 a, uint256 b, uint256 c) @@ -101,7 +101,7 @@ contract AddNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract AddNoParentheses { function addAdd( @@ -203,7 +203,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract BitAndNoParentheses { function bitAndAdd(uint256 a, uint256 b, uint256 c) @@ -297,7 +297,7 @@ contract BitAndNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract BitAndNoParentheses { function bitAndAdd( @@ -399,7 +399,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract BitOrNoParentheses { function bitOrAdd(uint256 a, uint256 b, uint256 c) @@ -493,7 +493,7 @@ contract BitOrNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract BitOrNoParentheses { function bitOrAdd( @@ -595,7 +595,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract BitXorNoParentheses { function bitXorAdd(uint256 a, uint256 b, uint256 c) @@ -689,7 +689,7 @@ contract BitXorNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract BitXorNoParentheses { function bitXorAdd( @@ -791,7 +791,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract DivNoParentheses { function divAdd(uint256 a, uint256 b, uint256 c) @@ -885,7 +885,7 @@ contract DivNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract DivNoParentheses { function divAdd( @@ -987,7 +987,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract ExpNoParentheses { function expAdd(uint256 a, uint256 b, uint256 c) @@ -1081,7 +1081,7 @@ contract ExpNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract ExpNoParentheses { function expAdd( @@ -1183,7 +1183,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract LogicNoParentheses { function orOr(bool a, bool b, bool c) public pure returns (bool) { @@ -1205,7 +1205,7 @@ contract LogicNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract LogicNoParentheses { function orOr(bool a, bool b, bool c) public pure returns (bool) { @@ -1235,7 +1235,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract ModNoParentheses { function modAdd(uint256 a, uint256 b, uint256 c) @@ -1329,7 +1329,7 @@ contract ModNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract ModNoParentheses { function modAdd( @@ -1431,7 +1431,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract MulNoParentheses { function mulAdd(uint256 a, uint256 b, uint256 c) @@ -1525,7 +1525,7 @@ contract MulNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract MulNoParentheses { function mulAdd( @@ -1627,7 +1627,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract ShiftLNoParentheses { function shiftLAdd(uint256 a, uint256 b, uint256 c) @@ -1721,7 +1721,7 @@ contract ShiftLNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract ShiftLNoParentheses { function shiftLAdd( @@ -1823,7 +1823,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract ShiftRNoParentheses { function shiftRAdd(uint256 a, uint256 b, uint256 c) @@ -1917,7 +1917,7 @@ contract ShiftRNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract ShiftRNoParentheses { function shiftRAdd( @@ -2019,7 +2019,7 @@ printWidth: 80 | printWidth =====================================input====================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract SubNoParentheses { function subAdd(uint256 a, uint256 b, uint256 c) @@ -2113,7 +2113,7 @@ contract SubNoParentheses { =====================================output===================================== // SPDX-License-Identifier: MIT -pragma solidity 0.8.29; +pragma solidity 0.8.30; contract SubNoParentheses { function subAdd(