Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

elm-format

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elm-format - npm Package Versions

13

0.8.1

Diff

Changelog

Source

0.8.1

New features:

  • elm-format now automatically detects your Elm version based on your elm.json or elm-package.json. You can use the --elm-version option if the automatic detection fails.
  • Missing parens are automatically added for import lines

Bug fixes:

  • URLs in doc comments containing special markdown characters are handled more correctly
  • For Elm 0.18 and earlier, tag listings of documented custom types are no longer converted to (..)
  • Listing a value more than once in module documentation no longer results in an invalid module line
  • Code blocks in doc comments containing commented Elm expressions are now correctly separated by a single blank line
  • When converting exposing (..) to an explicit listing, undocumented values are no longer hidden
avh4
published 0.8.1-rc2 •

avh4
published 0.8.1-rc1 •

avh4
published 0.8.0 •

Changelog

Source

0.8.0

Features promoted from 0.7.0-exp:

  • Imports are now sorted and duplicate imports are merged
  • exposing clauses in module headers are now sorted
  • The body of let expressions are no longer indented
  • Unnecessary parentheses are now removed (except in binary operator expressions)

Other new features:

  • Added support for Elm 0.19
  • Added Elm 0.19 support for --upgrade
  • Expressions in doc comment code blocks are now formatted

Bug fixes:

  • Parentheses are no longer removed if doing so would cause a comment to move to a different AST node
  • Multiline @docs lines in markdown are now handled correctly
  • Trailing whitespace in multiline strings is no longer removed
  • Special characters in doc comments are now escaped more correctly
  • On Windows, special folders are now correctly skipped when traversing the filesystem
  • Initial comments in doc comment code blocks are no longer removed

Syntax changes:

  • Infix operator precedence and associativity declarations are now grouped together
  • if expressions now have blank lines between clauses
  • Comments immediately following imports now have spacing consistent with other top-level comments
  • module lines now have exposing at the end of the line, and exposed listings are indented less when multiline
  • module lines now sort and group the exposing clause based on @docs lines in the module documentation
  • module exposing (..) is replaced with an explicit list based on the documentation of the module

Other changes:

  • Removed support for Elm 0.16
  • Installing with npm install --ignore-scripts is now supported
avh4
published 0.8.0-rc3 •

avh4
published 0.8.0-alpha-elm019rc1-rc2 •

avh4
published 0.8.0-alpha-elm019rc1-rc1 •

avh4
published 0.7.0-exp •

Changelog

Source

0.7.0-exp

Experimental changes:

  • Imports are now sorted and duplicate imports are merged
  • exposing clauses in module headers are now sorted
  • The body of let expressions are no longer indented
  • Unnecessary parentheses are now removed

You can give feedback about experimental features at https://goo.gl/forms/kLdTN1yikfOI8ZuA3.

Bug fixes:

  • Initial @docs lines in module documentation are now handled correctly
  • Formatting for lambdas with multiline patterns is now implemented
  • Code blocks in doc comments that immediately follow lists are now handled correctly

Other changes:

  • elm-format now has a contributor code of conduct
avh4
published 0.6.1-alpha •

Changelog

Source

0.6.1-alpha

  • elm-format now formats your documentation comments: - code snippets in your documentation will be elm-formatted - markdown in your documentation will be normalized
avh4
published 0.6.0-alpha.6 •

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc