Skip to content

Latest commit

 

History

History
61 lines (41 loc) · 1.55 KB

CHANGELOG.md

File metadata and controls

61 lines (41 loc) · 1.55 KB

Changelog

Unreleased

Compiler

  • Optimised code generated for record updates. (yoshi)

  • The compiler now allows for record updates to change the generic type parameters of the record:

    type Box(value) {
      Box(password: String, value: value)
    }
    
    fn insert(box: Box(a), value: b) -> Box(b) {
      Box(..box, value:)
    }

    (yoshi)

  • It is now allowed to write a block with no expressions. Like an empty function body, an empty block is considered incomplete as if it contained a todo expression. (Giacomo Cavalieri)

  • The shorthand names for the two targets, erl and js are now deprecated in code such as @target. (Surya Rose)

Build tool

  • Improved the error message you get when trying to add a package that doesn't exist with gleam add. (Giacomo Cavalieri)

Language Server

  • The language server now provides type information when hovering over argument labels. (Surya Rose)

Formatter

Bug fixed

  • The compiler now throws an error when a float literal ends with an e and is missing an exponent. (Surya Rose)

v1.6.1 - 2024-11-19

Bug fixed

  • Fixed a bug where gleam update would fail to update versions.