Skip to content

Update kotlinx-coroutines monorepo to v1.11.0#568

Open
juul-mobile-bot wants to merge 2 commits into
mainfrom
renovate/kotlinx-coroutines-monorepo
Open

Update kotlinx-coroutines monorepo to v1.11.0#568
juul-mobile-bot wants to merge 2 commits into
mainfrom
renovate/kotlinx-coroutines-monorepo

Conversation

@juul-mobile-bot

@juul-mobile-bot juul-mobile-bot commented May 11, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Change Age Confidence
org.jetbrains.kotlinx:kotlinx-coroutines-test 1.10.21.11.0 age confidence
org.jetbrains.kotlinx:kotlinx-coroutines-core-js 1.10.21.11.0 age confidence
org.jetbrains.kotlinx:kotlinx-coroutines-core 1.10.21.11.0 age confidence
org.jetbrains.kotlinx:kotlinx-coroutines-android 1.10.21.11.0 age confidence

Release Notes

Kotlin/kotlinx.coroutines (org.jetbrains.kotlinx:kotlinx-coroutines-test)

v1.11.0

Compare Source

Various
  • Kotlin was updated to 2.2.20 (#​4545).
  • Improved the published jar files (#​3842, #​4599).
  • Various documentation improvements, including complete rewrites of structured concurrency and error handling-related KDoc (#​4433, #​4596).
Breaking changes and deprecations
  • Moved Promise-related functions from JS and Wasm/JS to the new web target. On Wasm/JS, this is a breaking change. Before the change, Promise on Wasm/JS could work with arbitrary Kotlin types, but now, only JsAny subtypes are accepted (#​4563).
  • Changed handling of coroutine exceptions that can't be propagated on JS and Wasm/JS. Before, exceptions were logged, but now, they are reported to the JS runtime (#​4451, #​4631).
  • Deprecated using CoroutineDispatcher as the coroutine context key; now, ContinuationInterceptor has to be used instead (#​4333).
  • Advanced the deprecation levels on kotlinx-coroutines-test APIs (#​4604).
  • Added lint functions that mark passing a Job to coroutine builders as deprecated (#​4435).
Bug fixes and improvements
  • Added a callsInPlace(EXACTLY_ONCE) contract to runBlocking in code shared between JVM and Native (#​4368).
  • Added a callsInPlace(EXACTLY_ONCE) contract to suspendCancellableCoroutine (#​4574).
  • Fixed flowOn incorrectly handling ThreadContextElement updates (#​4403).
  • Fixed exceptions in user-supplied Thread.UncaughtExceptionHandler instances causing the internal coroutines machinery to fail (#​4516).
  • Fixed CoroutineDispatcher.asScheduler in the RxJava integration not cancelling outstanding work when a Worker gets cancelled, which led to memory leaks in some scenarios (#​4615).
  • Fixed SharedFlow entering an invalid state when a subscriber and an emitter are cancelled simultaneously (#​4583).
  • Fixed an R8 optimization leading to shareIn/stateIn coroutines getting garbage-collected (#​4646). Thanks, @​solevic!
Small additions
  • Added CompletableDeferred.asDeferred for obtaining a read-only Deferred view (#​4408).
  • Added SharedFlow.asFlow for obtaining a Flow view with hidden hot flow semantics (#​4530). Thanks, @​g000sha256!
  • Added a StateFlow.collectLatest overload returning Nothing to assist with finding unreachable code (#​4454).
  • Added ReceiveChannel.consumeTo for consuming a ReceiveChannel into a MutableCollection (#​4520).
  • Added a StateFlow<T>.onSubscription overload returning a StateFlow<T>, similar to SharedFlow<T>.onSubscription returning SharedFlow<T> (#​4275). Thanks, @​xit0c!
  • Added terminal Flow operators for collecting a Flow to a Map (#​1541).
Changelog relative to version 1.11.0

No changes, only the version is increased.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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 Mend Renovate.


Note

Medium Risk
Updates a core concurrency library with breaking changes to test APIs and JS exception handling, may affect coroutine behavior in edge cases.

Overview
Updates the kotlinx-coroutines monorepo from version 1.10.2 to 1.11.0 in gradle/libs.versions.toml. This version bump includes bug fixes for flowOn, SharedFlow, and RxJava integration, along with new APIs like CompletableDeferred.asDeferred and StateFlow.collectLatest. The release also advances deprecation levels on test APIs and includes Kotlin 2.2.20 compatibility.

Reviewed by Cursor Bugbot for commit 9778597. Configure here.

@github-actions

github-actions Bot commented May 11, 2026

Copy link
Copy Markdown

Test Results

77 tests  ±0   77 ✅ ±0   5s ⏱️ +2s
14 suites ±0    0 💤 ±0 
14 files   ±0    0 ❌ ±0 

Results for commit 8e2f80c. ± Comparison against base commit 895488f.

♻️ This comment has been updated with latest results.

@twyatt twyatt enabled auto-merge (squash) May 11, 2026 21:27
@juul-mobile-bot

Copy link
Copy Markdown
Contributor Author

Edited/Blocked Notification

Renovate will not automatically rebase this PR, because it does not recognize the last commit author and assumes somebody else may have edited the PR.

You can manually request rebase by checking the rebase/retry box above.

⚠️ Warning: custom changes will be lost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants