HeadlinesBriefing favicon HeadlinesBriefing.com

Gleam v1.18.0 Enhances Language Server

Hacker News •
×

Gleam v1.18.0 has been released, significantly upgrading its language server. Key improvements include full support for record fields, enabling go-to-definition, find-references, and rename operations across modules. Type variables can now be renamed, and the language server automatically updates import paths when modules are renamed, streamlining code maintenance.

A new "pattern match on value" code action can be triggered on function calls and their returned values, simplifying flow control. For JavaScript targets, Gleam v1.18.0 introduces data singletons, optimizing performance by reusing equivalent data structures. This change notably impacts applications using the Lustre web framework.

The ambiguous pipe syntax has been deprecated in favor of explicit syntax, with a code action available to help users migrate. Additionally, Gleam's build tool now supports specifying a path within Git repositories for dependencies, and Hex API rate limits have been raised for authenticated read operations. Several Hex experience improvements, including better error messages and updated Hexdocs URLs, are also included. Finally, code actions for converting integer bases and generating missing type definitions have been added.