Skip to content

Releases: ansman/kotshi

2.6.2

18 Aug 19:22
Compare
Choose a tag to compare
  • Add @InternalKotshiApi to mark private APIs as internal (#160)
  • Fix the implementation of equals for qualifiers with arguments (#161)

2.6.1

13 Aug 01:31
Compare
Choose a tag to compare
  • Fix a bug that caused empty qualifier arg arrays to not compile (#159)

2.6.0

01 Jun 12:34
Compare
Choose a tag to compare

Experimental support for KSP (#157)

2.5.0

26 May 16:25
Compare
Choose a tag to compare
  • Update to Kotlin 1.5 (#156)

2.4.0

29 Jan 01:25
Compare
Choose a tag to compare
  • Switch to using javadoc rather than HTML for the javadoc jar
  • Use Auto Common to add the @generated annotation (#151)
  • Implement support for generic sealed classes (#152)

2.3.3

04 Jan 16:13
Compare
Choose a tag to compare
  • Correctly mark the Polymorphic annotation as source retained
  • Update to Kotlin 1.4.21

2.3.2

20 Nov 14:00
Compare
Choose a tag to compare

Set an explicit java compatibilty (#149)

Due to the bump of Gradle and Java 11 was used to deploy the version, Java 11 was required to consume 2.3.1 when using Gradle.
This release has no code changes from 2.3.1.

2.3.1

19 Nov 22:53
Compare
Choose a tag to compare
  • Add support for generic typealiases (#148)

2.3.0

07 Oct 14:48
Compare
Choose a tag to compare

🚨 Breaking 🚨

This version contains a breaking behavior change. Polymorphic hierarchies (sealed classes) now emit the polymorphic label automatically. This was an oversight and could be considered a bug.

It will affect you if you are writing classes annotated with @Polymorphic/@PolymorphicLabel.
If you have only read such classes you are unaffected by this change

Thank you @madisp for contributing this fix (#147).

Improvements

The JsonReader.Options is not placed inside the adapter itself rather than in a companion object. This will lead to fewer objects being generated a less memory used if adapters aren't long lived. The trade off is that it's duplicated for each adapter but since the number of duplicate adapters is likely low it's not expected to have any real impact.

The size of the generated code has also been reduced.

2.2.3

24 Jan 22:27
Compare
Choose a tag to compare
  • Reduce the number of adapters that are fetched (#137)
  • Slightly improve reading kotlin objects (#138)
  • Allow specifying sealed class behavior for missing and invalid labels (#139)
  • Handle qualifiers with char arguments with the value ' (#140)
  • Update the error message for unknown class types
  • Fail processing if no sealed class implementations are found