# The happy holidays release 2025 🎁

DevFeed: [The happy holidays release 2025 🎁](<https://devfeed.tech/articles/the-happy-holidays-release-2025-51511.md>)

Original publisher: [Read original article](<https://gleam.run/news/the-happy-holidays-2025-release>)

Author: Louis Pilfold

Published: 2025-12-25T00:00:00Z

Content type: release

Language: en

Sources: [Gleam](<https://devfeed.tech/sources/gleam.md>)

Topics: [Functional programming](<https://devfeed.tech/topics/functional-programming.md>), [Erlang](<https://devfeed.tech/topics/erlang.md>), [TypeScript](<https://devfeed.tech/topics/typescript.md>), [export](<https://devfeed.tech/topics/export.md>), [Tool](<https://devfeed.tech/topics/tool.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [annotation](<https://devfeed.tech/tags/annotation.md>), [annotations](<https://devfeed.tech/tags/annotations.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [ecosystem](<https://devfeed.tech/tags/ecosystem.md>), [ecosystems](<https://devfeed.tech/tags/ecosystems.md>), [erlang](<https://devfeed.tech/tags/erlang.md>), [external](<https://devfeed.tech/tags/external.md>), [holidays](<https://devfeed.tech/tags/holidays.md>), [interoperability](<https://devfeed.tech/tags/interoperability.md>), [javascript](<https://devfeed.tech/tags/javascript.md>), [language](<https://devfeed.tech/tags/language.md>), [release](<https://devfeed.tech/tags/release.md>), [runtimes](<https://devfeed.tech/tags/runtimes.md>), [static-analysis](<https://devfeed.tech/tags/static-analysis.md>), [type-safe](<https://devfeed.tech/tags/type-safe.md>), [types](<https://devfeed.tech/tags/types.md>), [typescript](<https://devfeed.tech/tags/typescript.md>), [v1](<https://devfeed.tech/tags/v1.md>)

## AI overview

Gleam v1.14.0 improves interoperability, compiler analysis, and developer tooling across Erlang, JavaScript, and the BEAM ecosystem. External types can now use `@external` annotations to generate precise Erlang and TypeScript definitions instead of vague `any` types. Pattern analysis adds interference based pruning for integer segments and canonical number normalization, helping optimize matches and detect unreachable clauses. The compiler also improves error locations and recovery from errors, warns about empty modules and detached documentation, and supports record updates in constants. JavaScript equality checks for fieldless custom variants are faster. Language server updates include type ranked autocomplete, broader refactoring actions, more useful diagnostics, and annotation generation for all top level definitions. Build tool additions include `gleam deps outdated`, clearer missing Git errors, updated Elixir compiler API support, and CLI refinements.

## Source excerpt

Merry Christmas and happy holidays everyone! Gleam is a type-safe and scalable language for the Erlang virtual machine and JavaScript runtimes. Gleam v1.14.0 is our Xmas gift for you, let's unwrap it and take a look inside. External annotations for external types Gleam doesn't exist in a vacuum, instead builds upon the existing Erlang and JavaScript ecosystems. It's not uncommon for Gleam programs and libraries to internally make use of code written in other languages in the same ecosystem, and Gleam code can be called from those languages too. To help with the interoperability between these languages the Gleam compiler can generate Erlang type specifications and TypeScript declaration files. These can be used with external type checkers and static analysis tooling to ensure the various languages are calling each other's code correctly. // Function written in Gleam pub fn greet(name: String) -> String { "Hello, " <> name <> "!" } % Generated Erlang type spec -spec greet(binary()) -> binary(). // Generated TypeScript type definition export function greet(name: string): string; When writing bindings to code in other languages, Gleam's external type feature is used to declare a type that can be referenced in Gleam, but since it originates from outside of Gleam it has an unknown shape and cannot be constructed directly. A very useful feature for designing Gleam-y APIs for external code! The limitation here was that due to Gleam not knowing anything about these external types, it was not able to produce a precise definition in generated Erlang or TypeScript type definitions, having to fall back to the correct but vague "any" type of each language. The @external annotation is now supported for external types, giving the programmer a way to specify an Erlang or TypeScript type definition to be used. For example, the Dict type from the standard library can now be written as the following: // External type declared in Gleam @external(erlang, "erlang", "map") @external(javasc