Skip to content

Commit

Permalink
Prepare 1.5.0 release (#2207)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandwwraith authored Feb 24, 2023
1 parent 88f782c commit 8a2c1c0
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 18 deletions.
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
==================
Expand Down
24 changes: 12 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/)

Expand Down Expand Up @@ -92,17 +92,17 @@ 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"
}
```

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'
}
```

Expand All @@ -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))
}
Expand All @@ -130,7 +130,7 @@ Groovy DSL:

```gradle
buildscript {
ext.kotlin_version = '1.8.0'
ext.kotlin_version = '1.8.10'
repositories { mavenCentral() }
dependencies {
Expand Down Expand Up @@ -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")
}
```

Expand All @@ -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"
}
```

Expand Down Expand Up @@ -261,8 +261,8 @@ Ensure the proper version of Kotlin and serialization version:

```xml
<properties>
<kotlin.version>1.8.0</kotlin.version>
<serialization.version>1.5.0-RC</serialization.version>
<kotlin.version>1.8.10</kotlin.version>
<serialization.version>1.5.0</serialization.version>
</properties>
```

Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions integration-test/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a2c1c0

Please sign in to comment.