Releases: ansman/kotshi
Releases · ansman/kotshi
2.10.2
2.10.1
2.10.0
What's Changed
The major changes are support for Kotlin 1.8 and better support for constructors with default values. Previously copy
was used to create objects with default values. As of this release reflection is used to look up the constructor and call it which has full support for referencing other parameters as the default value which previously wasn't supported.
Full changelog
- Call the default values constructor using reflection by @ansman in #182
- Generate proguard files when needed by @ansman in #183
- Fix a crash when calling annotationType() on created annotations by @ansman in #185
- Pass the field name when requesting an adapter by @ansman in #184
- Add tests for common error cases by @ansman in #186
- Improve the formatting of the toJson implementations for data classes by @ansman in #187
- Fix a bug that generated invalid errors when parsing sealed classes by @ansman in #188
- Fix a typo by @ansman in #189
- Fix a warning when rendering factories without registered adapters by @ansman in #191
- Don't add the @generated annotation by default by @ansman in #190
- Cleanup the project and check in the .idea directory by @ansman in #194
- Update all dependencies including support for Kotlin 1.8 by @ansman in #196
- Add a test for KSP incremental compilation by @ansman in #198
Full Changelog: 2.9.1...2.10.0
2.9.1
2.10.0-alpha01
What's Changed
- Call the default values constructor using reflection by @ansman in #182
- Generate proguard files when needed by @ansman in #183
- Fix a crash when calling annotationType() on created annotations by @ansman in #185
- Pass the field name when requesting an adapter by @ansman in #184
Full Changelog: 2.9.0...2.10.0-alpha01
2.9.0
What's Changed
- Fix the implementation of equals and hashCode for annotations by @ansman in #181
- Introduce a new annotation for manually registering JSON adapters by @ansman in #180
- The new annotation,
@RegisterJsonAdapter
, allows custom adapters to be registered automatically in the generated Kotshi factory.
- The new annotation,
Full Changelog: 2.8.0...2.9.0
2.8.0
What's Changed
- Update to Kotlin 1.7 by @ansman in #178
- Introduce an alternate way of customizing the serialized name by @ansman in #177
- The preferred way to customize the serialized name of a property is using the new
@JsonProperty
annotation.
- The preferred way to customize the serialized name of a property is using the new
- Support the Json.ignore property by @ansman in #179
Full Changelog: 2.7.1...2.8.0