๐๐ข๐ ๐ ๐๐ฌ๐ญ ๐๐ง๐ ๐ฎ๐ฌ๐๐๐ฎ๐ฅ ๐๐ก๐๐ง๐ ๐๐ฌ ๐ข๐ง ๐๐ค๐ฉ๐ก๐๐ฃ 19.0.0(with Example)
1. The entries property for enum classes was introduced as an Experimental feature. The entries property is intended to be a modern and performant replacement for the synthetic values() function.[โ๐ชโโ๐ฝโโ๐ฆโโ๐ฒโโ๐ตโโ๐ฑโโ๐ชโ โ๐ฎโโ๐ณโโ๐จโโ๐ฑโโ๐บโโ๐ฉโโ๐ชโโ๐ฉโ]
2 .The new ..< operator for open-ended ranges that was introduced in Kotlin 1.7.20 is Stable in 1.9.0-RC. The standard library API for working with open-ended ranges is also Stable in this release. Now you can write ..< instead of until. [โ๐ชโโ๐ฝโโ๐ฆโโ๐ฒโโ๐ตโโ๐ฑโโ๐ชโ โ๐ฎโโ๐ณโโ๐จโโ๐ฑโโ๐บโโ๐ฉโโ๐ชโโ๐ฉโ]
3. As of Kotlin 1.8.0, the standard library is compiled with JVM target 1.8. So in 1.9.0, there is now a common function groups that retrieves group's contents by its name for a regular expression match. This is useful when you want to access the results of regular expression matches belonging to a particular capture group.[โ๐ชโโ๐ฝโโ๐ฆโโ๐ฒโโ๐ตโโ๐ฑโโ๐ชโ โ๐ฎโโ๐ณโโ๐จโโ๐ฑโโ๐บโโ๐ฉโโ๐ชโโ๐ฉโ]
4. In 1.9.0 there is a new extension function createParentDirectories() that you can use to create a new file with all the necessary parent directories. When you provide a file path to createParentDirectories(), it checks whether the parent directories already exist. If they do, it does nothing. However, if they do not, it creates them for you. [โ๐ชโโ๐ฝโโ๐ฆโโ๐ฒโโ๐ตโโ๐ฑโโ๐ชโ โ๐ฎโโ๐ณโโ๐จโโ๐ฑโโ๐บโโ๐ฉโโ๐ชโโ๐ฉโ]
5. Kotlin 1.9.0-RC comes with support for Gradle configuration cache in multiplatform libraries. If you're a library author, you can already benefit from the improved build performance.
Gradle configuration cache speeds up the build process by reusing the results of the configuration phase for subsequent builds. The feature has become Stable since Gradle 8.1. To enable it, follow the instructions in the Gradle documentation.
6. Starting with Kotlin 1.9.0-RC, the Kotlin/Native backend doesn't initialize objects when accessing const val fields. [โ๐ชโโ๐ฝโโ๐ฆโโ๐ฒโโ๐ตโโ๐ฑโโ๐ชโ โ๐ฎโโ๐ณโโ๐จโโ๐ฑโโ๐บโโ๐ฉโโ๐ชโโ๐ฉโ]
7. By default, when running iOS simulator tests for Kotlin/Native, the --standalone flag is used to avoid manual simulator booting and shutdown. In 1.9.0-RC, you can now configure whether this flag is used in a Gradle task via the standalone property. By default, the --standalone flag is used so standalone mode is enabled.