You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+32Lines changed: 32 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,36 @@
1
1
2
+
1.6.0-RC / 2023-08-03
3
+
==================
4
+
5
+
This release is based on the Kotlin 1.9.0.
6
+
7
+
### Removal of Legacy JS target
8
+
Some time ago, in Kotlin 1.8, [JS IR compiler was promoted to stable and old JS compiler was deprecated](https://kotlinlang.org/docs/whatsnew18.html#stable-js-ir-compiler-backend).
9
+
Kotlin 1.9 promotes the usage of deprecated JS compiler to an error. As a result, kotlinx.serialization no longer builds with the legacy compiler
10
+
and does not distribute artifacts for it. You can read the migration guide for JS IR compiler [here](https://kotlinlang.org/docs/js-ir-migration.html).
11
+
12
+
Also pay attention to the fact that Kotlin/Native also has some [deprecated targets](https://kotlinlang.org/docs/native-target-support.html#deprecated-targets)
13
+
that are going to be removed in the Kotlin 1.9.20. Therefore, kotlinx.serialization 1.6.0-RC and 1.6.0 are likely the last releases that support these targets.
14
+
15
+
### Case insensitivity for enums in Json
16
+
17
+
This release features a new configuration flag for Json: `decodeEnumsCaseInsensitive`
18
+
that allows you to decode enum values in a case-insensitive manner.
19
+
For example, when decoding `enum class Foo { VALUE_A , VALUE_B}` both inputs `"value_a"` and `"value_A"` will yield `Foo.VALUE_A`.
20
+
You can read more about this feature in the documentation and corresponding [PR](https://github.com/Kotlin/kotlinx.serialization/pull/2345).
21
+
22
+
### Other bugfixes and enhancements
23
+
24
+
* Add support to decode numeric literals containing an exponent (#2227) (thanks to [Roberto Blázquez](https://github.com/xBaank))
25
+
* Fix NoSuchMethodError related to Java 8 API compatibility (#2328, #2350) (thanks to [Björn Kautler](https://github.com/Vampire))
26
+
* Changed actual FormatLanguage annotation for JS and Native to avoid problems with duplicating org.intellij.lang.annotations.Language (#2390, #2379)
27
+
* Fix error triggered by 'consume leading class discriminator' polymorphic parsing optimization (#2362)
28
+
* Fix runtime error with Serializer for Nothing on the JS target (#2330) (thanks to [Shreck Ye](https://github.com/ShreckYe))
29
+
* Fix beginStructure in JsonTreeDecoder when inner structure descriptor is same as outer (#2346) (thanks to [Ugljesa Jovanovic](https://github.com/ionspin))
30
+
* Actualize 'serializer not found' platform-specific message (#2339)
31
+
* Fixed regression with serialization using a list parametrized with contextual types (#2331)
32
+
33
+
2
34
1.5.1 / 2023-05-11
3
35
==================
4
36
This release contains an important Native targets overhaul, as well as numerous enhancements and bugfixes.
0 commit comments