Skip to content

Commit

Permalink
Prepare 1.6.1 release (#2503)
Browse files Browse the repository at this point in the history
  • Loading branch information
sandwwraith authored Nov 15, 2023
1 parent b2a05a4 commit 79bbd4c
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 16 deletions.
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
1.6.1 / 2023-11-15
==================

This release uses Kotlin 1.9.20 by default, while upcoming 1.9.21 is also supported.

### Trailing commas in Json

Trailing commas are one of the most popular non-spec Json variations.
A new configuration flag, `allowTrailingComma`, makes Json parser accept them instead of throwing an exception.
Note that it does not affect encoding, so kotlinx.serialization always produces Json without trailing commas.
See details in the corresponding [PR](https://github.com/Kotlin/kotlinx.serialization/pull/2480)

### Support of WasmJs target

Kotlin/Wasm has been experimental for some time and gained enough maturity to be added to the kotlinx libraries.
Starting with 1.6.1, kotlinx.serialization provides a wasm-js flavor, so your projects with Kotlin/Wasm can have even more
functionality.
As usual, just add serialization dependencies to your build
and [declare wasmJs target](https://kotlinlang.org/docs/whatsnew1920.html#new-wasm-wasi-target-and-the-renaming-of-the-wasm-target-to-wasm-js).
Please remember that Kotlin/Wasm is still experimental, so changes are expected.

### Bugfixes and improvements

* Fix TaggedDecoder nullable decoding (#2456) (thanks to [Phillip Schichtel](https://github.com/pschichtel))
* Fix IllegalAccessException for some JPMS boundaries (#2469)
* Cbor: check if inline value classes are marked as @ByteString (#2466) (thanks to [eater](https://github.com/the-eater))
* Improve polymorphic deserialization optimization (#2481)
* Update Okio dependency to 3.6.0 (#2473)
* Add protobuf conformance tests (#2404) (thanks to [Doğaç Eldenk](https://github.com/Dogacel))
* Support decoding maps with boolean keys (#2440)

1.6.0 / 2023-08-22
==================
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.9.0-blue.svg?logo=kotlin)](http://kotlinlang.org)
[![Maven Central](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-serialization-core/1.6.0)](https://central.sonatype.com/artifact/org.jetbrains.kotlinx/kotlinx-serialization-core/1.6.0)
[![Kotlin](https://img.shields.io/badge/kotlin-1.9.20-blue.svg?logo=kotlin)](http://kotlinlang.org)
[![Maven Central](https://img.shields.io/maven-central/v/org.jetbrains.kotlinx/kotlinx-serialization-core/1.6.1)](https://central.sonatype.com/artifact/org.jetbrains.kotlinx/kotlinx-serialization-core/1.6.1)
[![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 @@ -95,17 +95,17 @@ Kotlin DSL:

```kotlin
plugins {
kotlin("jvm") version "1.9.0" // or kotlin("multiplatform") or any other kotlin plugin
kotlin("plugin.serialization") version "1.9.0"
kotlin("jvm") version "1.9.20" // or kotlin("multiplatform") or any other kotlin plugin
kotlin("plugin.serialization") version "1.9.20"
}
```

Groovy DSL:

```gradle
plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.9.0'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.9.0'
id 'org.jetbrains.kotlin.multiplatform' version '1.9.20'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.9.20'
}
```

Expand All @@ -123,7 +123,7 @@ buildscript {
repositories { mavenCentral() }

dependencies {
val kotlinVersion = "1.9.0"
val kotlinVersion = "1.9.20"
classpath(kotlin("gradle-plugin", version = kotlinVersion))
classpath(kotlin("serialization", version = kotlinVersion))
}
Expand All @@ -134,7 +134,7 @@ Groovy DSL:

```gradle
buildscript {
ext.kotlin_version = '1.9.0'
ext.kotlin_version = '1.9.20'
repositories { mavenCentral() }
dependencies {
Expand Down Expand Up @@ -164,7 +164,7 @@ repositories {
}

dependencies {
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0")
implementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.1")
}
```

Expand All @@ -176,7 +176,7 @@ repositories {
}
dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.0"
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.6.1"
}
```

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

```xml
<properties>
<kotlin.version>1.9.0</kotlin.version>
<serialization.version>1.6.0</serialization.version>
<kotlin.version>1.9.20</kotlin.version>
<serialization.version>1.6.1</serialization.version>
</properties>
```

Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#

group=org.jetbrains.kotlinx
version=1.6.1-SNAPSHOT
version=1.6.2-SNAPSHOT

kotlin.version=1.9.20-RC
kotlin.version=1.9.20

# This version takes precedence if 'bootstrap' property passed to project
kotlin.version.snapshot=1.9.255-SNAPSHOT
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.9.20-RC
mainLibVersion=1.6.1-SNAPSHOT
mainKotlinVersion=1.9.20
mainLibVersion=1.6.2-SNAPSHOT

kotlin.code.style=official
kotlin.js.compiler=ir
Expand Down

0 comments on commit 79bbd4c

Please sign in to comment.