Releases: ansman/kotshi
2.6.2
2.6.1
2.6.0
2.5.0
2.4.0
2.3.3
2.3.2
2.3.1
2.3.0
🚨 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
- 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