The Kotlin 2.4.20 release is out! Here are the main highlights:
Standard library: Support for coroutine stack trace recovery, new functions for checking equality and uniqueness of collection elements, and new overloads for kotlin.test assertion functions.
Kotlin/Native: New Swift export features, improved incremental compilation, and automatically generated Package.swift files for SwiftPM dependencies.
Kotlin/Wasm:Changes to top-level require() calls in @JsFun declarations, improved companion object initialization order, and support for Wasmtime in the Kotlin Gradle plugin.
Kotlin/JS: A new DSL for browser testing, support for exporting suspend lambdas as async functions, and improved exportability of data classes.
Gradle: Support for Gradle 9.7.0 and improved reporting in the Problems API.
Build tools API: Support for new targets: Kotlin/JS, Kotlin/Wasm, and Kotlin metadata.
Kotlin compiler: The `kotlinr` runner command and a separate native image.
To update to the new Kotlin version, make sure your IDE is updated to the latest version and change the Kotlin version to 2.4.20 in your build scripts.
If you need the command-line compiler, download it from the GitHub release page.