Gleam, a type-safe and scalable language for the Erlang virtual machine and JavaScript runtimes, has released version 1.18.0. This update focuses on improving the capabilities of its language server, which is central to the developer experience due to Gleam's emphasis on static analysis and types.
A significant addition in this release is full support for record fields within the language server. Developers can now use go-to-definition, find-references, and rename functionalities for record fields. This support extends to field declarations, labelled arguments, labelled patterns, record updates, and record.field accesses, working both within and across modules.
The language server also gains the ability to rename type variables in functions, types, and constants, allowing for more flexible code refactoring. Additionally, the language server now automatically updates imports when a Gleam file (and thus its module) is renamed, ensuring code consistency and reducing manual adjustments.
Another enhancement is the improved "pattern match on value" code action. This feature, which helps generate case expressions for flow control, can now be triggered on function calls and their returned values. This streamlines the process of adding pattern matching logic to code.
✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →
One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.
One email a day. Unsubscribe in one click, any time.
Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.
▶ Play today's briefNew every morning, and the back catalogue is archived by date.
Gleam v1.18.0 has been released, introducing several enhancements to its language server, including full support for record fields, type variable renaming, and automatic import updates for renamed modules. These updates improve the developer experience for Gleam users by providing more robust tooling for code navigation and refactoring.