You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

elm-tooling

Package Overview
Dependencies
Maintainers
2
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Previous
134
Next

1.8.0

Diff

Changelog

Source

Version 1.8.0 (2022-04-16)

  • Added: elm-test-rs 2.0.1.
lydell
published 1.7.0 •

Changelog

Source

Version 1.7.0 (2021-12-02)

  • Added: elm-test-rs 2.0.0.
  • Removed: elm-tooling init no longer creates "entrypoints" in elm-tooling.json. The Elm Language Server no longer needs it, and that was the only tool using it. "entrypoints" has also been removed from the spec.
  • Removed: the elm-tooling validate command. Since "entrypoints" was removed, the only remaining field is "tools". If elm-tooling install succeeds your elm-tooling.json is valid, so there’s no need for the elm-tooling validate command anymore. The spec explains why it won’t be needed in the future either. Note: To avoid a breaking change, elm-tooling validate is now a hidden command that always exits with code 0, keeping the same API as before. (The human readable output is different – it’s now just a message saying that the validate command no longer exists.)
lydell
published 1.6.0 •

Changelog

Source

Version 1.6.0 (2021-09-19)

  • Added: elm-test-rs 1.2.2.
lydell
published 1.5.0 •

Changelog

Source

Version 1.5.0 (2021-09-08)

  • Added: elm-test-rs 1.2.1.
lydell
published 1.4.1 •

Changelog

Source

Version 1.4.1 (2021-08-22)

  • Fixed: The package build improvements in 1.4.0 accidentally broke the package exports. (exports['default'] = elmToolingCli; was shipped instead of the correct module.exports = elmToolingCli;.) This is fixed in 1.4.1, and I’ve added a regression test so it won’t happen again.
lydell
published 1.4.0 •

Changelog

Source

Version 1.4.0 (2021-08-11)

🚨 Note: The package exports of this version are broken, so this version is deprecated. Update to 1.4.1.

  • Fixed: Some people configure curl to output an extra newline. The way elm-tooling uses curl, that results in an extra newline added to downloaded executables. While an extra newline doesn’t seem to break executables, it fails elm-tooling’s SHA256 verification, causing elm-tooling to abort with an error message like this:

    elm 0.19.1
      < https://github.com/elm/compiler/releases/download/0.19.1/binary-for-linux-64-bit.gz
      > /home/you/.elm/elm-tooling/elm/0.19.1/elm
      The downloaded file does not have the expected hash!
      Expected: e44af52bb27f725a973478e589d990a6428e115fe1bb14f03833134d6c0f155c
      Actual:   e8b796172746fc7e2cd4edfd2e5a72d49ae38ddd89624caf16c6fa7226cb43c3
    

    It’s usually a good thing that the user’s curl config file (~/.curlrc) is respected, because it allows people to configure a proxy. But in this case it’s bad.

    To solve this problem, elm-tooling now overrides the option (-w, --write-out) that lets you add a newline (or anything, really) to the output. Thanks to Zach Rose (@windmountain) for reporting initially, and to Jakub Waszczuk (@kawu) and Tomáš Látal (kraklin) for re-reporting and figuring out what the problem was!

  • Improved: If something like the above happens in the future, the error message is better:

    elm 0.19.1
      < https://github.com/elm/compiler/releases/download/0.19.1/binary-for-linux-64-bit.gz
      > /home/you/.elm/elm-tooling/elm/0.19.1/elm
    
      The downloaded file does not have the expected number of bytes!
      Expected: 6034617
      Actual:   6034616
    
      - Probably, something in your environment messes with the download.
      - Worst case, someone has replaced the executable with something malicious!
    
      This happened when executing:
      curl -#fLw "" https://github.com/elm/compiler/releases/download/0.19.1/binary-for-mac-64-bit.gz
    
      Do you have a config file or environment variables set for curl?
    

    There are a number of improvements here:

    • elm-tooling now not only verifies the SHA256 hash, but first also the number of bytes. That’s much easier to debug than a hash mismatch. And potentially more secure: An attacker would not just need to find a hash collision, but a hash collision using this exact number of bytes.
    • There’s some extra text trying to explain what a byte/hash mismatch means.
    • The exact command ran is shown, which is great for troubleshooting.
    • And there’s a hint about looking for old config files you’ve forgotten about.

    wget, tar and Node.js native https.get() calls have been similarly improved.

  • Improved: The output of elm-tooling install is now less noisy in CI. Previously, if you downloaded elm, elm-format and elm-json at the same time, elm-tooling would print the progress of all three any time just one of them received some more bytes! That resulted in many duplicate lines. Now, only the tool that got an update is printed, resulting in a plain old log. As a bonus, this made the interactive output ever so slightly more efficient, too!

  • Improved: The npm package now contains just 3 JS files, instead of 12. This results in a slightly smaller and (in theory) faster package!

  • Improved: I’ve done some internal refactoring to make the code more type safe. Always a confidence boost!

lydell
published 1.3.0 •

Changelog

Source

Version 1.3.0 (2021-02-28)

  • Added: elm-test-rs 1.0.0.
lydell
published 1.2.1 •

Changelog

Source

Version 1.2.1 (2021-02-27)

  • Fixed: elm-tooling install now works in Git Bash on Windows. Travis CI uses Git Bash by default in their Windows environment.
lydell
published 1.2.0 •

Changelog

Source

Version 1.2.0 (2021-02-09)

  • Added: elm-format 0.8.5.
lydell
published 1.1.0 •

Changelog

Source

Version 1.1.0 (2021-01-23)

  • Added: elm-json 0.2.10.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc