Repository navigation
Conversation
|
Hi, I’m Jit, a friendly security platform designed to help developers build secure applications from day zero with an MVS (Minimal viable security) mindset. In case there are security findings, they will be communicated to you as a comment inside the PR. Hope you’ll enjoy using Jit. Questions? Comments? Want to learn more? Get in touch with us. |
|
Thanks for the clarification, @a-TODO-rov. That makes sense. I’ll keep this PR as a reference while the Reactive contract changes are in progress, and I’m happy to rebase/update it once those changes land for the next major version. If you’d prefer to close this PR while the issue is on hold, that’s totally fine too. I can reopen or submit a fresh PR when the timing is right. |
|
Hey @lsh1215 |
|
Thanks for following up. I’ll update this PR for Lettuce 8.0 and run the relevant tests. |
|
I’ve updated the PR for Lettuce 8.0, and all CI checks have passed. It’s ready for another look when you have time. |
Closes #2527
What changed
@ExperimentalLettuceCoroutinesApifrom coroutine API declarations.ExperimentalLettuceCoroutinesApifor source compatibility, but mark it as deprecated so existing@OptIn(...)references can be removed by users.Why
The issue states that the Coroutine API has matured enough to become a proper API. As long as public coroutine declarations and generated APIs carry
@ExperimentalLettuceCoroutinesApi, users still need explicit opt-in. This removes that root cause while keeping the marker class available for compatibility.Verification
JAVA_HOME=/Users/leesanghun/Library/Java/JavaVirtualMachines/ms-21.0.10/Contents/Home \ mvn -Dkotlin.compiler.incremental=false -DskipITs -DskipUnitTests=false \ -Dtest=CoroutineApiGraduationUnitTests,CreateKotlinCoroutinesApiUnitTests testResult:
Also checked:
Note
Medium Risk
Wide public Kotlin API surface change with no runtime logic changes; risk is mainly consumer compile-time breakage if they relied on experimental warnings, mitigated by retaining the deprecated marker.
Overview
Graduates Lettuce’s Kotlin coroutine APIs so callers no longer need
@OptIn(ExperimentalLettuceCoroutinesApi::class)or the-Xopt-in=io.lettuce.core.ExperimentalLettuceCoroutinesApicompiler flag.@ExperimentalLettuceCoroutinesApiis removed from coroutine interfaces, implementations, extensions (coroutines(),multiDSL,ScanFlow), and cluster/sentinel APIs. The annotation class remains deprecated for source compatibility with existing@OptInusage. The Kotlin Maven plugin no longer opts in to that marker; the user guide no longer describes coroutines as experimental.The coroutine API generator stops importing and emitting
@ExperimentalLettuceCoroutinesApion generated interfaces. Regression tests guard Kotlin sources,pom.xml, docs, generator output, and deprecated marker behavior.Reviewed by Cursor Bugbot for commit 4055418. Bugbot is set up for automated code reviews on this repo. Configure here.