Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[deps]: Update kotlin #4501

Merged
merged 1 commit into from
Jan 6, 2025
Merged

[deps]: Update kotlin #4501

merged 1 commit into from
Jan 6, 2025

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Dec 23, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
org.jetbrains.kotlinx.kover 0.8.3 -> 0.9.0 age adoption passing confidence
org.jetbrains.kotlinx:kotlinx-serialization-json 1.7.3 -> 1.8.0 age adoption passing confidence
org.jetbrains.kotlinx:kotlinx-coroutines-test 1.9.0 -> 1.10.1 age adoption passing confidence
org.jetbrains.kotlinx:kotlinx-coroutines-core 1.9.0 -> 1.10.1 age adoption passing confidence
org.jetbrains.kotlinx:kotlinx-coroutines-android 1.9.0 -> 1.10.1 age adoption passing confidence

Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

Kotlin/kotlinx-kover (org.jetbrains.kotlinx.kover)

v0.9.0

===================

Kover Gradle Plugin

Features
  • #645 Added ability to supplement coverage values from external binary reports
  • #673 Implemented ability to specify instrumentation include filter
Bugfixes
  • #678 Added USAGE attribute to all Kover configurations
  • #666 Replaced JaCoCo ant-calls with programmatic calls of JaCoCo's classes

Kover Aggregation Plugin

Features
  • Made class KoverSettingsGradlePlugin from aggregated plugin public
  • Implemented verification in Kover Aggregated Plugin
  • Added ability to skip projects
  • Added ability to limit instrumented class globally and locally in a project
  • Added ability to exclude test task from instrumentation in a project config
  • Implement feature to check verification rule on every project
Bugfixes
  • Fixed bug with non-existing binary report files

Kover CLI

Features
  • #677 Implemented merging of binary reports in Kover CLI and Kover Features
Bugfixes
  • #709 Fixed offline instrumentation of jar files
  • Fixed skipping some classes during offline instrumentation

Kover JVM Agent

Bugfixes
  • Fixed JVM agent arguments parsing to support include filter
Documentation
  • #660 Fixed mistake in JVM agent docs

Kover Maven Plugin

Documentation
  • #658 Fixed documentation about Maven plugin
  • #701 Fixed warning for empty Kotlin plugin configuration

Changelog relative to version 0.9.0-RC

Kover Aggregation Plugin
  • Fixed bug with non-existing binary report files
  • Added ability to skip projects
  • Added ability to limit instrumented class globally and locally in a project
  • Added ability to exclude test task from instrumentation in a project config
  • Implement feature to check verification rule on every project
Kover Maven Plugin
  • #701 Fixed warning for empty Kotlin plugin configuration
Kover CLI
  • #709 Fixed offline instrumentation of jar files
  • Fixed skipping some classes during offline instrumentation
Kotlin/kotlinx.serialization (org.jetbrains.kotlinx:kotlinx-serialization-json)

v1.8.0

==================

This is a release candidate for the next version. It is based on Kotlin 2.1.0 and includes a few new features, as well
as bugfixes and improvements:

@JsonIgnoreUnknownKeys annotation

Previously, only global setting JsonBuilder.ignoreUnknownKeys controlled whether Json parser would throw exception if
input contained a property that was not declared in a @Serializable class.
There were a lot of complaints that this setting is not
flexible enough.
To address them, we added new @JsonIgnoreUnknownKeys annotation that can be applied on a per-class basis.
With this annotation, it is possible to allow unknown properties for annotated classes, while
general decoding methods (such as Json.decodeFromString and others) would still reject them for everything else.
See details in the corresponding PR.

Stabilization of SerialDescriptor API and @SealedSerializationApi annotation

SerialDescriptor, SerialKind, and related API has been around for a long time and has proven itself useful.
The main reason @ExperimentalSerializationApi was on SerialDescriptor's properties is that we wanted to discourage
people from subclassing it.
Fortunately, Kotlin 2.1 provides a special mechanism for such a
case — SubclassOptInRequired.
New kotlinx.serialization.SealedSerializationApi annotation designates APIs
as public for use, but closed for implementation — the case for SerialDescriptor, which is a non-sealed interface for
technical reasons.
Now you can use most of SerialDescriptor and its builders API without the need to opt-in into experimental
serialization API.
See the PR for more details.

Note: All SerialKinds are stable API now, except PolymorphicKind — we may want to expand it in the future.

Generate Java 8's default method implementations in interfaces

TL;DR This change ensures better binary compatibility in the future for library. You should not experience any
difference from it.

kotlinx.serialization library contains a lot of interfaces with default method implementations. Historically, Kotlin
compiled a synthetic DefaultImpls class for them.
Starting from Kotlin 1.4,
it was possible to compile them using as Java 8's default methods to ensure
that new methods can still be added to interfaces without the need for implementors to recompile.
To preserve binary compatibility with existing clients, a special all-compatbility mode is supported in compiler
to generate both default methods and synthetic DefaultImpls class.

Now, kotlinx.serialization finally makes use of this all-compatibility mode,
which potentially allows us to add new methods to interfaces such as SerialDescriptor, Encoder, Decoder, etc.,
without breaking existing clients. This change is expected to have no effect on existing clients, and no action from
your side is required.
Note that Kotlin 2.2 plans to enable all-compatibility
mode by default.

Other bugfixes and improvements

  • Correctly skip structures with Cbor.ignoreUnknownKeys setting (#​2873)
  • Handle missing system property without NPE (#​2867)
  • Fixed keeping INSTANCE field and serializer function for serializable objects in R8 full mode (#​2865)
  • Correctly parse invalid numbers in JsonLiteral.long and other extensions (#​2852)
  • Correctly handle serial name conflict for different classes in SerializersModule.overwriteWith (#​2856)
  • Add inline reified version of encodeToString as a Json member to streamline the experience for newcomers. (#​2853)
  • Do not check kind or discriminator collisions for subclasses' polymorphic serializers if Json.classDiscriminatorMode
    is set to NONE (#​2833)
Kotlin/kotlinx.coroutines (org.jetbrains.kotlinx:kotlinx-coroutines-test)

v1.10.1

Compare Source

  • Fixed binary incompatibility introduced for non-JVM targets in #​4261 (#​4309).

v1.10.0

Compare Source

  • Kotlin was updated to 2.1.0 (#​4284).
  • Introduced Flow.any, Flow.all, and Flow.none (#​4212). Thanks, @​CLOVIS-AI!
  • Reorganized kotlinx-coroutines-debug and kotlinx-coroutines-core code to avoid a split package between the two artifacts (#​4247). Note that directly referencing kotlinx.coroutines.debug.AgentPremain must now be replaced with kotlinx.coroutines.debug.internal.AgentPremain. Thanks, @​sellmair!
  • No longer shade byte-buddy in kotlinx-coroutines-debug, reducing the artifact size and simplifying the build configuration of client code. Thanks, @​sellmair!
  • Fixed NullPointerException when using Java-deserialized kotlinx-coroutines-core exceptions (#​4291). Thanks, @​AlexRiedler!
  • Properly report exceptions thrown by CoroutineDispatcher.dispatch instead of raising internal errors (#​4091). Thanks, @​zuevmaxim!
  • Fixed a bug that delayed scheduling of a Dispatchers.Default or Dispatchers.IO task after a yield() in rare scenarios (#​4248).
  • Fixed a bug that prevented the main() coroutine on Wasm/WASI from executing after a delay() call in some scenarios (#​4239).
  • Fixed scheduling of runBlocking tasks on Kotlin/Native that arrive after the runBlocking block was exited (#​4245).
  • Fixed some terminal Flow operators sometimes resuming without taking cancellation into account (#​4254). Thanks, @​jxdabc!
  • Fixed a bug on the JVM that caused coroutine-bound ThreadLocal values not to get cleaned when using non-CoroutineDispatcher continuation interceptors (#​4296).
  • Small tweaks, fixes, and documentation improvements.

Configuration

📅 Schedule: Branch creation - "every 2nd week starting on the 2 week of the year before 4am on Monday" (UTC), 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.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


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

This PR was generated by Mend Renovate. View the repository job log.

@bitwarden-bot bitwarden-bot changed the title [deps]: Update kotlin [PM-16384] [deps]: Update kotlin Dec 23, 2024
@bitwarden-bot
Copy link

Internal tracking:

Copy link

codecov bot commented Dec 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.87%. Comparing base (d5a02e6) to head (687ac57).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4501   +/-   ##
=======================================
  Coverage   88.87%   88.87%           
=======================================
  Files         460      460           
  Lines       39895    39895           
  Branches     5682     5682           
=======================================
  Hits        35458    35458           
  Misses       2456     2456           
  Partials     1981     1981           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@renovate renovate bot changed the title [PM-16384] [deps]: Update kotlin [deps]: Update kotlin Dec 23, 2024
@renovate renovate bot force-pushed the renovate/kotlin branch from 91c4094 to 687ac57 Compare January 6, 2025 15:35
Copy link
Contributor

github-actions bot commented Jan 6, 2025

Logo
Checkmarx One – Scan Summary & Detailscd19457c-df68-48ae-895d-796b62cb440a

No New Or Fixed Issues Found

@david-livefront david-livefront added this pull request to the merge queue Jan 6, 2025
Merged via the queue into main with commit b0e9703 Jan 6, 2025
8 checks passed
@david-livefront david-livefront deleted the renovate/kotlin branch January 6, 2025 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants