JetBrains shipped Kotlin 2.5.0 on December 2, 2026. The headline change is that Kotlin/Wasm has left Beta and is now Stable, so teams can treat WebAssembly as a production target. The release also promotes several language features to Stable, adds Java 28 bytecode support and moves Swift export to Beta.
Alongside those, 2.5.0 brings a long list of experimental work, including full value classes, companion blocks and Unicode code point APIs. For anyone maintaining Kotlin Multiplatform libraries, a new compressed publication format may be the most practical change, because it cuts the number and size of files sent to Maven Central.
What Became Stable in Kotlin 2.5.0
Several features that appeared as experiments in Kotlin 2.3 and 2.4 no longer need an opt-in. The list includes:
- Kotlin/Wasm, now ready for production with smaller binaries and behavior that matches the other Kotlin targets.
- Name-based destructuring in only-syntax mode, now the default. The classic
val (x, y)form stays positional, while the new(val x, val y)form matches by property name. - The unused return value checker, switched on by default in check mode.
- Improved compile-time constants and the
@IntroducedAtannotation, which produces version-based overloads for optional parameters. - A new
TAUconstant inkotlin.math, equal to two times PI. - A
containerproperty onKCallablethat returns the class or file that declares a function or property reference. - An
es2020target for Kotlin/JS and a new DSL for npm dependencies.
The Wasm stabilization has limits. JetBrains says JavaScript interop, WebAssembly Component Model support and the @WasmImport and @WasmExport annotations are still evolving and may change.
New Experimental Language Features
Full value classes are the biggest language experiment. Until now, an inline value class could wrap only one value. With the -Xfull-value-classes compiler flag, a value class can hold several properties, and the compiler treats the properties together as the value, with no meaningful object identity.
Like data classes, these get generated equals(), hashCode() and toString(). Unlike data classes, they skip componentN() and copy(), and they can be abstract or sealed, and a value class with no properties becomes a value object. JetBrains links the design to Project Valhalla on the JVM.
Companion extensions and companion blocks are the second experiment. They let you add members reachable through a type's name without declaring a companion object. Where a platform supports statics, the compiler emits them that way, so @JvmStatic is not needed.
A third opt-in check flags equality comparisons between data classes, enums and similar types that can never be equal.
Standard Library, JVM and Native Changes
The standard library gains experimental onTrue(), onFalse() and ifOrNull() helpers for common Boolean patterns. It also adds a CodePoint value class in kotlin.text.unicode for working with characters outside the Basic Multilingual Plane, which take two UTF-16 units.
On the JVM, the compiler can now target Java 28 bytecode. Kotlin/Native supports Xcode 27, raises the watchosArm32 target deprecation to an error and now reports errors for the old Intel-based macosX64, tvosX64 and watchosX64 targets.
Swift export reaches Beta with a reworked Gradle DSL under export { swift {} }. Declared API dependencies are exported automatically, and Swift export can now generate a self-contained Swift package. SwiftPM import, which pulls Swift packages such as Firebase into a Multiplatform project, is also in Beta.
Multiplatform Publishing and Web Tooling
The new experimental publication format packs every non-JVM, non-Android platform artifact into one .kar file, a ZIP archive with extra XZ compression. JetBrains says it was built to deal with new size limits on Maven Central. In its example, the cryptography-kotlin project shrank to 1,036 files totalling 23 MB, down from 7,539 files and 91 MB.
For web builds, Kotlin/Wasm can now skip webpack and produce ES modules with an import map that any bundler can process. The Playwright-based browser testing DSL, added for Kotlin/JS in 2.4.20, now covers wasmJs too. The Gradle plugin's default Node.js moves to 24.22.1, which drops eMudhra root certificates tied to a recent certificate incident.
What It Means for Developers
If you were waiting for a stable label before shipping Kotlin to the browser, this is the release to evaluate. Keep any JavaScript interop code isolated, because that part is still outside the stability promise. Compose Multiplatform teams should pair this upgrade with the recent Compose Multiplatform 1.13.0 release.
Expect new warnings after upgrading. The return value checker is on by default, and npm dependencies placed inside Gradle configurations now raise deprecation warnings, with an IDE quick-fix. Apple teams still building for Intel simulators or 32-bit watchOS must drop those targets before moving to 2.5.0.
Library authors should test the .kar format early, since consumers can already read it in all projects. Treat full value classes and companion blocks as previews: try them in side projects, file feedback and avoid putting them in public APIs yet.
How to Upgrade
Kotlin 2.5.0 ships with the latest IntelliJ IDEA and Android Studio. Update your IDE, then change the version number in your Gradle or Maven build to 2.5.0. The command-line compiler is available from the GitHub release page.
JetBrains also points to a compatibility guide for 2.5.0 and a new monthly Kotlin Security Newsletter. New Multiplatform projects can also start from Kotlin Toolchain 0.14.
Conclusion
Kotlin 2.5.0 is a large release. Stable Kotlin/Wasm, stable name-based destructuring and Java 28 support are ready to use now, while full value classes, companion blocks and the new library format show where the language is heading. Upgrade, review the new warnings and try the experiments outside production code.
Sources
See my articles more often when you search Google.
