elm-review/CHANGELOG.md
2023-04-08 16:14:00 +02:00

11 KiB

Changelog

2.12.2 - 2023-02-02

Fixed a bug where errors were skipped/ignored when running elm-review after having run elm-review --fix-all #150

2.12.1 - 2023-01-25

Fixed a bug where rules would report false positives in the presence of the file-system cache.

2.12.0 - 2023-01-22

Fixed a bug that ignored fixes from rules that were not marked as providing fixes (using Rule.providesFixesFor*Rule). This was meant to be handled by the CLI, but didn't work as expected.

When the rule uses Review.Rule.withIsFileIgnored, the test runner will now attempt to re-run the rule while ignoring some files (it will do so for every possible combination) and assert that the results are the same. This is to check that the knowledge is only used for performance improvements and change the result. This way, complex rules can avoid writing extremely complicated test setups to test that complex scenarios work behave as expected even when some files are ignored.

Some rules might not wish for this behavior, in which case Review.Test.ignoredFilesImpactResults can be used to opt out of this re-running mechanism.

2.11.1 - 2022-12-20

2.11.0 - 2022-12-17

  • Adds Review.Rule.withIsFileIgnored (#145)
  • Behind the scenes work to allow the CLI to save the internal result cache to the file system.
  • Fixed the test failure message reported when a test was missing an expected extract (it reported the failure message for a different problem).

2.10.0 - 2022-11-08

Faster fixes

Includes a large rework of the internals to include fixes (instead of in the CLI) which results in much faster fixes. See the announcement blog post on the topic.

Breaking change (in the sense that tests will fail): Rules that provide fixes now have to indicate that they will do so, by using Rule.providesFixesForModuleRule or Rule.providesFixesForProjectRule.

Extract feature

Rules can now include a "data extractor" using Rule.withDataExtractor, which allows you to extract information from a project if you run elm-review --extract --report=json. See the "Extract information" section in the README for more information.

New testing functions

The testing API provided in Review.Test worked well, but in cases where you had to report multiple different things, for instance errors for modules + global errors, then you would have to switch to using expectGlobalAndModuleErrors. If you reported local errors + global errors, you would have to use expectGlobalAndLocalErrors, and so on.

With the addition of data extracts, this approach would require a few new functions, because we'd need a combination of all the possible things a rule would report for any given test.

Since this looked like a combinatorial explosion, we are now switching to a different approach. The two functions I just mentioned are now deprecated, and some new functions are introduced to replace them using a more flexible approach, center around the new Review.Test.expect function.

2.9.2 - 2022-10-12

Bumps the dependency to elm-explorations/test to v2. We recommend to upgrade by using elm-json, like this:

cd review/
elm-json upgrade

2.9.1 - 2022-09-19

This release contains HUGE performance updates. elm-review should now run quite a bit faster (rough estimate says 50%).

2.9.0 - 2022-08-23

2.8.1 - 2022-07-17

2.8.0 - 2022-07-05

2.7.2 - 2022-04-26

2.7.1 - 2022-03-18

2.7.0 - 2022-02-04

Missing changelog

Help would be appreciated to fill the blanks!