Update kotlin#62
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
073002a to
ba0fd2e
Compare
0bdb05d to
05fa991
Compare
05fa991 to
31d6a76
Compare
31d6a76 to
27a1e94
Compare
27a1e94 to
67eedbd
Compare
67eedbd to
bce3f51
Compare
bce3f51 to
7b621b5
Compare
7b621b5 to
d29f7c4
Compare
d29f7c4 to
a1078c1
Compare
a1078c1 to
4c5eb88
Compare
4c5eb88 to
7458962
Compare
7458962 to
e2b5584
Compare
e2b5584 to
955ce7e
Compare
c18d1be to
8a9173f
Compare
8a9173f to
d7defb8
Compare
d7defb8 to
f83a907
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.7.1→1.11.00.7.1→0.8.0-0.6.x-compat1.9.0→1.11.01.10.2→1.11.01.10.2→1.11.02.2.0-2.0.2→2.3.82.2.0→2.3.212.2.0→2.3.212.2.0→2.3.21Release Notes
Kotlin/kotlinx.coroutines (org.jetbrains.kotlinx:kotlinx-coroutines-play-services)
v1.11.0Compare Source
Restored binary compatibility with 1.10.2 and older versions on Wasm/JS for usages of
Promise-related functions (#4661).v1.10.2Compare Source
kotlinx-coroutines-debugJAR file including themodule-info.classfile twice, resulting in failures in various tooling (#4314). Thanks, @RyuNen344!Flow.stateInhanging when the scope is cancelled in advance or the flow is empty (#4322). Thanks, @francescotescari!.limitedParallelism(#4330) and during flow collection (#4272).runBlockingfailing to run its coroutine to completion in some cases if its JVM thread got interrupted (#4399).v1.10.1Compare Source
v1.10.0Compare Source
Flow.any,Flow.all, andFlow.none(#4212). Thanks, @CLOVIS-AI!kotlinx-coroutines-debugandkotlinx-coroutines-corecode to avoid a split package between the two artifacts (#4247). Note that directly referencingkotlinx.coroutines.debug.AgentPremainmust now be replaced withkotlinx.coroutines.debug.internal.AgentPremain. Thanks, @sellmair!kotlinx-coroutines-debug, reducing the artifact size and simplifying the build configuration of client code. Thanks, @sellmair!NullPointerExceptionwhen using Java-deserializedkotlinx-coroutines-coreexceptions (#4291). Thanks, @AlexRiedler!CoroutineDispatcher.dispatchinstead of raising internal errors (#4091). Thanks, @zuevmaxim!Dispatchers.DefaultorDispatchers.IOtask after ayield()in rare scenarios (#4248).main()coroutine on Wasm/WASI from executing after adelay()call in some scenarios (#4239).runBlockingtasks on Kotlin/Native that arrive after therunBlockingblock was exited (#4245).Flowoperators sometimes resuming without taking cancellation into account (#4254). Thanks, @jxdabc!ThreadLocalvalues not to get cleaned when using non-CoroutineDispatchercontinuation interceptors (#4296).v1.9.0Compare Source
Features
limitedParallelismnow optionally accepts the name of the dispatcher view for easier debugging (#4023).Dispatchers.IOon the JVM when other standard dispatchers are accessed (#4166). Thanks, @metalhead8816!Flow<T>.chunked(size: Int): Flow<List<T>>operator that groups emitted values into groups of the given size (#1290).AutoCloseablenow (#4123).Fixes
hasNexton aChannel's iterator is idempotent (#4065). Thanks, @gitpaxultek!CoroutineScope()created without an explicit dispatcher usesDispatchers.Defaulton Native (#4074). Thanks, @whyoleg!Dispatchers.Mainfrom initializing when the Firebase dependency is used (#3914).runBlocking(#4134).MutextoSemaphore(#4176).asDeferredon aFuturemany times (#4156).Deprecations and promotions
BroadcastChannel-based API (#4197).kotlinx-coroutines-testAPI (#4198).Job.cancelFutureOnCompletion(#4173).CoroutineDispatcher.limitedParallelismto stable (#3864).CoroutineStart.ATOMICfromExperimentalCoroutinesApitoDelicateCoroutinesApi(#4169).CancellableContinuation.resumewith anonCancellationlambda to stable, providing extra arguments to the lambda (#4088).InternalForInheritanceCoroutinesApiopt-in (#3770).ExperimentalForInheritanceCoroutinesApiopt-in (#3770).Other
CoroutineStartandChannel-based API (#4147, #4148, #4167). Thanks, @globsterg!Job(#4053).v1.8.1Compare Source
@ExperimentalTimeannotation from usages ofTimeSource(#4046). Thanks, @hfhbd!NullPointerExceptionwhen setting theStateFlowvalue on old Android devices (#3820).kotlin.random.Randomas part ofDispatchers.DefaultandDispatchers.IOinitialization (#4051).Flow.timeoutthrows the exception with which the channel was closed (#4071).Changelog relative to version 1.8.1-Beta
Flow.timeoutthrows the exception with which the channel was closed (#4071).v1.8.0Compare Source
Dispatchers.Main != Dispatchers.Main.immediate(#3545, #3963).Flowoperators that limit cancel the upstream flow to forget that they were already finished if there is another such operator upstream (#4035, #4038)kotlinx-coroutines-debugis published with the correct Java 9 module info (#3944).kotlinx-coroutines-debugno longer requires manually settingDebugProbes.enableCoroutineCreationStackTracestofalse, it's the default (#3783).kotlinx-coroutines-test: set the default timeout ofrunTestto 60 seconds, added the ability to configure it on the JVM with thekotlinx.coroutines.test.default_timeout=10s(#3800).kotlinx-coroutines-test: fixed a bug that could lead to not all uncaught exceptions being reported after some tests failed (#3800).delay(Duration)rounds nanoseconds up to whole milliseconds and not down (#3920). Thanks @kevincianfarini!Dispatchers.Defaultand the default thread for background work are guaranteed to use the same context classloader as the object containing it them (#3832).SharedFlow.collectsuspends for the first time, it's registered as a subscriber for thatSharedFlow(#3885). Before, it was also true, but not documented.withLockon JS (#3881). Thanks @CLOVIS-AI!Changelog relative to version 1.8.0-RC2
kotlinx-coroutines-debugno longer requires manually settingDebugProbes.enableCoroutineCreationStackTracestofalse, it's the default (#3783).Flowoperators that limit cancel the upstream flow to forget that they were already finished if there is another such operator upstream (#4035, #4038)v1.7.3Compare Source
v1.7.2Compare Source
Bug fixes and improvements
CopyableThreadContextElementnow properly copies an element when crossing the coroutine boundary inflowOn(#3787). Thanks @wanyingd1996!newSingleThreadContextfrom closing (#3768).MutexduringtryLock/unlocksequence with owners is fixed (#3745).Kotlin/kotlinx-datetime (org.jetbrains.kotlinx:kotlinx-datetime)
v0.8.0-0.6.x-compatv0.8.0Breaking changes:
TimeZoneserialization (#576).Additions:
orNullfunctions for non-throwing construction of datetime entities (#68).parseOrNullextension functions for non-throwing attempts at parsing (#508).LocalIsoWeekDatefor representing ISO week dates (#603).Tweaks and fixes:
Instant.untilandInstant.periodUntil(#534).DateTimeComponents.Formats.RFC_1123format (#608).Changelog relative to version 0.8.0-rc02
No changes, only the version is increased.
v0.7.1-0.6.x-compatKotlin/kotlinx.serialization (org.jetbrains.kotlinx:kotlinx-serialization-core)
v1.11.0==================
This release is based on Kotlin 2.3.20 and provides new Json exceptions API and some bugfixes and improvements.
Expose Json exceptions structure
To make working with exceptions easier and providing proper error codes in e.g., REST APIs,
classes
JsonException,JsonDecodingException, andJsonEncodingExceptionare now public.They have relevant public properties, such as
shortMessage,path,offset, and others.This API is currently experimental, and we're going to improve it further in the subsequent releases.
See the linked issues for the details: #1930, #1877.
Ability to hide user input from exception messages for security/privacy reasons.
Historically, exception messages in kotlinx.serialization often included the input Json itself for debuggability reason.
Such behavior may pose additional challenges for logging, analytics, and other systems, since
a system is not always allowed to store user data due to privacy/security reasons, which imposes additional sanitation logic.
To address this issue, a new property
exceptionsWithDebugInfois added toJsonConfiguration.Disable it to hide user input from exception messages.
IMPORTANT: This behavior will be enabled by default when this property becomes stable.
See #2590 for more details.
Bugfixes and improvements
v1.10.0==================
This release is based on Kotlin 2.3.0 and contains all of the changes from 1.10.0-RC.
The only additional change is a fix for ProtoBuf packing of Kotlin unsigned types (#3079).
Big thanks to KosmX for contributing the fix.
Stabilization of APIs
kotlinx-serialization 1.10 and subsequent releases will be focused on stabilization of existing APIs.
The following APIs and configuration options are no longer experimental because they're widely used without any known major issues:
Jsonconfiguration options:decodeEnumsCaseInsensitive,allowTrailingComma,allowComments, andprettyPrintIndent. (#3100)@EncodeDefaultannotation and its modes. (#3106)JsonUnquotedLiteralconstructor function (#2900)JsonPrimitiveconstructor function overloads that accept unsigned types. (#3117)JsonElementwithNothing?overloads. (#3117)Readiness for return value checker
Kotlin 2.3.0 introduces a new feature aimed
at helping you to catch bugs related to the accidentally ignored return value of the function.
kotlinx-serialization 1.10.0-RC code is fully marked for this feature, meaning that you
can get warnings for unused function calls like
Json.encodeToString(...).To get the warnings, the feature has to be enabled in your project as described here.
Polymorphism improvements
Polymorphic serialization received a couple of improvements in this release:
New
subclassesOfSealedutility to automatically register sealed subclasses serializers in polymorphic modules (#2201).Use it in your
SerializersModulewhen configuring a polymorphic hierarchy which contains both abstract and sealed classes.For example, when root of your hierarchy is an
interface, but most of your inheritors aresealedclasses.The new function will register all known sealed subclasses for you, so you don’t need to list them one by one.
This makes writing your
SerializerModules much faster and simpler.Big thanks to Paul de Vrieze for contributing this feature.
Class discriminator conflict check rework (#3105).
If a payload already contains a property with the same name as the configured discriminator (for example,
type),it is called a class discriminator conflict.
To produce a correct output and allow more inputs to be deserialized at the same time, the following changes were made:
JsonNamingStrategytransformations are now detected during serialization as well and will causeSerializationException.It also affects non-polymorphic classes.
ClassDisciminatorMode.ALL_JSON_OBJECTSandSerializersModuleBuilder.polymorphicDefaultSerializerare also detected.Previously, it was possible in the sealed hierarchies alone due to missing assertion. See #1664 for details.
General improvements
.serialNametoMissingFieldExceptionfor clearer diagnostics. (#3114)Automatic-Module-Nameentries for metadata JARs. (#3109)Bugfixes
BIGNUM_NEGATIVEtag name. (#3090)google/ksp (com.google.devtools.ksp)
v2.3.8Compare Source
What's Changed
Contributors
Full Changelog: google/ksp@2.3.7...2.3.8
v2.3.7Compare Source
What's Changed
Contributors
Full Changelog: google/ksp@2.3.6...2.3.7
v2.3.6Compare Source
What's Changed
Contributors
Full Changelog: google/ksp@2.3.5...2.3.6
v2.3.5Compare Source
What's Changed
Contributors
Full Changelog: google/ksp@2.3.4...2.3.5
v2.3.4Compare Source
What's Changed
Contributors
Full Changelog: google/ksp@2.3.3...2.3.4
v2.3.3Compare Source
What's Changed
Contributors
Full Changelog: google/ksp@2.3.2...2.3.3
v2.3.2Compare Source
What's Changed
Note: This release is a hotfix for a regression introduced in 2.3.1
Contributors
Thanks to everyone who reported bugs and participated in discussions!
Full Changelog: google/ksp@2.3.1...2.3.2
v2.3.1Compare Source
What's Changed
Contributors
Thanks to everyone who reported bugs and participated in discussions!
Full Changelog: google/ksp@2.3.0...2.3.1
v2.3.0Compare Source
What's Changed
Reason for 2.3.0 version name:
Full Changelog: google/ksp@2.2.20-2.0.4...2.3.0
v2.2.21-2.0.5Compare Source
What's Changed
Full Changelog: google/ksp@2.2.21-2.0.4...2.2.21-2.0.5
v2.2.21-2.0.4Compare Source
What's Changed
Full Changelog: google/ksp@2.2.21-RC2-2.0.4...2.2.21-2.0.4
v2.2.20-2.0.4Compare Source
What's Changed
Unable to build on AGP 8.11.1 using KSP 2.2.20-2.0.3 due to class cast exception #2614
Resolver#getJvmCheckedException(KSPropertyAccessor) throws IllegalArgumentException #2548
ClassCastException when building with 2.2.20-2.0.3 #2598
Replace KaFirStopWorldCacheCleaner with no-op implementation #2626
BuildConfig values are not available during annotation process after upgrading ksp from 2.2.10-2.0.2 -> 2.2.20-2.0.3 #2597
Missing Gradle task wiring with 2.2.20-2.0.3 #2595
2.2.20-2.0.3 + protobufJavalite build errors #2596
Contributors
Thanks to everyone who reported bugs and participated in discussions!
Full Changelog: google/ksp@2.2.20-2.0.3...2.2.20-2.0.4
v2.2.20-2.0.3Compare Source
What's Changed
Contributors
Thanks to everyone who reported bugs and participated in discussions!
Full Changelog: google/ksp@2.1.21-2.0.2...2.2.20-2.0.3
v2.2.20-2.0.2Compare Source
What's Changed
Full Changelog: google/ksp@2.2.20-RC2-2.0.2...2.2.20-2.0.2
v2.2.10-2.0.2Compare Source
What's Changed
Full Changelog: google/ksp@2.2.10-RC2-2.0.2...2.2.10-2.0.2
Configuration
📅 Schedule: (UTC)
* 0-3 * * *)🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.