Skip to content

Commit

Permalink
2.0.26
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmengels committed Feb 6, 2023
1 parent 294d26e commit b93df7b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 5 deletions.
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
# Changelog

## [2.0.25] - 2023-01-20
## [2.0.26] - 2023-02-06

The simplification `String.slice 0 n str` -> `String.left n str` has been removed because they were not necessarily equivalent. In the case where `n` is negative, then the behavior of the 2 functions differ.

The rule now simplifies:
- `List.member a []` to `False`
- `List.member a [ a, b, c ]` to `True`


## [2.0.25] - 2023-02-02

The rule now simplifies:
- `String.fromList []` to `""`
Expand Down Expand Up @@ -265,6 +274,9 @@ The rule now simplifies:

Help would be appreciated to fill the blanks!

[2.0.26]: https://github.com/jfmengels/elm-review-simplify/releases/tag/2.0.26
[2.0.25]: https://github.com/jfmengels/elm-review-simplify/releases/tag/2.0.25
[2.0.24]: https://github.com/jfmengels/elm-review-simplify/releases/tag/2.0.24
[2.0.23]: https://github.com/jfmengels/elm-review-simplify/releases/tag/2.0.23
[2.0.22]: https://github.com/jfmengels/elm-review-simplify/releases/tag/2.0.22
[2.0.21]: https://github.com/jfmengels/elm-review-simplify/releases/tag/2.0.21
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Provides [`elm-review`](https://package.elm-lang.org/packages/jfmengels/elm-revi

## Provided rules

- [🔧 `Simplify`](https://package.elm-lang.org/packages/jfmengels/elm-review-simplify/2.0.25/Simplify/ "Provides automatic fixes") - Reports when an expression can be simplified.
- [🔧 `Simplify`](https://package.elm-lang.org/packages/jfmengels/elm-review-simplify/2.0.26/Simplify/ "Provides automatic fixes") - Reports when an expression can be simplified.

## Configuration

Expand Down
2 changes: 1 addition & 1 deletion docs.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "jfmengels/elm-review-simplify",
"summary": "Provides elm-review rules to simplify Elm code",
"license": "BSD-3-Clause",
"version": "2.0.25",
"version": "2.0.26",
"exposed-modules": [
"Simplify"
],
Expand Down
2 changes: 1 addition & 1 deletion example/elm.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"jfmengels/elm-review": "2.10.0",
"pzp1997/assoc-list": "1.0.0",
"stil4m/elm-syntax": "7.2.9",
"jfmengels/elm-review-simplify": "2.0.25"
"jfmengels/elm-review-simplify": "2.0.26"
},
"indirect": {
"elm/bytes": "1.0.8",
Expand Down

0 comments on commit b93df7b

Please sign in to comment.