Releases: jfmengels/node-elm-review
v2.4.4 - Improve parsing of --rules
Fix misparsing rules when --rules is used several times and with commas 27258e1
CLI flag errors
Fix crash when running inside projects with package.json with "type": "module"
- Fixes a crash when running
elm-review
inside a project which has apackage.json
containing the"type": "module"
property. - Bump dependencies for
new-package
- Fix a problem when running
npm ci
in a package created bynew-package
- Some improvements in the internal test suite
- Use a newer version of
elm-json
which should work on M1 computers
Parse Elm code using the user-defined elm-syntax version
- 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
Add missing files
- Include parseElm package in the published files 9d6742b
Parse Elm code using the user-defined elm-syntax version
- 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
2.4.0
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
- 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
Add --report=ndjson flag
- 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
npm package size reduction and dependency updates
- 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