Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API]: Bump kotlinx-serialization-json from 1.0.1 to 1.1.0 in /noty-api #145

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 15, 2021

Bumps kotlinx-serialization-json from 1.0.1 to 1.1.0.

Release notes

Sourced from kotlinx-serialization-json's releases.

1.1.0

This release contains all features and bugfixes from 1.1.0-RC plus an additional fix for incorrect exception type (#1325 — Throw SerializationException instead of IllegalStateException in EnumSerializer) and uses release version of Kotlin 1.4.30.

In the light of JCenter shutdown, starting from 1.1.0-RC and now on, all new releases of kotlinx.serialization are published directly to Maven Central and therefore are not available in https://kotlin.bintray.com/kotlinx/ repository. We suggest you to remove jcenter() and other kotlin bintray repositories from your buildscripts and to use mavenCentral() repository instead.

1.1.0-RC

This is a release candidate of 1.1.0 version. Note that final 1.1.0 version may include more features and bugfixes, which would be listed in the corresponding changelog.

Kotlin version requirement updated

Due to changes in calling conventions between compiler plugin and serialization core runtime, this release requires Kotlin version at least 1.4.30-M1 (we recommend using 1.4.30 release version). However, these changes should not affect your code, because only deprecated functions were removed from public API. See corresponding PR for the details.

Experimental support for inline classes (IR only)

Using 1.1.0-RC, you can mark inline classes as @Serializable and use them in other serializable classes. Unsigned integer types (UByte, UShort, UInt and ULong) are serializable as well and have special support in JSON. This feature requires Kotlin compiler 1.4.30-RC and enabling new IR compilers for JS and JVM.

You can learn more in the documentation and corresponding pull request.

Other features

  • Add serializerOrNull function for KType and Type arguments (#1164)
  • Allow shared prefix names in Properties (#1183) (thanks to TorRanfelt)
  • Add support for encoding/decoding Properties values as Strings (#1158) (thanks to daniel-jasinski)

Bugfixes and performance improvements

  • Support contextual serialization for derived classes (#1277) (thanks to Martin Raison)
  • Ensure serialization is usable from K/N background thread (#1282)
  • Fail on primitive type overflow during JsonElement deserialization (#1300)
  • Throw SerializationException instead of ISE when encountering an invalid boolean in JSON (#1299)
  • Optimize the loop for writing large varints in ProtoBuf (#1294)
  • Fix serializing property with custom accessors and backing field (#1197)
  • Optimize check for missing fields in deserialization and improve MissingFieldException message (#1153)
  • Improved support of nullable serializer in @UseSerializers annotation (#1195)
  • Correctly escape keys in JsonObject.toString() (#1246) (thanks to Karlatemp)
  • Treat Collection as ArrayList in serializer by type lookups (#1257)
  • Do not try to end structure in encode/decode structure extensions if an exception has been thrown, so the original exception will be propagated (#1201)
  • Properly cache serial names in order to improve performance of JSON parser with strict mode (#1209)
  • Fix dynamic serialization for nullable values (#1199) (thanks to ankushg)
Changelog

Sourced from kotlinx-serialization-json's changelog.

1.1.0 / 2021-02-17

This release contains all features and bugfixes from 1.1.0-RC plus an additional fix for incorrect exception type (#1325 — Throw SerializationException instead of IllegalStateException in EnumSerializer) and uses release version of Kotlin 1.4.30.

In the light of JCenter shutdown, starting from 1.1.0-RC and now on, all new releases of kotlinx.serialization are published directly to Maven Central and therefore are not available in https://kotlin.bintray.com/kotlinx/ repository. We suggest you to remove jcenter() and other kotlin bintray repositories from your buildscripts and to use mavenCentral() repository instead.

1.1.0-RC / 2021-02-03

This is a release candidate of 1.1.0 version. Note that final 1.1.0 version may include more features and bugfixes, which would be listed in the corresponding changelog.

Kotlin version requirement updated

Due to changes in calling conventions between compiler plugin and serialization core runtime, this release requires Kotlin version at least 1.4.30-M1. However, this changes should not affect your code, because only deprecated functions were removed from public API. See corresponding PR for the details.

Experimental support for inline classes (IR only)

Using 1.1.0-RC, you can mark inline classes as @Serializable and use them in other serializable classes. Unsigned integer types (UByte, UShort, UInt and ULong) are serializable as well and have special support in JSON. This feature requires Kotlin compiler 1.4.30-RC and enabling new IR compilers for JS and JVM.

You can learn more in the documentation and corresponding pull request.

Other features

  • Add serializerOrNull function for KType and Type arguments (#1164)
  • Allow shared prefix names in Properties (#1183) (thanks to TorRanfelt)
  • Add support for encoding/decoding Properties values as Strings (#1158) (thanks to daniel-jasinski)

Bugfixes and performance improvements

  • Support contextual serialization for derived classes (#1277) (thanks to Martin Raison)
  • Ensure serialization is usable from K/N background thread (#1282)
  • Fail on primitive type overflow during JsonElement deserialization (#1300)
  • Throw SerializationException instead of ISE when encountering an invalid boolean in JSON (#1299)
  • Optimize the loop for writing large varints in ProtoBuf (#1294)
  • Fix serializing property with custom accessors and backing field (#1197)
  • Optimize check for missing fields in deserialization and improve MissingFieldException message (#1153)
  • Improved support of nullable serializer in @UseSerializers annotation (#1195)
  • Correctly escape keys in JsonObject.toString() (#1246) (thanks to Karlatemp)
  • Treat Collection as ArrayList in serializer by type lookups (#1257)

... (truncated)

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested a review from PatilShreyas as a code owner March 15, 2021 07:21
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Mar 15, 2021
@PatilShreyas PatilShreyas merged commit 8b8defd into master Mar 16, 2021
@dependabot dependabot bot deleted the dependabot/gradle/noty-api/org.jetbrains.kotlinx-kotlinx-serialization-json-1.1.0 branch March 16, 2021 04:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant