Skip to content

Releases: ansman/kotshi

2.10.2

18 Jan 23:24
Compare
Choose a tag to compare

What's changed

Version 2.10.2 contains a small bug fix for data classes that contain type aliases.

Detailed changes

Full Changelog: 2.10.1...2.10.2

2.10.1

18 Jan 00:21
Compare
Choose a tag to compare

What's Changed

  • Fix an edge case when a property has the same name as a type by @ansman in #200

Full Changelog: 2.10.0...2.10.1

2.10.0

17 Jan 15:26
Compare
Choose a tag to compare

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

20 Sep 18:13
Compare
Choose a tag to compare

What's Changed

  • Fix a bug that caused the generated factory to contain warnings by @ansman in #193

Full Changelog: 2.9.0...2.9.1

2.10.0-alpha01

07 Sep 01:15
Compare
Choose a tag to compare
2.10.0-alpha01 Pre-release
Pre-release

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

06 Sep 14:58
Compare
Choose a tag to compare

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.

Full Changelog: 2.8.0...2.9.0

2.8.0

29 Aug 17:48
Compare
Choose a tag to compare

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.
  • Support the Json.ignore property by @ansman in #179

Full Changelog: 2.7.1...2.8.0

2.7.1

08 Feb 00:20
Compare
Choose a tag to compare

What's Changed

  • Correctly consume parent label keys in child adapters (#176)

Full Changelog: 2.7.0...2.7.1

2.7.0

19 Nov 14:16
Compare
Choose a tag to compare

Features

  • Support for Kotlin 1.6 (#174)
  • Instantiate json qualifiers directly instead of reflectively (#166)

Misc

  • Rewrite the processors to share the implementation (#167)
  • Include annotation default values in the hash code (#168)
  • Promote the KSP implementation to Stable

2.6.3

08 Sep 15:09
Compare
Choose a tag to compare
  • Update auto-server to 1.0 (#163)
  • Update Kotlinpoet to 1.9 (#165)
  • Include annotation default values in the hash code (#168)
  • Fix a bug where empty object arrays in qualifiers caused errors (#169)
  • Fix an issue with annotations with default values (#170)