Releases: ansman/kotshi
Releases · ansman/kotshi
0.3.0-beta2
General changes (since beta1):
- Strings are now treated as a primitive and an adapter is not used unless
specifically requested. (#32) - Fixed a bug that caused adapters to not be requested for primitives when
qualifiers were used. (#32) - Fix a bug where the generated code would not compile due to name conflicts. (#21)
- Fix a bug that would generate uncompilable code when using a generic type with
default values. (#12) - The generated code is now prettier and faster.
Code changes (since beta1):
- Read object opening before initializing locals. (#15)
- When writing null, perform an an early return. (#16)
- Eliminate superfluous null check on allowed-nullable values. (#17)
- Remove explicit null check for boxed primitives in writer. (#18)
- Wrap the JSON name strings onto one per-line. (#19)
- Add IDE imls and Gradle's reports dir to ignores. (#29)
- Generated factory should be package-private. (#24)
- Do not pass Moshi instance to adapter when not needed. (#28)
- Do a direct continue inside switch cases. (#27)
- Remove redundant apply. (#34)
- Add a test for qualified primitive always calling an adapter. (#35)
- Fix missing @JsonDefaultValue on custom annotation (#31)
- Fix inconsistent indentation (#33)
- Fix a bug that caused uncompilable code to be generated (#12)
- Use NameAllocator for adapter fields, locals (#21)
- Treat strings as primitive values and skip adapters per default (#32)
0.3.0-beta1
0.2.0
- Kotlin 1.1.60 is now used.
- The generated adapters have been optimized so that if multiple fields use the same type the same adapter is used. (#7).
- Adapters are no longer used for primitive types (int, float etc) since it can be bad for performance. This behavior can be disabled using a new flag. (#9).