github kamadorueda/alejandra 0.3.0

latest releases: 3.0.0, 2.0.0, 1.5.0...
2 years ago

Changed

  • Let-in expressions are now indented in the top-level of a file.

  • Patterns avoid a new line after @:

    -        args @
    -        {
    +        args @ {
    -  }
    -  @ inp:
    +  } @ inp:
  • Attribute sets no longer have spaces
    before the first element or after the last:

    - { b = 1; }
    + {b = 1;}
  • Pattern matching lambdas no longer have spaces
    before the first or after the last element:

    - ({ ... }: _)
    + ({...}: _)
  • Ellipsis is no longer count as an element when spreading pattern matching lambdas:

    -  {
    -    pkgs,
    -    ...
    -  }:
    +  {pkgs, ...}:
  • Pattern matching lambdas now follow the equal sign:

    -  fnLocationRelative =
    -    {
    -      name,
    -      value,
    -    }:
    +  fnLocationRelative = {
    +    name,
    +    value,
    +  }:
  • with expressions now indent the new scope and follow the equal sign:

    -    binPath =
    -      with pkgs;
    +    binPath = with pkgs;
  • Nested lambdas are now not indented:

      # comment
      a:
    -   # comment
    -   b:
    -     _
    + # comment
    + b:
    +   _
  • Brace-like elements after a pattern entry now follow the exclamation mark:

    -  rootPoolProperties ?
    -    {
    -      autoexpand = "on";
    -    },
    +  rootPoolProperties ? {
    +    autoexpand = "on";
    +  },

Pull Requests

Full Changelog: 0.2.0...0.3.0

Don't miss a new alejandra release

NewReleases is sending notifications on new releases.