Upgrading io.ktor:ktor-client-core 2 to 3
Breaking2.3.13 → 3.6.1Breaking11Security4Deprecated10New142Changed84Fixed520Other17
11 breaking changes and 4 security fixes.
- Projects that referenced the old shared JavaScript/Wasm target name must switch to the new name.
- Authentication no longer requires certain marker interfaces, which may affect code relying on them.
- Previously deprecated APIs are removed, so code still using them will no longer compile.
- A function that reads a line now reports how many bytes it read rather than how many characters.
Adds io.ktor:ktor-http-cio 3.6.1, io.ktor:ktor-sse 3.6.1, org.jetbrains.kotlin:kotlin-stdlib 2.3.21.
Drops org.jetbrains.kotlin:kotlin-stdlib-common, org.jetbrains.kotlinx:atomicfu.
Installs 17 packages in all (was 16).
Also installs org.jetbrains.kotlinx:kotlinx-io-bytestring, org.jetbrains.kotlinx:kotlinx-io-core, org.jetbrains.kotlinx:kotlinx-serialization-core, org.jetbrains.kotlinx:kotlinx-serialization-core-jvm.
No longer installs org.jetbrains.kotlin:kotlin-stdlib-jdk7, org.jetbrains.kotlin:kotlin-stdlib-jdk8, org.jetbrains.kotlinx:atomicfu-jvm.
Moves org.jetbrains.kotlin:kotlin-stdlib 1.8.0 → 2.3.21, org.jetbrains.kotlinx:kotlinx-coroutines-core 1.7.1 → 1.11.0, org.jetbrains.kotlinx:kotlinx-coroutines-core-jvm 1.7.1 → 1.11.0, org.jetbrains:annotations 23.0.0 → 13.0. Your build may pick other versions.
7 packages of its own release move with it.
What you must change
jsAndWasmSharedwebByteReadChannel.readLineToDynamicProviderConfig.authenticateFunctionByteReadChannel.readUTF8LinereadUTF8LineTowithTestApplicationtestApplicationio.ktor:ktorPrincipalUserIdPrincipalInflater.inflateFullyMicrometerMetricsFileCacheStorageDeprecations to plan for
HttpHeaders.AcceptCharsetio.ktor.server.auth.PrincipalDarwinLegacyRoute.staticRootFolderHttpClientCall.wrapWithContentHttpClientCall.wrapSaveBodyPluginHttpClientCall.saveLocationsLevel.ERROR