Skip to content

Commit

Permalink
Merge pull request #562 from protofire/pre-release-v450
Browse files Browse the repository at this point in the history
pre-release v4.5.0
  • Loading branch information
dbale-altoros authored Mar 15, 2024
2 parents a9ff23b + f93d6ad commit 6ae3f4b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 11 deletions.
45 changes: 35 additions & 10 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,54 @@

## [4.2.0] - 2024-03-15
## [4.5.0] - 2024-03-15

### Updated
- Rule: named-return-values rule was renamed to gas-named-return-values and now it is part of Gas Consumption ruleset
- Rule: custom-errors rule was renamed to gas-custom-errors and now it is part of Gas Consumption ruleset


## [4.1.2] - 2024-02-06

### Updated
- Update references in package json [#530](https://github.com/protofire/solhint/pull/530)
- Update dependencies in package json [#548](https://github.com/protofire/solhint/pull/548)
- Custom errors rules checks from 0.8.4 forward before warning [#555](https://github.com/protofire/solhint/pull/555)
- Parser support up to Solidity 0.8.22 (*)

(*) Note: Solhint can work with latest Solidity versions.
If new grammar/syntax is added or changed, it could give some false positives or miss a rule.
But overall functionality will work as expected.


### Added
- New Rule: Interface starts with `i` [#557](https://github.com/protofire/solhint/pull/557)

#### Gas Consumption Rules
- New Rule: [GC] Mutlitoken1155 rule [#541](https://github.com/protofire/solhint/pull/541)
- New Rule: [GC] Small strings check [#542](https://github.com/protofire/solhint/pull/542)
- New Rule: [GC] Indexed events [#543](https://github.com/protofire/solhint/pull/543)
- New Rule: [GC] Calldata parameters [#544](https://github.com/protofire/solhint/pull/544)
- New Rule: [GC] Increment by one [#545](https://github.com/protofire/solhint/pull/545)
- New Rule: [GC] Struct packing [#546](https://github.com/protofire/solhint/pull/546)
- New Rule: [GC] Name Return Values [#552](https://github.com/protofire/solhint/pull/552)
- New Rule: [GC] Custom Errors #553 [#555](https://github.com/protofire/solhint/pull/553)
- New Rule: [GC] Dot Length in Loops [#559](https://github.com/protofire/solhint/pull/559)
- New Rule: [GC] Gas Strict Inequalities [#560](https://github.com/protofire/solhint/pull/560)


### Fixed
- `explicit-types` logic improved and bug free [#551](https://github.com/protofire/solhint/pull/551)
- `payable fallback` Improved behavior [#561](https://github.com/protofire/solhint/pull/561)



### BREAKING CHANGES
- `named-return-values` rule was renamed to gas-named-return-values and now it is part of Gas Consumption ruleset [#552](https://github.com/protofire/solhint/pull/552)
- `custom-errors` rule was renamed to gas-custom-errors and now it is part of Gas Consumption ruleset [#553](https://github.com/protofire/solhint/pull/553)
- Return error 0 when executed correctly [#554](https://github.com/protofire/solhint/pull/554)
- Default severity modified to `WARN` instead of `OFF` for
`foundry-test-functions` and `named-parameters-mapping` rules [#556](https://github.com/protofire/solhint/pull/556)




## [4.1.1] - 2024-01-08

### Fixed
- Fix changelog typos



## [4.1.0] - 2024-01-08

### Updated
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "solhint",
"version": "4.2.0",
"version": "4.5.0",
"description": "Solidity Code Linter",
"main": "lib/index.js",
"keywords": [
Expand Down

0 comments on commit 6ae3f4b

Please sign in to comment.