simpler-robot
simpler-robot copied to clipboard
build(deps): bump kotlinx-serialization from 1.6.3 to 1.7.1
Bumps kotlinx-serialization from 1.6.3 to 1.7.1.
Updates org.jetbrains.kotlinx:kotlinx-serialization-core from 1.6.3 to 1.7.1
Release notes
Sourced from org.jetbrains.kotlinx:kotlinx-serialization-core's releases.
1.7.1
This is a bugfix release that aims to fix missing
kotlinx-serialization-hoconartifact. It also contains experimental integration withkotlinx-iolibrary. Kotlin 2.0.0 is used by default.Fixed HOCON publication
Sadly, 1.7.0 release was published incomplete:
kotlinx-serialization-hoconartifact is missing from 1.7.0 and 1.7.0-RC releases. This release fixes this problem and nowkotlinx-serialization-hoconis available again with 1.7.1 version. No other changes were made to this artifact. Related ticket: #2717.Add integration with a kotlinx-io library
kotlinx-iois an official multiplatform library that provides basic IO primitives, similar to Okio. kotlinx.serialization integration is now available in a separate artifact, located at thekotlinx-serialization-json-iocoordinates. Integration artifact provides functions similar to existing Okio integration:encodeToSink,decodeFromSource, anddecodeSourceToSequence. Check out the PR for more details.Other bugfixes
- Prohibited use of elements other than JsonObject in JsonTransformingSerializer with polymorphic serialization (#2715)
1.7.0
This release contains all of the changes from 1.7.0-RC and is compatible with Kotlin 2.0. Please note that for reasons explained in the 1.7.0-RC changelog, it may not be possible to use it with the Kotlin 1.9.x compiler plugin. Yet, it is still fully backward compatible with previous versions.
The only difference with 1.7.0-RC is that the
classDiscriminatorModeproperty inJsonBuilderis marked as experimental, as it should have been when it was introduced (#2680).1.7.0-RC
This is a release candidate for the next version. It is based on Kotlin 2.0.0-RC3 and is fully compatible with a stable Kotlin 2.0 release. Due to a potential breaking change (see below), it requires a compiler plugin with a version at least of 2.0.0-RC1.
Important change: priority of PolymorphicSerializer for interfaces during call to serializer() function
Non-sealed interfaces in kotlinx.serialization are always serializable with a polymorphic serializer, even if they do not have
@Serializableannotation. This also means thatserializersModule.serializer<SomeInterface>()call will return you a serializer capable of polymorphism. This function was written in a way that it unconditionally returns aPolymorphicSerializerif type argument is a non-sealed interface. This caused problems withSerializersModulefunctionality, because actual module was not taken into consideration, and therefore it was impossible to override serializer for interface using 'contextual serialization' feature. The problem is described in detail here. To overcome these problems, we had to change the behavior of this function regarding interfaces. It now looks intoSerializersModulefirst ifTis a non-sealed interface, and only if there is no registered contextual serializer forT, it returns a polymorphic serializer.Behavior before 1.7.0-RC:
interface SomeInterfaceval module = SerializersModule { contextual(SomeInterface::class, CustomSomeInterfaceSerializer) }
// Prints PolymorphicSerializer<SomeInterface>: println(module.serializer<SomeInterface>())
Behavior in 1.7.0-RC, 1.7.0, and higher:
... (truncated)
Changelog
Sourced from org.jetbrains.kotlinx:kotlinx-serialization-core's changelog.
1.7.1 / 2024-06-25
This is a bugfix release that aims to fix missing
kotlinx-serialization-hoconartifact. It also contains experimental integration withkotlinx-iolibrary. Kotlin 2.0.0 is used by default.Fixed HOCON publication
Sadly, 1.7.0 release was published incomplete:
kotlinx-serialization-hoconartifact is missing from 1.7.0 and 1.7.0-RC releases. This release fixes this problem and nowkotlinx-serialization-hoconis available again with 1.7.1 version. No other changes were made to this artifact. Related ticket: #2717.Add integration with a kotlinx-io library
kotlinx-iois an official multiplatform library that provides basic IO primitives, similar to Okio. kotlinx.serialization integration is now available in a separate artifact, located at thekotlinx-serialization-json-iocoordinates. Integration artifact provides functions similar to existing Okio integration:encodeToSink,decodeFromSource, anddecodeSourceToSequence. Check out the PR for more details.Other bugfixes
- Prohibited use of elements other than JsonObject in JsonTransformingSerializer with polymorphic serialization (#2715)
1.7.0 / 2024-06-05
This release contains all of the changes from 1.7.0-RC and is compatible with Kotlin 2.0. Please note that for reasons explained in the 1.7.0-RC changelog, it may not be possible to use it with the Kotlin 1.9.x compiler plugin. Yet, it is still fully backwards compatible with previous versions.
The only difference with 1.7.0-RC is that
classDiscriminatorModeproperty inJsonBuilderis marked as experimental, as it should have been when it was introduced (#2680).1.7.0-RC / 2024-05-16
This is a release candidate for the next version. It is based on Kotlin 2.0.0-RC3 and is fully compatible with a stable Kotlin 2.0 release. Due to a potential breaking change (see below), it requires a compiler plugin with a version at least of 2.0.0-RC1.
Important change: priority of PolymorphicSerializer for interfaces during call to serializer() function
Non-sealed interfaces in kotlinx.serialization are always serializable with a polymorphic serializer, even if they do not have
@Serializableannotation. This also means thatserializersModule.serializer<SomeInterface>()call will return you a serializer capable of polymorphism. This function was written in a way that it unconditionally returns aPolymorphicSerializerif type argument is a non-sealed interface. This caused problems withSerializersModulefunctionality, because actual module was not taken into consideration, and therefore it was impossible to override serializer for interface using 'contextual serialization' feature. The problem is described in details here. To overcome these problems, we had to change the behavior of this function regarding interfaces. It now looks intoSerializersModulefirst ifTis a non-sealed interface, and only if there is no registered contextual serializer forT, it returns a polymorphic serializer.Behavior before 1.7.0-RC:
... (truncated)
Commits
c75b46dPrepare 1.7.1 release (#2726)c628e29Prohibited use of elements other than JsonObject in JsonTransformingSerialize...3de98ffFixed HOCON publication (#2723)0013192Setup running native tests in release mode (#2667)08e604aAdd integration with kotlinx-io library (#2707)d2dc7d2Update to Kotlin 2.0 and prepare 1.7.0 release (#2706)1cac162Merge remote-tracking branch 'origin/master' into devfbd0734Use@PublishedApiannotation on functions called from plugin-generated code (...4bf4113Add bencoding to community-supported formats (#2687)c487e78JSON: Fix mutableclassDiscriminatorModein config, and mark experimental i...- Additional commits viewable in compare view
Updates org.jetbrains.kotlinx:kotlinx-serialization-json from 1.6.3 to 1.7.1
Release notes
Sourced from org.jetbrains.kotlinx:kotlinx-serialization-json's releases.
1.7.1
This is a bugfix release that aims to fix missing
kotlinx-serialization-hoconartifact. It also contains experimental integration withkotlinx-iolibrary. Kotlin 2.0.0 is used by default.Fixed HOCON publication
Sadly, 1.7.0 release was published incomplete:
kotlinx-serialization-hoconartifact is missing from 1.7.0 and 1.7.0-RC releases. This release fixes this problem and nowkotlinx-serialization-hoconis available again with 1.7.1 version. No other changes were made to this artifact. Related ticket: #2717.Add integration with a kotlinx-io library
kotlinx-iois an official multiplatform library that provides basic IO primitives, similar to Okio. kotlinx.serialization integration is now available in a separate artifact, located at thekotlinx-serialization-json-iocoordinates. Integration artifact provides functions similar to existing Okio integration:encodeToSink,decodeFromSource, anddecodeSourceToSequence. Check out the PR for more details.Other bugfixes
- Prohibited use of elements other than JsonObject in JsonTransformingSerializer with polymorphic serialization (#2715)
1.7.0
This release contains all of the changes from 1.7.0-RC and is compatible with Kotlin 2.0. Please note that for reasons explained in the 1.7.0-RC changelog, it may not be possible to use it with the Kotlin 1.9.x compiler plugin. Yet, it is still fully backward compatible with previous versions.
The only difference with 1.7.0-RC is that the
classDiscriminatorModeproperty inJsonBuilderis marked as experimental, as it should have been when it was introduced (#2680).1.7.0-RC
This is a release candidate for the next version. It is based on Kotlin 2.0.0-RC3 and is fully compatible with a stable Kotlin 2.0 release. Due to a potential breaking change (see below), it requires a compiler plugin with a version at least of 2.0.0-RC1.
Important change: priority of PolymorphicSerializer for interfaces during call to serializer() function
Non-sealed interfaces in kotlinx.serialization are always serializable with a polymorphic serializer, even if they do not have
@Serializableannotation. This also means thatserializersModule.serializer<SomeInterface>()call will return you a serializer capable of polymorphism. This function was written in a way that it unconditionally returns aPolymorphicSerializerif type argument is a non-sealed interface. This caused problems withSerializersModulefunctionality, because actual module was not taken into consideration, and therefore it was impossible to override serializer for interface using 'contextual serialization' feature. The problem is described in detail here. To overcome these problems, we had to change the behavior of this function regarding interfaces. It now looks intoSerializersModulefirst ifTis a non-sealed interface, and only if there is no registered contextual serializer forT, it returns a polymorphic serializer.Behavior before 1.7.0-RC:
interface SomeInterfaceval module = SerializersModule { contextual(SomeInterface::class, CustomSomeInterfaceSerializer) }
// Prints PolymorphicSerializer<SomeInterface>: println(module.serializer<SomeInterface>())
Behavior in 1.7.0-RC, 1.7.0, and higher:
... (truncated)
Changelog
Sourced from org.jetbrains.kotlinx:kotlinx-serialization-json's changelog.
1.7.1 / 2024-06-25
This is a bugfix release that aims to fix missing
kotlinx-serialization-hoconartifact. It also contains experimental integration withkotlinx-iolibrary. Kotlin 2.0.0 is used by default.Fixed HOCON publication
Sadly, 1.7.0 release was published incomplete:
kotlinx-serialization-hoconartifact is missing from 1.7.0 and 1.7.0-RC releases. This release fixes this problem and nowkotlinx-serialization-hoconis available again with 1.7.1 version. No other changes were made to this artifact. Related ticket: #2717.Add integration with a kotlinx-io library
kotlinx-iois an official multiplatform library that provides basic IO primitives, similar to Okio. kotlinx.serialization integration is now available in a separate artifact, located at thekotlinx-serialization-json-iocoordinates. Integration artifact provides functions similar to existing Okio integration:encodeToSink,decodeFromSource, anddecodeSourceToSequence. Check out the PR for more details.Other bugfixes
- Prohibited use of elements other than JsonObject in JsonTransformingSerializer with polymorphic serialization (#2715)
1.7.0 / 2024-06-05
This release contains all of the changes from 1.7.0-RC and is compatible with Kotlin 2.0. Please note that for reasons explained in the 1.7.0-RC changelog, it may not be possible to use it with the Kotlin 1.9.x compiler plugin. Yet, it is still fully backwards compatible with previous versions.
The only difference with 1.7.0-RC is that
classDiscriminatorModeproperty inJsonBuilderis marked as experimental, as it should have been when it was introduced (#2680).1.7.0-RC / 2024-05-16
This is a release candidate for the next version. It is based on Kotlin 2.0.0-RC3 and is fully compatible with a stable Kotlin 2.0 release. Due to a potential breaking change (see below), it requires a compiler plugin with a version at least of 2.0.0-RC1.
Important change: priority of PolymorphicSerializer for interfaces during call to serializer() function
Non-sealed interfaces in kotlinx.serialization are always serializable with a polymorphic serializer, even if they do not have
@Serializableannotation. This also means thatserializersModule.serializer<SomeInterface>()call will return you a serializer capable of polymorphism. This function was written in a way that it unconditionally returns aPolymorphicSerializerif type argument is a non-sealed interface. This caused problems withSerializersModulefunctionality, because actual module was not taken into consideration, and therefore it was impossible to override serializer for interface using 'contextual serialization' feature. The problem is described in details here. To overcome these problems, we had to change the behavior of this function regarding interfaces. It now looks intoSerializersModulefirst ifTis a non-sealed interface, and only if there is no registered contextual serializer forT, it returns a polymorphic serializer.Behavior before 1.7.0-RC:
... (truncated)
Commits
c75b46dPrepare 1.7.1 release (#2726)c628e29Prohibited use of elements other than JsonObject in JsonTransformingSerialize...3de98ffFixed HOCON publication (#2723)0013192Setup running native tests in release mode (#2667)08e604aAdd integration with kotlinx-io library (#2707)d2dc7d2Update to Kotlin 2.0 and prepare 1.7.0 release (#2706)1cac162Merge remote-tracking branch 'origin/master' into devfbd0734Use@PublishedApiannotation on functions called from plugin-generated code (...4bf4113Add bencoding to community-supported formats (#2687)c487e78JSON: Fix mutableclassDiscriminatorModein config, and mark experimental i...- Additional commits viewable in compare view
Updates org.jetbrains.kotlinx:kotlinx-serialization-hocon from 1.6.3 to 1.7.1
Release notes
Sourced from org.jetbrains.kotlinx:kotlinx-serialization-hocon's releases.
1.7.1
This is a bugfix release that aims to fix missing
kotlinx-serialization-hoconartifact. It also contains experimental integration withkotlinx-iolibrary. Kotlin 2.0.0 is used by default.Fixed HOCON publication
Sadly, 1.7.0 release was published incomplete:
kotlinx-serialization-hoconartifact is missing from 1.7.0 and 1.7.0-RC releases. This release fixes this problem and nowkotlinx-serialization-hoconis available again with 1.7.1 version. No other changes were made to this artifact. Related ticket: #2717.Add integration with a kotlinx-io library
kotlinx-iois an official multiplatform library that provides basic IO primitives, similar to Okio. kotlinx.serialization integration is now available in a separate artifact, located at thekotlinx-serialization-json-iocoordinates. Integration artifact provides functions similar to existing Okio integration:encodeToSink,decodeFromSource, anddecodeSourceToSequence. Check out the PR for more details.Other bugfixes
- Prohibited use of elements other than JsonObject in JsonTransformingSerializer with polymorphic serialization (#2715)
1.7.0
This release contains all of the changes from 1.7.0-RC and is compatible with Kotlin 2.0. Please note that for reasons explained in the 1.7.0-RC changelog, it may not be possible to use it with the Kotlin 1.9.x compiler plugin. Yet, it is still fully backward compatible with previous versions.
The only difference with 1.7.0-RC is that the
classDiscriminatorModeproperty inJsonBuilderis marked as experimental, as it should have been when it was introduced (#2680).1.7.0-RC
This is a release candidate for the next version. It is based on Kotlin 2.0.0-RC3 and is fully compatible with a stable Kotlin 2.0 release. Due to a potential breaking change (see below), it requires a compiler plugin with a version at least of 2.0.0-RC1.
Important change: priority of PolymorphicSerializer for interfaces during call to serializer() function
Non-sealed interfaces in kotlinx.serialization are always serializable with a polymorphic serializer, even if they do not have
@Serializableannotation. This also means thatserializersModule.serializer<SomeInterface>()call will return you a serializer capable of polymorphism. This function was written in a way that it unconditionally returns aPolymorphicSerializerif type argument is a non-sealed interface. This caused problems withSerializersModulefunctionality, because actual module was not taken into consideration, and therefore it was impossible to override serializer for interface using 'contextual serialization' feature. The problem is described in detail here. To overcome these problems, we had to change the behavior of this function regarding interfaces. It now looks intoSerializersModulefirst ifTis a non-sealed interface, and only if there is no registered contextual serializer forT, it returns a polymorphic serializer.Behavior before 1.7.0-RC:
interface SomeInterfaceval module = SerializersModule { contextual(SomeInterface::class, CustomSomeInterfaceSerializer) }
// Prints PolymorphicSerializer<SomeInterface>: println(module.serializer<SomeInterface>())
Behavior in 1.7.0-RC, 1.7.0, and higher:
... (truncated)
Changelog
Sourced from org.jetbrains.kotlinx:kotlinx-serialization-hocon's changelog.
1.7.1 / 2024-06-25
This is a bugfix release that aims to fix missing
kotlinx-serialization-hoconartifact. It also contains experimental integration withkotlinx-iolibrary. Kotlin 2.0.0 is used by default.Fixed HOCON publication
Sadly, 1.7.0 release was published incomplete:
kotlinx-serialization-hoconartifact is missing from 1.7.0 and 1.7.0-RC releases. This release fixes this problem and nowkotlinx-serialization-hoconis available again with 1.7.1 version. No other changes were made to this artifact. Related ticket: #2717.Add integration with a kotlinx-io library
kotlinx-iois an official multiplatform library that provides basic IO primitives, similar to Okio. kotlinx.serialization integration is now available in a separate artifact, located at thekotlinx-serialization-json-iocoordinates. Integration artifact provides functions similar to existing Okio integration:encodeToSink,decodeFromSource, anddecodeSourceToSequence. Check out the PR for more details.Other bugfixes
- Prohibited use of elements other than JsonObject in JsonTransformingSerializer with polymorphic serialization (#2715)
1.7.0 / 2024-06-05
This release contains all of the changes from 1.7.0-RC and is compatible with Kotlin 2.0. Please note that for reasons explained in the 1.7.0-RC changelog, it may not be possible to use it with the Kotlin 1.9.x compiler plugin. Yet, it is still fully backwards compatible with previous versions.
The only difference with 1.7.0-RC is that
classDiscriminatorModeproperty inJsonBuilderis marked as experimental, as it should have been when it was introduced (#2680).1.7.0-RC / 2024-05-16
This is a release candidate for the next version. It is based on Kotlin 2.0.0-RC3 and is fully compatible with a stable Kotlin 2.0 release. Due to a potential breaking change (see below), it requires a compiler plugin with a version at least of 2.0.0-RC1.
Important change: priority of PolymorphicSerializer for interfaces during call to serializer() function
Non-sealed interfaces in kotlinx.serialization are always serializable with a polymorphic serializer, even if they do not have
@Serializableannotation. This also means thatserializersModule.serializer<SomeInterface>()call will return you a serializer capable of polymorphism. This function was written in a way that it unconditionally returns aPolymorphicSerializerif type argument is a non-sealed interface. This caused problems withSerializersModulefunctionality, because actual module was not taken into consideration, and therefore it was impossible to override serializer for interface using 'contextual serialization' feature. The problem is described in details here. To overcome these problems, we had to change the behavior of this function regarding interfaces. It now looks intoSerializersModulefirst ifTis a non-sealed interface, and only if there is no registered contextual serializer forT, it returns a polymorphic serializer.Behavior before 1.7.0-RC:
... (truncated)
Commits
c75b46dPrepare 1.7.1 release (#2726)c628e29Prohibited use of elements other than JsonObject in JsonTransformingSerialize...3de98ffFixed HOCON publication (#2723)0013192Setup running native tests in release mode (#2667)08e604aAdd integration with kotlinx-io library (#2707)d2dc7d2Update to Kotlin 2.0 and prepare 1.7.0 release (#2706)1cac162Merge remote-tracking branch 'origin/master' into devfbd0734Use@PublishedApiannotation on functions called from plugin-generated code (...4bf4113Add bencoding to community-supported formats (#2687)c487e78JSON: Fix mutableclassDiscriminatorModein config, and mark experimental i...- Additional commits viewable in compare view
Updates org.jetbrains.kotlinx:kotlinx-serialization-protobuf from 1.6.3 to 1.7.1
Release notes
Sourced from org.jetbrains.kotlinx:kotlinx-serialization-protobuf's releases.
1.7.1
This is a bugfix release that aims to fix missing
kotlinx-serialization-hoconartifact. It also contains experimental integration withkotlinx-iolibrary. Kotlin 2.0.0 is used by default.Fixed HOCON publication
Sadly, 1.7.0 release was published incomplete:
kotlinx-serialization-hoconartifact is missing from 1.7.0 and 1.7.0-RC releases. This release fixes this problem and nowkotlinx-serialization-hoconis available again with 1.7.1 version. No other changes were made to this artifact. Related ticket: #2717.Add integration with a kotlinx-io library
kotlinx-iois an official multiplatform library that provides basic IO primitives, similar to Okio. kotlinx.serialization integration is now available in a separate artifact, located at thekotlinx-serialization-json-iocoordinates. Integration artifact provides functions similar to existing Okio integration:encodeToSink,decodeFromSource, anddecodeSourceToSequence. Check out the PR for more details.Other bugfixes
- Prohibited use of elements other than JsonObject in JsonTransformingSerializer with polymorphic serialization (#2715)
1.7.0
This release contains all of the changes from 1.7.0-RC and is compatible with Kotlin 2.0. Please note that for reasons explained in the 1.7.0-RC changelog, it may not be possible to use it with the Kotlin 1.9.x compiler plugin. Yet, it is still fully backward compatible with previous versions.
The only difference with 1.7.0-RC is that the
classDiscriminatorModeproperty inJsonBuilderis marked as experimental, as it should have been when it was introduced (#2680).1.7.0-RC
This is a release candidate for the next version. It is based on Kotlin 2.0.0-RC3 and is fully compatible with a stable Kotlin 2.0 release. Due to a potential breaking change (see below), it requires a compiler plugin with a version at least of 2.0.0-RC1.
Important change: priority of PolymorphicSerializer for interfaces during call to serializer() function
Non-sealed interfaces in kotlinx.serialization are always serializable with a polymorphic serializer, even if they do not have
@Serializableannotation. This also means thatserializersModule.serializer<SomeInterface>()call will return you a serializer capable of polymorphism. This function was written in a way that it unconditionally returns aPolymorphicSerializerif type argument is a non-sealed interface. This caused problems withSerializersModulefunctionality, because actual module was not taken into consideration, and therefore it was impossible to override serializer for interface using 'contextual serialization' feature. The problem is described in detail here. To overcome these problems, we had to change the behavior of this function regarding interfaces. It now looks intoSerializersModulefirst ifTis a non-sealed interface, and only if there is no registered contextual serializer forT, it returns a polymorphic serializer.Behavior before 1.7.0-RC:
interface SomeInterfaceval module = SerializersModule { contextual(SomeInterface::class, CustomSomeInterfaceSerializer) }
// Prints PolymorphicSerializer<SomeInterface>: println(module.serializer<SomeInterface>())
Behavior in 1.7.0-RC, 1.7.0, and higher:
... (truncated)
Changelog
Sourced from org.jetbrains.kotlinx:kotlinx-serialization-protobuf's changelog.
1.7.1 / 2024-06-25
This is a bugfix release that aims to fix missing
kotlinx-serialization-hoconartifact. It also contains experimental integration withkotlinx-iolibrary. Kotlin 2.0.0 is used by default.Fixed HOCON publication
Sadly, 1.7.0 release was published incomplete:
kotlinx-serialization-hoconartifact is missing from 1.7.0 and 1.7.0-RC releases. This release fixes this problem and nowkotlinx-serialization-hoconis available again with 1.7.1 version. No other changes were made to this artifact. Related ticket: #2717.Add integration with a kotlinx-io library
kotlinx-iois an official multiplatform library that provides basic IO primitives, similar to Okio. kotlinx.serialization integration is now available in a separate artifact, located at thekotlinx-serialization-json-iocoordinates. Integration artifact provides functions similar to existing Okio integration:encodeToSink,decodeFromSource, anddecodeSourceToSequence. Check out the PR for more details.Other bugfixes
- Prohibited use of elements other than JsonObject in JsonTransformingSerializer with polymorphic serialization (#2715)
1.7.0 / 2024-06-05
This release contains all of the changes from 1.7.0-RC and is compatible with Kotlin 2.0. Please note that for reasons explained in the 1.7.0-RC changelog, it may not be possible to use it with the Kotlin 1.9.x compiler plugin. Yet, it is still fully backwards compatible with previous versions.
The only difference with 1.7.0-RC is that
classDiscriminatorModeproperty inJsonBuilderis marked as experimental, as it should have been when it was introduced (#2680).1.7.0-RC / 2024-05-16
This is a release candidate for the next version. It is based on Kotlin 2.0.0-RC3 and is fully compatible with a stable Kotlin 2.0 release. Due to a potential breaking change (see below), it requires a compiler plugin with a version at least of 2.0.0-RC1.
Important change: priority of PolymorphicSerializer for interfaces during call to serializer() function
Non-sealed interfaces in kotlinx.serialization are always serializable with a polymorphic serializer, even if they do not have
@Serializableannotation. This also means thatserializersModule.serializer<SomeInterface>()call will return you a serializer capable of polymorphism. This function was written in a way that it unconditionally returns aPolymorphicSerializerif type argument is a non-sealed interface. This caused problems withSerializersModulefunctionality, because actual module was not taken into consideration, and therefore it was impossible to override serializer for interface using 'contextual serialization' feature. The problem is described in details here. To overcome these problems, we had to change the behavior of this function regarding interfaces. It now looks intoSerializersModulefirst ifTis a non-sealed interface, and only if there is no registered contextual serializer forT, it returns a polymorphic serializer.Behavior before 1.7.0-RC:
... (truncated)
Commits
c75b46dPrepare 1.7.1 release (#2726)c628e29Prohibited use of elements other than JsonObject in JsonTransformingSerialize...3de98ffFixed HOCON publication (#2723)0013192Setup running native tests in release mode (#2667)08e604aAdd integration with kotlinx-io library (#2707)d2dc7d2Update to Kotlin 2.0 and prepare 1.7.0 release (#2706)1cac162Merge remote-tracking branch 'origin/master' into devfbd0734Use@PublishedApiannotation on functions called from plugin-generated code (...4bf4113Add bencoding to community-supported formats (#2687)c487e78JSON: Fix mutableclassDiscriminatorModein config, and mark experimental i...- Additional commits viewable in compare view
Updates org.jetbrains.kotlinx:kotlinx-serialization-cbor from 1.6.3 to 1.7.1
Release notes
Sourced from org.jetbrains.kotlinx:kotlinx-serialization-cbor's releases.
1.7.1
This is a bugfix release that aims to fix missing
kotlinx-serialization-hoconartifact. It also contains experimental integration withkotlinx-iolibrary. Kotlin 2.0.0 is used by default.Fixed HOCON publication
Sadly, 1.7.0 release was published incomplete:
kotlinx-serialization-hoconartifact is missing from 1.7.0 and 1.7.0-RC releases. This release fixes this problem and nowkotlinx-serialization-hoconis available again with 1.7.1 version. No other changes were made to this artifact. Related ticket: #2717.Add integration with a kotlinx-io library
kotlinx-iois an official multiplatform library that provides basic IO primitives, similar to Okio. kotlinx.serialization integration is now available in a separate artifact, located at thekotlinx-serialization-json-iocoordinates. Integration artifact provides functions similar to existing Okio integration:encodeToSink,decodeFromSource, anddecodeSourceToSequence. Check out the PR for more details.Other bugfixes
- Prohibited use of elements other than JsonObject in JsonTransformingSerializer with polymorphic serialization (#2715)
1.7.0
This release contains all of the changes from 1.7.0-RC and is compatible with Kotlin 2.0. Please note that for reasons explained in the 1.7.0-RC changelog, it may not be possible to use it with the Kotlin 1.9.x compiler plugin. Yet, it is still fully backward compatible with previous versions.
The only difference with 1.7.0-RC is that the
classDiscriminatorModeproperty inJsonBuilderis marked as experimental, as it should have been when it was introduced (#2680).1.7.0-RC
This is a release candidate for the next version. It is based on Kotlin 2.0.0-RC3 and is fully compatible with a stable Kotlin 2.0 release. Due to a potential breaking change (see below), it requires a compiler plugin with a version at least of 2.0.0-RC1.
Important change: priority of PolymorphicSerializer for interfaces during call to serializer() function
Non-sealed interfaces in kotlinx.serialization are always serializable with a polymorphic serializer, even if they do not have
@Serializableannotation. This also means thatserializersModule.serializer<SomeInterface>()call will return you a serializer capable of polymorphism. This function was written in a way that it unconditionally returns aPolymorphicSerializerif type argument is a non-sealed interface. This caused problems withSerializersModulefunctionality, because actual module was not taken into consideration, and therefore it was impossible to override serializer for interface using 'contextual serialization' feature. The problem is described in detail here. To overcome these problems, we had to change the behavior of this function regarding interfaces. It now looks intoSerializersModulefirst ifTis a non-sealed interface, and only if there is no registered contextual serializer forT, it returns a polymorphic serializer.Behavior before 1.7.0-RC:
interface SomeInterfaceval module = SerializersModule { contextual(SomeInterface::class, CustomSomeInterfaceSerializer) }
// Prints PolymorphicSerializer<SomeInterface>: println(module.serializer<SomeInterface>())
Behavior in 1.7.0-RC, 1.7.0, and higher:
... (truncated)
Changelog
Sourced from org.jetbrains.kotlinx:kotlinx-serialization-cbor's changelog.
1.7.1 / 2024-06-25
This is a bugfix release that aims to fix missing
kotlinx-serialization-hoconartifact. It also contains experimental integration withkotlinx-iolibrary. Kotlin 2.0.0 is used by default.Fixed HOCON publication
Sadly, 1.7.0 release was published incomplete:
kotlinx-serialization-hoconartifact is missing from 1.7.0 and 1.7.0-RC releases. This release fixes this problem and nowkotlinx-serialization-hoconis available again with 1.7.1 version. No other changes were made to this artifact. Related ticket: #2717.Add integration with a kotlinx-io library
kotlinx-iois an official multiplatform library that provides basic IO primitives, similar to Okio. kotlinx.serialization integration is now available in a separate artifact, located at thekotlinx-serialization-json-iocoordinates. Integration artifact provides functions similar to existing Okio integration:encodeToSink,decodeFromSource, anddecodeSourceToSequence. Check out the PR for more details.Other bugfixes
- Prohibited use of elements other than JsonObject in JsonTransformingSerializer with polymorphic serialization (#2715)
1.7.0 / 2024-06-05
This release contains all of the changes from 1.7.0-RC and is compatible with Kotlin 2.0. Please note that for reasons explained in the 1.7.0-RC changelog, it may not be possible to use it with the Kotlin 1.9.x compiler plugin. Yet, it is still fully backwards compatible with previous versions.
The only difference with 1.7.0-RC is that
classDiscriminatorModeproperty inJsonBuilderis marked as experimental, as it should have been when it was introduced (#2680).1.7.0-RC / 2024-05-16
This is a release candidate for the next version. It is based on Kotlin 2.0.0-RC3 and is fully compatible with a stable Kotlin 2.0 release. Due to a potential breaking change (see below), it requires a compiler plugin with a version at least of 2.0.0-RC1.
Important change: priority of PolymorphicSerializer for interfaces during call to serializer() function
Non-sealed interfaces in kotlinx.serialization are always serializable with a polymorphic serializer, even if they do not have
@Serializableannotation. This also means thatserializersModule.serializer<SomeInterface>()call will return you a serializer capable of polymorphism. This function was written in a way that it unconditionally returns aPolymorphicSerializerif type argument is a non-sealed interface. This caused problems withSerializersModulefunctionality, because actual module was not taken into consideration, and therefore it was impossible to override serializer for interface using 'contextual serialization' feature. The problem is described in details here. To overcome these problems, we had to change the behavior of this function regarding interfaces. It now looks intoSerializersModulefirst ifTis a non-sealed interface, and only if there is no registered contextual serializer forT, it returns a polymorphic serializer.Behavior before 1.7.0-RC:
... (truncated)
Commits
c75b46dPrepare 1.7.1 release (#2726)c628e29Prohibited use of elements other than JsonObject in JsonTransformingSerialize...3de98ffFixed HOCON publication (#2723)0013192Setup running native tests in release mode (#2667)08e604aAdd integration with kotlinx-io library (#2707)d2dc7d2Update to Kotlin 2.0 and prepare 1.7.0 release (#2706)1cac162Merge remote-tracking branch 'origin/master' into devfbd0734Use@PublishedApiannotation on functions called from plugin-generated code (...4bf4113Add bencoding to community-supported formats (#2687)c487e78JSON: Fix mutableclassDiscriminatorModein config, and mark experimental i...- Additional commits viewable in compare view
Updates org.jetbrains.kotlinx:kotlinx-serialization-properties from 1.6.3 to 1.7.1
Release notes
Sourced from org.jetbrains.kotlinx:kotlinx-serialization-properties's releases.
1.7.1
This is a bugfix release that aims to fix missing
kotlinx-serialization-hoconartifact. It also contains experimental integration withkotlinx-iolibrary. Kotlin 2.0.0 is used by default.Fixed HOCON publication
Sadly, 1.7.0 release was published incomplete:
kotlinx-serialization-hoconartifact is missing from 1.7.0 and 1.7.0-RC releases. This release fixes this problem and nowkotlinx-serialization-hoconis available again with 1.7.1 version. No other changes were made to this artifact. Related ticket: #2717.Add integration with a kotlinx-io library
kotlinx-iois an official multiplatform library that provides basic IO primitives, similar to Okio. kotlinx.serialization integration is now available in a separate artifact, located at thekotlinx-serialization-json-iocoordinates. Integration artifact provides functions similar to existing Okio integration:encodeToSink,decodeFromSource, anddecodeSourceToSequence. Check out the PR for more details.Other bugfixes
- Prohibited use of elements other than JsonObject in JsonTransformingSerializer with polymorphic serialization (#2715)
1.7.0
This release contains all of the changes from 1.7.0-RC and is compatible with Kotlin 2.0. Please note that for reasons explained in the 1.7.0-RC changelog, it may not be possible to use it with the Kotlin 1.9.x compiler plugin. Yet, it is still fully backward compatible with previous versions.
The only difference with 1.7.0-RC is that the
classDiscriminatorModeproperty inJsonBuilderis marked as experimental, as it should have been when it was introduced (#2680).1.7.0-RC
This is a release candidate for the next version. It is based on Kotlin 2.0.0-RC3 and is fully compatible with a stable Kotlin 2.0 release. Due to a potential breaking change (see below), it requires a compiler plugin with a version at least of 2.0.0-RC1.
Important change: priority of PolymorphicSerializer for interfaces during call to serializer() function
Non-sealed interfaces in kotlinx.serialization are always serializable with a polymorphic serializer, even if they do not have
@Serializableannotation. This also means thatserializersModule.serializer<SomeInterface>()call will return you a serializer capable of polymorphism. This function was written in a way that it unconditionally returns aPolymorphicSerializerif type argument is a non-sealed interface. This caused problems withSerializersModulefunctionality, because actual module was not taken into consideration, and therefore it was impossible to override serializer for interface using 'contextual serialization' feature. The problem is described in detail here. To overcome these problems, we had to change the behavior of this function regarding interfaces. It now looks intoSerializersModulefirst ifTis a non-sealed interface, and only if there is no registered contextual serializer forT, it returns a polymorphic serializer.Behavior before 1.7.0-RC:
interface SomeInterfaceval module = SerializersModule { contextual(SomeInterface::class, CustomSomeInterfaceSerializer) }
// Prints PolymorphicSerializer<SomeInterface>: println(module.serializer<SomeInterface>())
Behavior in 1.7.0-RC, 1.7.0, and higher:
... (truncated)
Changelog
Sourced from org.j...
Description has been truncated