Gleam v1.13.0 introduces formalized external APIs for JavaScript interop, allowing safer integration with external code through dedicated functions for constructing and accessing Gleam data types. The release includes significant compiler improvements: enhanced bit array exhaustiveness checking with interference-based pruning, unused argument detection in recursive functions, and better fault-tolerant analysis. The language server gains multiple new code actions including extract function, collapse nested cases, and pattern matching helpers. Additional improvements include better error messages for common syntax mistakes from other languages, dependency version change notifications, and enhanced type display in documentation.
Table of contents
External API for Gleam dataImproved bit array exhaustiveness checkingUnused argument detectionBetter meaningless opaque type errorMore fault toleranceRedundant pattern alias warningMore inefficient list check warningsA helpful syntax error for JavaScriptersA helpful error for Rustaceans, C#ers, and friendsA helpful syntax error for Pythonistas, Elixirists, and friendsDisplaying dependency version informationhex owner transferImproved type displayingImproved type naming in code actionsTangled supportFurther language server supportRemove unreachable clauses code actionPattern match on value code action improvementsCollapse nested case expressions code actionAdd omitted labels code actionInter-module generate function code actionExtract function code actionFormatter improvementsAnd the restA call for support1 Comment
Sort: