Kotlin logo

Kotlin

A concise multiplatform language developed by JetBrains

Releases

Kotlin 2.2.20 Released

The Kotlin 2.2.20 release is out, delivering important changes for web development. Kotlin/Wasm is now Beta, with improvements to exception handling in JavaScript interop, npm dependency management, built-in browser debugging support, and a new shared source set for js and wasmJs targets. Additionally, here are some main highlights:

  • Kotlin Multiplatform: Swift export available by default, stable cross-platform compilation for Kotlin libraries, and a new approach for declaring common dependencies.
  • Language: Improved overload resolution when passing lambdas to overloads with suspend function types.
  • Kotlin/Native: Support for stack canaries in binaries and smaller binary size for release binaries.
  • Kotlin/JS: Long values compiled into JavaScript BigInt.

For the complete list of changes, see What’s new in Kotlin 2.2.20 or the release notes on GitHub.

How to install Kotlin 2.2.20

The Kotlin plugin is distributed as a bundled plugin in IntelliJ IDEA and Android Studio.

To update to the new Kotlin version, change the Kotlin version to 2.2.20 in your build scripts.

If you need the command-line compiler, download it from the GitHub release page.

If you run into any problems:

Stay up to date with the latest Kotlin features! Subscribe to receive Kotlin updates by filling out the form at the bottom of this post. ⬇️

Special thanks to our EAP champions 🥇👏

Further reading

image description