π’ Kotlin 2.4.0 is out! Here are some of the highlights:
β
Language: Stable context parameters, explicit backing fields, and multiple features for annotation use-site targets.
β
Standard library: Stabilized support for the UUID API and support for checking sorted order.
β
Kotlin/JVM: Support for Java 26 and annotations in metadata enabled by default.
β
Kotlin/Native: Support for Swift packages as dependencies, updates on Swift export, and the CMS GC enabled by default.
β
Kotlin/Wasm: Incremental compilation enabled by default and support for WebAssembly Component Model.
β
Kotlin/JS: Support for value class export and ES2015 features in JS code inlining.
β
Gradle: Compatibility with Gradle 9.5.0.
β
Maven: Automatic alignment between Java and JVM target versions.
β
Kotlin compiler: More consistent inline function behavior during .klib compilation.
Learn more:
kotl.in/2-4-0