Skip to content

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Jan 7, 2026

Bumps jfmengels/elm-review-simplify from 2.1.12 to 2.1.13.

Changelog

Sourced from jfmengels/elm-review-simplify's changelog.

[2.1.13] - 2026-01-07

The rule now simplifies:

  • String.length str == 0 to String.isEmpty str (including all the variations mentioned in "Other improvements")
  • List.foldl (\( k, v ) -> f k v) init (Dict.toList dict) to Dict.foldl (\k v -> f k v) init dict (same for foldr)
  • List.head (List.intersperse sep list) to List.head list
  • List.sum (List.reverse list) to List.sum list (same for List.sort, List.sortBy, List.sortWith)
  • List.product (List.reverse list) to List.product list (same for List.sort, List.sortBy, List.sortWith)
  • List.minimum (List.reverse list) to List.minimum list (same for List.sort, List.sortBy, List.sortWith) when [expectNaN] is not enabled
  • List.maximum (List.reverse list) to List.maximum list (same for List.sort, List.sortBy, List.sortWith) when [expectNaN] is not enabled
  • Set.fromList (List.reverse list) to Set.fromList list (same for List.sort, List.sortBy, List.sortWith) when [expectNaN] is not enabled
  • Dict.diff dict (Dict.map f remove) to Dict.diff dict remove
  • Result.toMaybe (Result.mapError f result) to Result.toMaybe result

Other improvements:

  • The various equality checks for lengths/sizes against 0 are now also supported for composition into partially applied prefix operators and also case expressions like
    case Set.size set of
      0 -> x
      _ -> y
    to
    if Set.isEmpty set then
      x
    else
    y

  • In addition, various directional comparisons of lengths/sizes with 0/1 are now also turned into (not on) isEmpty, for example: 0 >= Set.size set to Set.isEmpty set

Bug fixes:

  • Basics.toFloat, Basics.round, Basics.truncate, Basics.floor, Basics.ceiling previously tried to simplify non-literal arguments, leading to issues like floor (1 / 4 * 100) being fixed to 1 / 4 * 100
Commits
  • 96df804 2.1.13
  • 12a88f7 document number conversion bug fix in changelog
  • 906bd2e test that conversion to int and Basics.toFloat do not report non-literal argu...
  • b2b5711 do not use Normalize.getInt when type matters. Introduce AstHelpers.getUncomp...
  • 19050e5 Add Result.toMaybe on Result.toMaybe checks
  • bd0a6e0 Add Dict.diff on Dict.map checks
  • 3e1291a correct unnecessarySpecificFnBeforeCheck to check for specific fn in fully ap...
  • 2046af8 Add List.head on List.intersperse checks
  • c933008 Introduce listReorderOperationsBeforeAreUnnecessaryChecks for List.sum, List....
  • cd379f5 Introduce unnecessarySpecificFnBeforeCheck
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file elm Pull requests that update Elm code labels Jan 7, 2026
@dependabot dependabot bot requested a review from r-k-b as a code owner January 7, 2026 23:32
@dependabot dependabot bot added dependencies Pull requests that update a dependency file elm Pull requests that update Elm code labels Jan 7, 2026
@r-k-b
Copy link
Owner

r-k-b commented Jan 8, 2026

@dependabot recreate

Bumps [jfmengels/elm-review-simplify](https://github.com/jfmengels/elm-review-simplify) from 2.1.12 to 2.1.13.
- [Changelog](https://github.com/jfmengels/elm-review-simplify/blob/main/CHANGELOG.md)
- [Commits](jfmengels/elm-review-simplify@2.1.12...2.1.13)

---
updated-dependencies:
- dependency-name: jfmengels/elm-review-simplify
  dependency-version: 2.1.13
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/elm/review/jfmengels/elm-review-simplify-2.1.13 branch from 46d4e96 to 640e806 Compare January 8, 2026 21:26
@r-k-b r-k-b merged commit 3d46f5d into main Jan 8, 2026
1 check passed
@dependabot dependabot bot deleted the dependabot/elm/review/jfmengels/elm-review-simplify-2.1.13 branch January 8, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file elm Pull requests that update Elm code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant