jfmengels / node-elm-review

CLI for elm-review
https://package.elm-lang.org/packages/jfmengels/elm-review/latest/
BSD 3-Clause "New" or "Revised" License
48 stars 25 forks source link

chore(deps): bump jfmengels/elm-review-simplify from 2.0.22 to 2.1.0 in /review #206

Closed dependabot[bot] closed 3 weeks ago

dependabot[bot] commented 4 months ago

Bumps jfmengels/elm-review-simplify from 2.0.22 to 2.1.0.

Changelog

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

[2.1.0] - 2023-08-15

New opt-in configuration option [expectNaN] which will disable some simplifications when the user indicates their project is likely to use NaN values. This disables the following simplifications:

  • x == x to True
  • List.member x [ x ] to True
  • n * 0 to 0
  • not (a < b) to a >= b (similarly for >, <=, >=, == and /=)

The rule now simplifies:

  • List.any ((==) x) list to List.member x list
  • List.any (\y -> x == y) list to List.member x list
  • n - n to 0
  • -n + n to 0
  • 0 / n to 0
  • n * 0 to 0 is now autofixed

The rule now reports:

  • Immediately invoked anonymous functions (\x y -> x + y) 1 2. This is very simplifiable but there is no autofix because there are varied ways to simplify it.
    • EDIT: This was removed in [2.1.1].

Bug fixes:

  • Fixed an issue where [ [ 1 ], [ 2 ] ] |> List.concat would be incorrectly fixed and cause a compiler error

Misc:

  • Improved error positioning and fixes for errors related to the usage of operators

[2.0.33] - 2023-08-13

The rule now simplifies:

  • a |> f >> g to a |> f |> g

[2.0.32] - 2023-07-11

The rule now simplifies:

  • List.concat [ a, [], b ] to List.concat [ a, b ]

[2.0.31] - 2023-06-25

Now avoids simplifying String.replace when the pattern to find contains \r.

[2.0.30] - 2023-06-25

Fixed an issue where String.replace would be fixed incorrectly (01d3ff)

[2.0.29] - 2023-04-17

The rule now simplifies:

  • Html.Attributes.classList [ x, y, ( z, False ) ] to Html.Attributes.classList [ x, y ]
  • Html.Attributes.classList [ ( onlyOneThing, True ) ] to Html.Attributes.class onlyOneThing

... (truncated)

Commits
  • 1a2d650 2.1.0
  • 59e6117 Add missing entries to the CHANGELOG
  • 7061bce Bump semver from 5.7.1 to 5.7.2
  • bef53ab Don't report if the argument is a lambda
  • 913bd9b Report fully applied lambdas in pipeline
  • 086f520 Report immediately invoked anonymous functions
  • 0d3a996 Extract lambda handling to top-level function
  • 701534a Add 0 / n --> 0 to summary
  • 16fc3ee Add 0 / n --> 0 simplification
  • b341dd7 Simplify not (a < b) to a >= b
  • Additional commits viewable in compare view


Dependabot compatibility score

You can trigger a rebase of this PR 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 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)

Note Automatic rebases have been disabled on this pull request as it has been open for over 30 days.

lishaduck commented 4 months ago

Should be good to merge.

dependabot[bot] commented 3 weeks ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.