From 8a2c1c0e05ac9c77746141837f6d53d923e24d8a Mon Sep 17 00:00:00 2001 From: Leonid Startsev Date: Fri, 24 Feb 2023 16:21:56 +0100 Subject: [PATCH] Prepare 1.5.0 release (#2207) --- CHANGELOG.md | 25 +++++++++++++++++++++++++ README.md | 24 ++++++++++++------------ gradle.properties | 8 ++++---- integration-test/gradle.properties | 4 ++-- 4 files changed, 43 insertions(+), 18 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc56d272f..0991d4446 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,28 @@ +1.5.0 / 2023-02-27 +================== + +This release contains all features and bugfixes from 1.5.0-RC plus some experimental features and bugfixes on its own (see below). +Kotlin 1.8.10 is used as a default. + +### HoconEncoder and HoconDecoder interfaces and HOCON-specific serializers + +These interfaces work in a way similar to `JsonEncoder` and `JsonDecoder`: they allow intercepting (de)serialization process, +making writing if custom HOCON-specific serializers easier. New `ConfigMemorySizeSerializer` and `JavaDurationSerializer` already make use of them. +See more details in the [PR](https://github.com/Kotlin/kotlinx.serialization/pull/2094). +Big thanks to [Alexander Mikhailov](https://github.com/alexmihailov) for contributing this! + +### Ability to read buffered huge strings in custom Json deserializers + +New interface `ChunkedDecoder` allows you to read huge strings that may not fit in memory by chunks. +Currently, this interface is only implemented by Json decoder that works with strings and streams, +but we may expand it later, if there's a demand for it. +See more details in the [PR](https://github.com/Kotlin/kotlinx.serialization/pull/2012) authored by [Alexey Sviridov](https://github.com/fred01). + +### Bugfixes + + * Improve runtime exceptions messages (#2180) + * Added support for null values for nullable enums in lenient mode (#2176) + * Prevent class loaders from leaking when using ClassValue cache (#2175) 1.5.0-RC / 2023-01-25 ================== diff --git a/README.md b/README.md index 3cd94ab2f..f554b457e 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ [![JetBrains official project](https://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub) [![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg?style=flat)](http://www.apache.org/licenses/LICENSE-2.0) [![TeamCity build](https://img.shields.io/teamcity/http/teamcity.jetbrains.com/s/KotlinTools_KotlinxSerialization_Ko.svg)](https://teamcity.jetbrains.com/viewType.html?buildTypeId=KotlinTools_KotlinxSerialization_Ko&guest=1) -[![Kotlin](https://img.shields.io/badge/kotlin-1.8.0-blue.svg?logo=kotlin)](http://kotlinlang.org) -[![Maven Central](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-serialization-core/1.5.0-RC)](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-serialization-core/1.5.0-RC/pom) +[![Kotlin](https://img.shields.io/badge/kotlin-1.8.10-blue.svg?logo=kotlin)](http://kotlinlang.org) +[![Maven Central](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-serialization-core/1.5.0)](https://search.maven.org/artifact/org.jetbrains.kotlinx/kotlinx-serialization-core/1.5.0/pom) [![KDoc link](https://img.shields.io/badge/API_reference-KDoc-blue)](https://kotlinlang.org/api/kotlinx.serialization/) [![Slack channel](https://img.shields.io/badge/chat-slack-blue.svg?logo=slack)](https://kotlinlang.slack.com/messages/serialization/) @@ -92,8 +92,8 @@ Kotlin DSL: ```kotlin plugins { - kotlin("jvm") version "1.8.0" // or kotlin("multiplatform") or any other kotlin plugin - kotlin("plugin.serialization") version "1.8.0" + kotlin("jvm") version "1.8.10" // or kotlin("multiplatform") or any other kotlin plugin + kotlin("plugin.serialization") version "1.8.10" } ``` @@ -101,8 +101,8 @@ Groovy DSL: ```gradle plugins { - id 'org.jetbrains.kotlin.multiplatform' version '1.8.0' - id 'org.jetbrains.kotlin.plugin.serialization' version '1.8.0' + id 'org.jetbrains.kotlin.multiplatform' version '1.8.10' + id 'org.jetbrains.kotlin.plugin.serialization' version '1.8.10' } ``` @@ -119,7 +119,7 @@ buildscript { repositories { mavenCentral() } dependencies { - val kotlinVersion = "1.8.0" + val kotlinVersion = "1.8.10" classpath(kotlin("gradle-plugin", version = kotlinVersion)) classpath(kotlin("serialization", version = kotlinVersion)) } @@ -130,7 +130,7 @@ Groovy DSL: ```gradle buildscript { - ext.kotlin_version = '1.8.0' + ext.kotlin_version = '1.8.10' repositories { mavenCentral() } dependencies { @@ -159,7 +159,7 @@ repositories { } dependencies { - implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0-RC") + implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0") } ``` @@ -171,7 +171,7 @@ repositories { } dependencies { - implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0-RC" + implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.5.0" } ``` @@ -261,8 +261,8 @@ Ensure the proper version of Kotlin and serialization version: ```xml - 1.8.0 - 1.5.0-RC + 1.8.10 + 1.5.0 ``` diff --git a/gradle.properties b/gradle.properties index 61b0f0a01..e43cbcce9 100644 --- a/gradle.properties +++ b/gradle.properties @@ -3,12 +3,12 @@ # group=org.jetbrains.kotlinx -version=1.5.0-SNAPSHOT +version=1.5.1-SNAPSHOT -kotlin.version=1.8.0 +kotlin.version=1.8.10 -# This version take precedence if 'bootstrap' property passed to project -kotlin.version.snapshot=1.8.255-SNAPSHOT +# This version takes precedence if 'bootstrap' property passed to project +kotlin.version.snapshot=1.9.255-SNAPSHOT # Also set KONAN_LOCAL_DIST environment variable in bootstrap mode to auto-assign konan.home junit_version=4.12 diff --git a/integration-test/gradle.properties b/integration-test/gradle.properties index a180d86e3..317081ffa 100644 --- a/integration-test/gradle.properties +++ b/integration-test/gradle.properties @@ -2,8 +2,8 @@ # Copyright 2017-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license. # -mainKotlinVersion=1.8.0 -mainLibVersion=1.5.0-SNAPSHOT +mainKotlinVersion=1.8.10 +mainLibVersion=1.5.1-SNAPSHOT kotlin.code.style=official kotlin.js.compiler=ir