Skip to content

Latest commit

 

History

History
107 lines (68 loc) · 6 KB

CHANGELOG.md

File metadata and controls

107 lines (68 loc) · 6 KB

Changelog

1.2.3 - 2024-04-10

NoUnused.Variables now finds unused imported functions when they have been shadowed by let destructuring variables. Thanks @matzko.

1.2.2 - 2024-04-02

Fixed issues in NoUnused.Exports where type aliases and custom types would incorrectly be reported. Thanks Eric from the Elm Slack for reporting!

1.2.1 - 2024-04-01

  • NoUnused.Exports now reports (and removes using --fix) elements even if the module is exposing everything (module X exposing (..)) if the element is unused both locally and across the project. Thanks @tfausak.

1.2.0 - 2023-07-28

Add configuration setting for NoUnused.Exports for reporting exports that is only used in non-production code. This includes multiple new functions and types in that module centered around reportUnusedProductionExports.

1.1.30 - 2023-06-16

Fix false positive in NoUnused.CustomTypeConstructors related to non-ASCII constructor names (#79). Thanks @lydell and @marc136.

1.1.29 - 2022-12-07

Fix false positive in NoUnused.CustomTypeConstructors.

1.1.28 - 2022-11-08

Add better support for jfmengels/elm-review v2.10.0.

1.1.27 - 2022-09-19

This release contains HUGE performance updates. Rough benchmarks show some of the slow rules (NoUnused.Exports, NoUnused.CustomTypeConstructors and NoUnused.CustomTypeConstructorArgs) are now 20-40 times faster compared to the previous release.

1.1.26 - 2022-09-11

  • Fixed an issue in NoUnused.Dependencies that led the elm.json to become corrupt

1.1.25 - 2022-09-10

  • NoUnused.Patterns now reports multiple aliases (((A a) as y) as z)
  • NoUnused.Patterns now reports aliases on a variable pattern (name as otherName)
  • NoUnused.Patterns now reports aliases to wildcard (_ as thing) in parameters, and NoUnused.Parameters now doesn't
  • Improved the fixes for NoUnused.Patterns to not include unnecessary patterns
  • Improved the fixes for NoUnused.Patterns to have formatting look more like elm-format

1.1.24 - 2022-09-02

1.1.23 - 2022-08-24

This version merges the NoUnused.Modules into the NoUnused.Exports rule.

A common issue when running elm-review --fix (or --fix-all) was when you had the two rules enabled and encountered an unused module.

While in fix mode, NoUnused.Exports would remove every export one at a time, which would likely be followed by NoUnused.Variables removing the previously exported element. This would go on until the module is as empty as it can be. At this point, you would finally be able to see NoUnused.Modules's error indicating that the module is unused.

Whether you want to remove the module or use it somewhere in response to this message, this is a lot of unnecessary work for you and/or the tool, making --fix-all painfully long.

By having the NoUnused.Exports do the work of both rules, and not reporting any unused exports when the entire module is unused, this situation should not happen anymore, or not as exacerbated.

NoUnused.Modules is therefore now deprecated and should not be used anymore. It is removed from the example configuration.

1.1.22 - 2022-04-14

Missing changelog

Help would be appreciated to fill the blanks!