:mega: kotlinx.serialization `0.20.0` has been rel...
# serialization
s
📣 kotlinx.serialization
0.20.0
has been released! This release is compatible only with Kotlin 1.3.70. It is focused on giving a library its final and stable API shape, so we took the liberty to introduce minor breaking changes in order to give users the better, more convenient API. Highlights: • Some declarations were deprecated because they are going to be replaced with others, e.g. top-level
IntSerializer
object was replaced with
Int.serializer()
extension function for consistency. • Json's
strictMode
flag is deprecated and replaced with 3 other flags, thus allowing to fine-tune settings. • Protobuf, Cbor and Mapper were extracted to separate artifacts to keep the core API lightweight. • A lot of bugs fixed and a lot of entities documented • Shiny new feature — json-specific transofrming serializers: instead of manipulating calls to
Encoder
and
Decoder
directly, one can write serializer using pure JSON AST manipulations. Learn more here: https://github.com/Kotlin/kotlinx.serialization/blob/master/docs/json_transformations.md Full release note with a list of deprecations, migration guides and fixed bugs is available in changelog: https://github.com/Kotlin/kotlinx.serialization/blob/master/CHANGELOG.md#0200--2020-03-04
K 2
👍 26
t
inline classes serialization - next release?
g
Protobuf, Cbor and Mapper were extracted to separate artifacts to keep the core API lightweight
Very good decision 👍 But probably It should be also done for Json and keep real core artifact of serialization
👍 1