Skip to content

Releases: jfmengels/node-elm-review

v2.4.4 - Improve parsing of --rules

06 Mar 17:15
Compare
Choose a tag to compare

Fix misparsing rules when --rules is used several times and with commas 27258e1

v2.4.3...v2.4.4

CLI flag errors

06 Mar 17:15
Compare
Choose a tag to compare
  • Much better errors when CLI flags are misused
  • Error when unknown CLI flags are given

Screenshot from 2021-03-05 22-31-28
Screenshot from 2021-03-05 22-32-01
Screenshot from 2021-03-05 22-54-51
Screenshot from 2021-03-05 22-55-38
Screenshot from 2021-03-06 11-05-22

Fix crash when running inside projects with package.json with "type": "module"

11 Feb 21:33
Compare
Choose a tag to compare
  • Fixes a crash when running elm-review inside a project which has a package.json containing the "type": "module" property.
  • Bump dependencies for new-package
  • Fix a problem when running npm ci in a package created by new-package
  • Some improvements in the internal test suite
  • Use a newer version of elm-json which should work on M1 computers

v2.4.1...v2.4.2

Parse Elm code using the user-defined elm-syntax version

03 Feb 15:40
Compare
Choose a tag to compare
  • Parse Elm code using the elm-syntax version defined in your review configuration (Fixes #14)
  • Improved unexpected error message report

Individual commits

  • Update test snapshots 5823be2
  • Stop running the build script in the e2e tests 4137edf
  • Add type annotation d58f5ee
  • XO fixes 8aa78f3
  • Move Debug.log b3ae61b
  • Remove pre-built Elm parser app ca65df4
  • Skip parser build if it is already present in cache 2f8147f
  • Move declaration 0874d4f
  • Create temp folder later fa66045
  • Compile with version of elm-syntax in the user's elm.json a3c9a35
  • Compile the temporary build folder 97c37a7
  • Write an elm.json file in the temporary build folder a4d69f5
  • Add -debug to the parser module when --debug is used 739f853
  • Add Debug.log to mention what version f elm-syntax is being used a60cbe7
  • Parse using the elm-syntax version from the review app dd3163d
  • Pass elmParserPath in the queue item 2bdbbeb
  • Stop passing elmParserPath to worker directly 6d1822f
  • Pass object to parse-elm-worker fb65ad1
  • Pass elm syntax version to worker 8a4cf70
  • Successfully compile parseElm ee37582
  • Fix path to parseElm Main file 73710fa
  • Attempt to build the elmParser project a048e3d
  • Capitalize builder import 3b6c482
  • Export compileElmProject 1da4067
  • Add compileTargets arguments for compileElmProject 857ae4f
  • Remove unnecessary dependencies for parseElm application 4258db0
  • Add function to build the elm parser app b0cf84e
  • Call uglifyjs using npx ba255ea
  • Update snapshots with new version of elm-review-debug 0c111cf
  • Use cross-spawn directly instead of cross-spawn-promise 29c81ad
  • Improve elm-json stderr message extraction 3bc0ac6
  • Update version in snapshot b7e5ca8

v2.4.0...v2.4.1-beta.1

Add missing files

02 Feb 09:43
Compare
Choose a tag to compare
Add missing files Pre-release
Pre-release
  • Include parseElm package in the published files 9d6742b

v2.4.1-beta.1...v2.4.1-beta.2

Parse Elm code using the user-defined elm-syntax version

02 Feb 09:37
Compare
Choose a tag to compare
  • Parse Elm code using the elm-syntax version defined in your review configuration (Fixes #14)
  • Improved unexpected error message report

Individual commits

  • Update test snapshots 5823be2
  • Stop running the build script in the e2e tests 4137edf
  • Add type annotation d58f5ee
  • XO fixes 8aa78f3
  • Move Debug.log b3ae61b
  • Remove pre-built Elm parser app ca65df4
  • Skip parser build if it is already present in cache 2f8147f
  • Move declaration 0874d4f
  • Create temp folder later fa66045
  • Compile with version of elm-syntax in the user's elm.json a3c9a35
  • Compile the temporary build folder 97c37a7
  • Write an elm.json file in the temporary build folder a4d69f5
  • Add -debug to the parser module when --debug is used 739f853
  • Add Debug.log to mention what version f elm-syntax is being used a60cbe7
  • Parse using the elm-syntax version from the review app dd3163d
  • Pass elmParserPath in the queue item 2bdbbeb
  • Stop passing elmParserPath to worker directly 6d1822f
  • Pass object to parse-elm-worker fb65ad1
  • Pass elm syntax version to worker 8a4cf70
  • Successfully compile parseElm ee37582
  • Fix path to parseElm Main file 73710fa
  • Attempt to build the elmParser project a048e3d
  • Capitalize builder import 3b6c482
  • Export compileElmProject 1da4067
  • Add compileTargets arguments for compileElmProject 857ae4f
  • Remove unnecessary dependencies for parseElm application 4258db0
  • Add function to build the elm parser app b0cf84e
  • Call uglifyjs using npx ba255ea
  • Update snapshots with new version of elm-review-debug 0c111cf
  • Use cross-spawn directly instead of cross-spawn-promise 29c81ad
  • Improve elm-json stderr message extraction 3bc0ac6
  • Update version in snapshot b7e5ca8

v2.4.0...v2.4.1-beta.1

2.4.0

13 Jan 16:03
Compare
Choose a tag to compare

New report mode

I added an entry in the --help for --report=json, which makes elm-review print a big JSON instead of the human-readable report you're used to, allowing for other tools to make use of it. This feature already existed but wasn't documentated.
I also added a new report mode --report=ndjson. Instead of printing one big JSON with all the errors, the CLI will instead print each error on a separate line. This can be useful if you want to send elm-review errors to a logging system for instance.
Both of these are described in detail in the dedicated tooling integration document.

Using elm-tooling

elm-json, which is used to compute the dependencies when building your configuration, is now not a dependency of this project anymore. Instead, we depend on @lydell's recently released elm-tooling, which downloads elm-json automatically or re-uses the one you already have on your system if available. This reduces the size of elm-review's node_modules from 20MB to 5.9MB!

I think elm-review will using elm-tooling more and more. Thanks a lot for both the tool and the PR @lydell!

Bug fixes

  • Fixed mislocated underlines in the report (thanks to @lydell)
  • Fixed a bug where elm-review would exit without having printed everything when using --report=json (thanks to @Arkham)
  • Fixed crash when applying a fix when running elm-review from somewhere else than the root of the project.

Misc

  • Made the test script in new-package-created projects runnable on Windows (thanks to @fredericbonnet)
  • Prevented some unwanted files to get into the published package.

v2.4.0-beta.2

16 Oct 06:53
Compare
Choose a tag to compare
v2.4.0-beta.2 Pre-release
Pre-release
  • Ensure we finish writing the report to stdout 301a561 (Thanks @Arkham!)
  • Make diff include which are the files we are comparing b5e38fb
  • Remove Travis 4e60174
  • Add GitHub actions config de5de4d
  • Get tests passing again (#22) 06e892e (Thanks @Arkham again!)
  • Remove extra argument to Init.create a68dea8
  • Update version in snapshots 80a0ff4

v2.4.0-beta.1...v2.4.0-beta.2

Add --report=ndjson flag

07 Oct 10:43
Compare
Choose a tag to compare
Pre-release
  • Add --report=ndjson variant which prints errors on one line 3d7ba6a
  • new-package: Make the test script runnable on Windows a310ab6
  • Add explanations for the presence of new-package/review-config-templates 338b430
  • Do not include new-package review-config-templates in npm package 93375d8
  • Update version in snapshots 5e3ac31

v2.3.3...v2.4.0-beta.1

npm package size reduction and dependency updates

24 Sep 13:42
Compare
Choose a tag to compare
  • Delete unnecessary files from npm package (85% reduction in the published size) 2262996
  • Do not include elm-stuff files in the published package 95a302f
  • new-package: Bump elm-format to 0.8.4 3da5e1d
  • new-package: Bump elm-test for new projects f9acd10
  • Bump elm-test for node-elm-review project dfa07c5
  • Update version in snapshots 9a85154

v2.3.2...v2.3.3