Update ktor to v3 (major) #43

Open
renovate-bot wants to merge 1 commit from renovate/major-ktor into main
Collaborator

This PR contains the following updates:

Package Type Update Change
io.ktor:ktor-server-test-host dependencies major 2.3.13 -> 3.0.1
io.ktor:ktor-server-sessions dependencies major 2.3.13 -> 3.0.1
io.ktor:ktor-server-mustache dependencies major 2.3.13 -> 3.0.1
io.ktor:ktor-server-forwarded-header dependencies major 2.3.13 -> 3.0.1
io.ktor:ktor-server-cors dependencies major 2.3.13 -> 3.0.1
io.ktor:ktor-server-core dependencies major 2.3.13 -> 3.0.1
io.ktor:ktor-server-content-negotiation dependencies major 2.3.13 -> 3.0.1
io.ktor:ktor-server-cio dependencies major 2.3.13 -> 3.0.1
io.ktor:ktor-server-call-logging dependencies major 2.3.13 -> 3.0.1
io.ktor:ktor-server-auth dependencies major 2.3.13 -> 3.0.1
io.ktor:ktor-serialization-kotlinx-json dependencies major 2.3.13 -> 3.0.1
io.ktor:ktor-client-content-negotiation dependencies major 2.3.13 -> 3.0.1

Release Notes

ktorio/ktor (io.ktor:ktor-server-test-host)

v3.0.1

Compare Source

Published 29 October 2024

Bugfixes
  • Remove space from the default client user agent (KTOR-7655)
  • Url.segments throws on URLs with root path (KTOR-7625)
  • Digest Auth does not implement nc parameter correctly according to RFC 7616 (KTOR-4318)
  • about:blank URL should be parsed correctly as about:blank (KTOR-7410)
  • ByteReadChannel.{readShort/readInt/readLong} could lead to CPU-bound indefinite loop since 3.0.0 (KTOR-7571)
  • CIO: Requests face connection timeouts when executed on the Android main dispatcher (KTOR-6803)
  • receiveMultipart fails with "IOException: Failed to parse multipart" when content-type is capitalized (KTOR-7596)
Improvements
  • WebSockets logging: The plugin calls toString() unnecessarily on transformed response body (KTOR-7623)
  • INFO log message with all server interceptors on server startup (KTOR-7326)
  • Digest auth: username and cnonce parameters aren't surrounded with quotes (KTOR-7561)
  • ContentType.fromFilePath for newer file formats HEIC, AVIF, HEIF (KTOR-7536)
  • Support missing native targets in ktor-serialization-kotlinx-xml (KTOR-7583)

v3.0.0

Compare Source

Published 9 October 2024

Bugfixes
  • Darwin: The maxFrameSize option has no effect (KTOR-6963)
  • KotlinReflectionInternalError (createClientPlugin) when running release APK on Android (KTOR-7479)
  • Netty: UnsupportedOperationException is thrown when responding in CallSetup and CORS plugin is installed (KTOR-4433)
  • MicrometerMetrics: Prometheus meter registry 1.13.0 generates configuration warning (KTOR-7035)
  • Websockets/Auth: ProtocolException when requesting protected WebSockets endpoint (KTOR-7363)
  • Data truncated in receiveParameters and receiveMultipart (KTOR-7201)
  • The pathSegments returns empty strings for trailing slashes (KTOR-4402)
  • HttpRequestRetry: exponential delay doesn't work for delays <= 1 second (KTOR-7294)
  • JS browser: "Error: HttpClientCall expected" on HTTP request when targeting es2015 (KTOR-6882)
  • Incomplete write using io.ktor.util.cio.FileChannelsKt#writeChannel (KTOR-1618)
  • response.content.copyAndClose(targetFile.writeChannel()) sometimes loses some bytes (KTOR-3003)
  • ByteWriteChannel.flush is not Waiting Until Flushing the Internal Buffer to the Destination (KTOR-3102)
  • CORS check fails when the Origin header has a value without trailing slash (KTOR-5936)
  • Closing socket and selector leaks descriptor on native (KTOR-7255)
  • ConnectionUtilsNative leaks descriptors on error (KTOR-6977)
  • withTimeout doesn't cancel socket connection on native (KTOR-5289)
  • MockEngine: the ability to set dispatcher is removed (KTOR-6417)
Improvements
  • Misleading readBytes method name (KTOR-6596)
  • Remove reflection utils used only on JVM target from common source set (KTOR-7540)
  • Weak security algorithm (MD5) in FileCacheStorage (KTOR-6589)
  • Missing constants for AcceptEncoding (KTOR-6412)
  • Add respondFile overload with Path parameters (KTOR-7202)
  • MalformedInputException confusingly is a Throwable but not an Exception (KTOR-7316)
  • CSRF: The allowOrigin method enables the Origin Header validation (KTOR-6695)
  • Auth: Drop marker interface requirements (KTOR-7323)
  • Routing: Support accessing the request body in RouteSelector (KTOR-7084)
  • Make Cookie class Serializable (KTOR-6258)
  • Make the internal Route.swaggerUI method public (KTOR-6491)
  • Ktor clients and servers should use Dispatchers.IO.limitedParallelism(...) wherever possible (KTOR-6462)
Features
  • Support androidNative targets (KTOR-7289)
  • Provide the API that simplifies disabling CORS for testing purposes (KTOR-3329)
  • Add support for mingw to ktor-network in order to make server and client work on windows (KTOR-4080)

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [io.ktor:ktor-server-test-host](https://github.com/ktorio/ktor) | dependencies | major | `2.3.13` -> `3.0.1` | | [io.ktor:ktor-server-sessions](https://github.com/ktorio/ktor) | dependencies | major | `2.3.13` -> `3.0.1` | | [io.ktor:ktor-server-mustache](https://github.com/ktorio/ktor) | dependencies | major | `2.3.13` -> `3.0.1` | | [io.ktor:ktor-server-forwarded-header](https://github.com/ktorio/ktor) | dependencies | major | `2.3.13` -> `3.0.1` | | [io.ktor:ktor-server-cors](https://github.com/ktorio/ktor) | dependencies | major | `2.3.13` -> `3.0.1` | | [io.ktor:ktor-server-core](https://github.com/ktorio/ktor) | dependencies | major | `2.3.13` -> `3.0.1` | | [io.ktor:ktor-server-content-negotiation](https://github.com/ktorio/ktor) | dependencies | major | `2.3.13` -> `3.0.1` | | [io.ktor:ktor-server-cio](https://github.com/ktorio/ktor) | dependencies | major | `2.3.13` -> `3.0.1` | | [io.ktor:ktor-server-call-logging](https://github.com/ktorio/ktor) | dependencies | major | `2.3.13` -> `3.0.1` | | [io.ktor:ktor-server-auth](https://github.com/ktorio/ktor) | dependencies | major | `2.3.13` -> `3.0.1` | | [io.ktor:ktor-serialization-kotlinx-json](https://github.com/ktorio/ktor) | dependencies | major | `2.3.13` -> `3.0.1` | | [io.ktor:ktor-client-content-negotiation](https://github.com/ktorio/ktor) | dependencies | major | `2.3.13` -> `3.0.1` | --- ### Release Notes <details> <summary>ktorio/ktor (io.ktor:ktor-server-test-host)</summary> ### [`v3.0.1`](https://github.com/ktorio/ktor/blob/HEAD/CHANGELOG.md#301) [Compare Source](https://github.com/ktorio/ktor/compare/3.0.0...3.0.1) > Published 29 October 2024 ##### Bugfixes - Remove space from the default client user agent ([KTOR-7655](https://youtrack.jetbrains.com/issue/KTOR-7655)) - `Url.segments` throws on URLs with root path ([KTOR-7625](https://youtrack.jetbrains.com/issue/KTOR-7625)) - Digest Auth does not implement nc parameter correctly according to RFC 7616 ([KTOR-4318](https://youtrack.jetbrains.com/issue/KTOR-4318)) - about:blank URL should be parsed correctly as about:blank ([KTOR-7410](https://youtrack.jetbrains.com/issue/KTOR-7410)) - ByteReadChannel.{readShort/readInt/readLong} could lead to CPU-bound indefinite loop since 3.0.0 ([KTOR-7571](https://youtrack.jetbrains.com/issue/KTOR-7571)) - CIO: Requests face connection timeouts when executed on the Android main dispatcher ([KTOR-6803](https://youtrack.jetbrains.com/issue/KTOR-6803)) - receiveMultipart fails with "IOException: Failed to parse multipart" when content-type is capitalized ([KTOR-7596](https://youtrack.jetbrains.com/issue/KTOR-7596)) ##### Improvements - WebSockets logging: The plugin calls toString() unnecessarily on transformed response body ([KTOR-7623](https://youtrack.jetbrains.com/issue/KTOR-7623)) - INFO log message with all server interceptors on server startup ([KTOR-7326](https://youtrack.jetbrains.com/issue/KTOR-7326)) - Digest auth: `username` and `cnonce` parameters aren't surrounded with quotes ([KTOR-7561](https://youtrack.jetbrains.com/issue/KTOR-7561)) - ContentType.fromFilePath for newer file formats HEIC, AVIF, HEIF ([KTOR-7536](https://youtrack.jetbrains.com/issue/KTOR-7536)) - Support missing native targets in ktor-serialization-kotlinx-xml ([KTOR-7583](https://youtrack.jetbrains.com/issue/KTOR-7583)) ### [`v3.0.0`](https://github.com/ktorio/ktor/blob/HEAD/CHANGELOG.md#300) [Compare Source](https://github.com/ktorio/ktor/compare/2.3.13...3.0.0) > Published 9 October 2024 ##### Bugfixes - Darwin: The `maxFrameSize` option has no effect ([KTOR-6963](https://youtrack.jetbrains.com/issue/KTOR-6963)) - KotlinReflectionInternalError (createClientPlugin) when running release APK on Android ([KTOR-7479](https://youtrack.jetbrains.com/issue/KTOR-7479)) - Netty: UnsupportedOperationException is thrown when responding in CallSetup and CORS plugin is installed ([KTOR-4433](https://youtrack.jetbrains.com/issue/KTOR-4433)) - MicrometerMetrics: Prometheus meter registry 1.13.0 generates configuration warning ([KTOR-7035](https://youtrack.jetbrains.com/issue/KTOR-7035)) - Websockets/Auth: ProtocolException when requesting protected WebSockets endpoint ([KTOR-7363](https://youtrack.jetbrains.com/issue/KTOR-7363)) - Data truncated in receiveParameters and receiveMultipart ([KTOR-7201](https://youtrack.jetbrains.com/issue/KTOR-7201)) - The `pathSegments` returns empty strings for trailing slashes ([KTOR-4402](https://youtrack.jetbrains.com/issue/KTOR-4402)) - HttpRequestRetry: exponential delay doesn't work for delays <= 1 second ([KTOR-7294](https://youtrack.jetbrains.com/issue/KTOR-7294)) - JS browser: "Error: HttpClientCall expected" on HTTP request when targeting es2015 ([KTOR-6882](https://youtrack.jetbrains.com/issue/KTOR-6882)) - Incomplete write using io.ktor.util.cio.FileChannelsKt#writeChannel ([KTOR-1618](https://youtrack.jetbrains.com/issue/KTOR-1618)) - `response.content.copyAndClose(targetFile.writeChannel())` sometimes loses some bytes ([KTOR-3003](https://youtrack.jetbrains.com/issue/KTOR-3003)) - ByteWriteChannel.flush is not Waiting Until Flushing the Internal Buffer to the Destination ([KTOR-3102](https://youtrack.jetbrains.com/issue/KTOR-3102)) - CORS check fails when the Origin header has a value without trailing slash ([KTOR-5936](https://youtrack.jetbrains.com/issue/KTOR-5936)) - Closing socket and selector leaks descriptor on native ([KTOR-7255](https://youtrack.jetbrains.com/issue/KTOR-7255)) - ConnectionUtilsNative leaks descriptors on error ([KTOR-6977](https://youtrack.jetbrains.com/issue/KTOR-6977)) - withTimeout doesn't cancel socket connection on native ([KTOR-5289](https://youtrack.jetbrains.com/issue/KTOR-5289)) - MockEngine: the ability to set dispatcher is removed ([KTOR-6417](https://youtrack.jetbrains.com/issue/KTOR-6417)) ##### Improvements - Misleading `readBytes` method name ([KTOR-6596](https://youtrack.jetbrains.com/issue/KTOR-6596)) - Remove reflection utils used only on JVM target from common source set ([KTOR-7540](https://youtrack.jetbrains.com/issue/KTOR-7540)) - Weak security algorithm (MD5) in FileCacheStorage ([KTOR-6589](https://youtrack.jetbrains.com/issue/KTOR-6589)) - Missing constants for AcceptEncoding ([KTOR-6412](https://youtrack.jetbrains.com/issue/KTOR-6412)) - Add `respondFile` overload with `Path` parameters ([KTOR-7202](https://youtrack.jetbrains.com/issue/KTOR-7202)) - MalformedInputException confusingly is a Throwable but not an Exception ([KTOR-7316](https://youtrack.jetbrains.com/issue/KTOR-7316)) - CSRF: The allowOrigin method enables the Origin Header validation ([KTOR-6695](https://youtrack.jetbrains.com/issue/KTOR-6695)) - Auth: Drop marker interface requirements ([KTOR-7323](https://youtrack.jetbrains.com/issue/KTOR-7323)) - Routing: Support accessing the request body in RouteSelector ([KTOR-7084](https://youtrack.jetbrains.com/issue/KTOR-7084)) - Make Cookie class Serializable ([KTOR-6258](https://youtrack.jetbrains.com/issue/KTOR-6258)) - Make the internal Route.swaggerUI method public ([KTOR-6491](https://youtrack.jetbrains.com/issue/KTOR-6491)) - Ktor clients and servers should use Dispatchers.IO.limitedParallelism(...) wherever possible ([KTOR-6462](https://youtrack.jetbrains.com/issue/KTOR-6462)) ##### Features - Support androidNative targets ([KTOR-7289](https://youtrack.jetbrains.com/issue/KTOR-7289)) - Provide the API that simplifies disabling CORS for testing purposes ([KTOR-3329](https://youtrack.jetbrains.com/issue/KTOR-3329)) - Add support for mingw to ktor-network in order to make server and client work on windows ([KTOR-4080](https://youtrack.jetbrains.com/issue/KTOR-4080)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOC4xMS4xIiwidXBkYXRlZEluVmVyIjoiMzguMTEuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
renovate-bot added 1 commit 2024-10-09 14:03:42 +00:00
Update ktor to v3
Some checks failed
Pull request workflow / Build and Test (pull_request) Failing after 4m10s
92af8adb14
renovate-bot scheduled this pull request to auto merge when all checks succeed 2024-10-09 14:03:43 +00:00
renovate-bot force-pushed renovate/major-ktor from 92af8adb14 to dcdd7831f2 2024-10-10 11:08:48 +00:00 Compare
renovate-bot force-pushed renovate/major-ktor from dcdd7831f2 to e897fee386 2024-10-12 10:04:30 +00:00 Compare
renovate-bot force-pushed renovate/major-ktor from e897fee386 to 73dfbe4918 2024-10-15 12:06:56 +00:00 Compare
renovate-bot force-pushed renovate/major-ktor from 73dfbe4918 to bac8c33db1 2024-10-23 04:05:20 +00:00 Compare
renovate-bot force-pushed renovate/major-ktor from bac8c33db1 to 52e75bbff1 2024-10-23 05:04:33 +00:00 Compare
renovate-bot force-pushed renovate/major-ktor from 52e75bbff1 to b5f8670a07 2024-10-25 22:04:21 +00:00 Compare
renovate-bot force-pushed renovate/major-ktor from b5f8670a07 to 1704ad1fcd 2024-10-30 04:09:19 +00:00 Compare
renovate-bot force-pushed renovate/major-ktor from 1704ad1fcd to 0f7cc4af43 2024-11-06 03:04:36 +00:00 Compare
renovate-bot force-pushed renovate/major-ktor from 0f7cc4af43 to 8dfb9cea02 2024-11-12 17:08:58 +00:00 Compare
renovate-bot force-pushed renovate/major-ktor from 8dfb9cea02 to b50d5e89ab 2024-11-18 12:03:45 +00:00 Compare
renovate-bot force-pushed renovate/major-ktor from b50d5e89ab to 15e1875201 2024-11-20 17:05:08 +00:00 Compare
renovate-bot force-pushed renovate/major-ktor from 15e1875201 to 2c6ca6bd73 2024-11-20 19:04:20 +00:00 Compare
Some checks failed
Pull request workflow / Build and Test (pull_request) Failing after 4m49s
Required
Details
Some required checks were not successful.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/major-ktor:renovate/major-ktor
git checkout renovate/major-ktor
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: wbrawner/twigs#43
No description provided.