Skip to content
This repository has been archived by the owner on Nov 14, 2022. It is now read-only.

Update dependency org.jetbrains.kotlinx:kotlinx-serialization-json to v1.4.0 #5

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Dec 21, 2021

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
org.jetbrains.kotlinx:kotlinx-serialization-json 1.2.2 -> 1.4.0 age adoption passing confidence

⚠ Dependency Lookup Warnings ⚠

Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information.


Release Notes

Kotlin/kotlinx.serialization

v1.4.0

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

This release contains all features and bugfixes from 1.4.0-RC plus some bugfixes on its own (see below).
Kotlin 1.7.10 is used as a default.

Bugfixes
  • Fixed decoding of huge JSON data for okio streams (#​2006)

v1.3.3

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

This release contains support for Protocol Buffers packed fields, as well as several bugfixes.
It uses Kotlin 1.6.21 by default.

Protobuf packed fields

It is now possible to encode and decode Kotlin classes to/from Protobuf messages with packed repeated fields.
To mark the field as packed, use @ProtoPacked annotation on it.
Note it affects only List and primitive collection such as IntArray types.
With this feature, it is now possible to decode Proto3 messages, where all repeated fields are packed by default.
Protobuf schema generator also supports new @ProtoPacked annotation.

Many thanks to Paul de Vrieze for his valuable contribution!

Other improvements & small features
  • Incorporate JsonPath into exception messages (#​1841)
  • Mark block in corresponding encodeStructure/decodeStructure extensions as crossinline to reduce amount of bytecode (#​1917)
  • Support serialization of compile-time Collection<E> properties that are not lists at the runtime (#​1821)
  • Best-effort kotlin reflect avoidance in serializer(Type) (#​1819)
Bugfixes
  • Iterate over element indices in ObjectSerializer in order to let the format skip unknown keys (#​1916)
  • Correctly support registering both default polymorphic serializer & deserializer (#​1849)
  • Make error message for captured generic type parameters much more straightforward (#​1863)

v1.3.2

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

This release contains several features and bugfixes for core API as well as for HOCON format.
It uses Kotlin 1.6.10 by default.

Serializing objects to HOCON

It's now possible to encode Kotlin objects to Config values with new Hocon.encodeToConfig function.
This feature may help edit existing configs inside Kotlin program or generate new ones.

Big thanks to Osip Fatkullin for implementing this.

Polymorphic default serializers

As of now, polymorphicDefault clause inside SerializersModule { } builder specifies a
fallback serializer to be used only during deserialization process. A new function has been introduced to allow setting
fallback serializer for serialization: polymorphicDefaultSerializer.
This function should ease serializing vast hierarchies of third-party or Java classes.

Note that there are two new experimental functions, polymorphicDefaultSerializer and polymorphicDefaultDeserializer.
To avoid naming confusion, we are going to deprecate polymorphicDefault in favor of polymorphicDefaultDeserializer in the next minor release (1.4.0).

Credit for the PR goes to our contributor Joseph Burton.

Other improvements
Bugfixes
  • Properly handle top-level value classes in encodeToJsonElement (#​1777)
  • Fix incorrect handling of object end when JsonTreeReader (JsonElement) is used with decodeToSequence (#​1782)

v1.3.1

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

This release mainly contains bugfixes for 1.3.0 and provides new experimental Json.decodeToSequence function.

Improvements
  • Provide decodeToSequence to read multiple objects from stream lazily (#​1691)
Bugfixes
  • Correctly handle buffer boundaries while decoding escape sequences from json stream (#​1706)
  • Properly skip unknown keys for objects and structures with zero properties (#​1720)
  • Fix merging for maplikeSerializer when the map is not empty (by using the actual size * 2). (#​1712) (thanks to pdvrieze)
  • Fix lookup of primitive array serializers by Java type token (#​1708)

v1.3.0

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

This release contains all of the cool new features from 1.3.0-RC (see below) as well as minor improvements.
It uses Kotlin 1.5.31 by default.

Bugfixes and improvements
  • Promote JsonConfiguration and its usages to stable (#​1690)
  • Remove opt-in annotations from SerialFormat, StringFormat, BinaryFormat (#​1688)
  • Correctly throw SerializationException instead of IOOBE for some cases with EOF in streams (#​1677)
  • CBOR: ignore tags when reading (#​1614) (thanks to David Robertson)

Configuration

📅 Schedule: 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 this update again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/org.jetbrains.kotlinx-kotlinx-serialization-json-1.x branch from e0df226 to 394c94c Compare December 23, 2021 17:22
@renovate renovate bot changed the title Update dependency org.jetbrains.kotlinx:kotlinx-serialization-json to v1.3.1 Update dependency org.jetbrains.kotlinx:kotlinx-serialization-json to v1.3.2 Dec 23, 2021
@renovate renovate bot changed the title Update dependency org.jetbrains.kotlinx:kotlinx-serialization-json to v1.3.2 Update dependency org.jetbrains.kotlinx:kotlinx-serialization-json to v1.3.3 May 15, 2022
@renovate renovate bot force-pushed the renovate/org.jetbrains.kotlinx-kotlinx-serialization-json-1.x branch from 394c94c to ec79666 Compare May 15, 2022 23:42
@renovate renovate bot force-pushed the renovate/org.jetbrains.kotlinx-kotlinx-serialization-json-1.x branch from ec79666 to 8047351 Compare September 25, 2022 20:13
@renovate renovate bot changed the title Update dependency org.jetbrains.kotlinx:kotlinx-serialization-json to v1.3.3 Update dependency org.jetbrains.kotlinx:kotlinx-serialization-json to v1.4.0 Sep 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants