Skip to content

Latest commit

 

History

History
85 lines (63 loc) · 2.52 KB

CHANGELOG.md

File metadata and controls

85 lines (63 loc) · 2.52 KB

Changelog

Unreleased

Build tool

  • A helpful error message is now shown if the manifest.toml file has been edited to be invalid in some way. (zahash)

    error: Corrupt manifest.toml
    
    The `manifest.toml` file is corrupt.
    
    Hint: Please fun `gleam update` to fix it.
    
  • The error message shown when unable to find package versions that satisfy all the version constraints specified for a project's dependencies has been greatly improved. (zahash)

    error: Dependency resolution failed
    
    An error occurred while determining what dependency packages and
    versions should be downloaded.
    The error from the version resolver library was:
    
    Unable to find compatible versions for the version constraints in your
    gleam.toml. The conflicting packages are:
    
    - hellogleam
    - lustre_dev_tools
    - glint
    

Compiler

  • The compiler will now raise a warning for let assert assignments where the assertion is redundant. (Giacomo Cavalieri)

    warning: Redundant assertion
      ┌─ /home/lucy/src/app/src/app.gleam:4:7
      │
    4 │   let assert x = get_name()
      │       ^^^^^^ You can remove this
    
    This assertion is redundant since the pattern covers all possibilities.
    
  • Empty case expressions are no longer parse errors and will instead be exhaustiveness errors. (Race Williams)

Formatter

  • Redundant alias names for imported modules are now removed. (Giacomo Cavalieri)
    import gleam/result as result
    is formatted to
    import gleam/result

Language Server

  • The code action to remove unused imports now removes the entire line is removed if it would otherwise be left blank. (Milco Kats)

Bug Fixes

  • Fixed RUSTSEC-2021-0145 by using Rust's std::io::IsTerminal instead of the atty library. (Pi-Cla)

  • Fixed the generated mod property in the Erlang application file when using the application_start_module property in gleam.toml. (Alex Manning)

  • Fixed some reserved keywords would resulting in confusing error messages. (Giacomo Cavalieri)

  • Fixed variables in constant expressions not being escaped correctly when exporting to JavaScript. (PgBiel)