Kotlin
A concise multiplatform language developed by JetBrains
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 JavaScriptBigInt
.
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:
- Find help on Slack (get an invite).
- Report issues to our issue tracker, YouTrack.
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 🥇👏
- Zac Sweers
- Bernd Prünster
- Dayan Ruben
- Rick Clephas
- Sechaba
- Alexander Nozik
- Benoit Lubek
- Jake Wharton
- Johannes Svensson
- Łukasz Wasylkowski
- David Lopez
- Florian Schreiber
- Josh Stagg
- Mohamed Rejeb
- Kacper Wojciechowski
- Yinlong xiaobai
Further reading
- What’s new in Kotlin 2.2.20 documentation
- What’s new in Kotlin 2.2.0 documentation
- Kotlin EAP Champions