Skip to content
This repository has been archived by the owner on Aug 26, 2021. It is now read-only.

Releases: vimeo/stag-java

Version 2.6.0

25 Oct 21:04
ea61874
Compare
Choose a tag to compare
  • Improved formatting of generated code.
  • Improved logging by putting all debug logging behind the stagDebug flag.
  • Improve integration of library by switching to new nullability annotations library.
  • Wrote unit tests for KnownTypeAdapters.
  • Fixed bug where code generation was non deterministic by switching to linked versions of -HashSet and -HashMap.
  • Added support for turning on/off serialization of null with stag.serializeNulls compiler option. Default is off, which is a behavior change from version 2.5.1.
  • Thanks to @anirudhramanan for their work on the release.

Version 2.5.1

17 Jan 22:20
42c168b
Compare
Choose a tag to compare
  • Fixed bug where types with wildcards caused compilation to fail.
  • Fixed bug where fields with default types would not be correctly serialized if assigned to null.
  • Improved thread safety of factory usage.
  • Thanks to @anirudhramanan, @mcumings, and @yasirmhd for their work on this release.

Version 2.5.0

18 Dec 20:32
735dd21
Compare
Choose a tag to compare
  • Improved performance of loading the Stag.Factory.
  • Improved error logging when getters/setters can't be found.
  • Splitting up examples into integration test modules.
  • Wrote functional tests for most use cases.
  • Fixed bug where wrapper type adapters would not be called when Stag.Factory was registered.
  • Thanks to @anirudhramanan and @yasirmhd for their work on this release.

Version 2.4.0

24 Oct 19:11
Compare
Choose a tag to compare
  • Fixed bug where generated type adapters would write out an empty JSON object for a null value.
  • Type adapters now write null to JSON instead of {} for null field values.
  • Rewrote compiler tests in Kotlin and improved their readability.

Version 2.3.3

15 Sep 15:54
Compare
Choose a tag to compare
  • isXYZ() and setXYZ() are now accepted as getter and setter names for boolean fields named isXYZ or mIsXYZ.

Version 2.3.2

14 Jul 15:00
Compare
Choose a tag to compare
  • Fixed a bug where stag was unable to find setters/getters for parameterized private fields.
  • Found solution for model list file being included in build (refer to README).

Version 2.3.1

28 Jun 12:57
Compare
Choose a tag to compare
  • Stag is now being deployed to Maven Central.

Version 2.3.0

23 Jun 02:17
Compare
Choose a tag to compare

Stag now throws an exception if you try to reuse a Stag.Factory instance between multiple gson instances.

Version 2.2.0

30 May 23:34
Compare
Choose a tag to compare
  • Added support for private member variables in Java (leveraging getters/setters).
  • Added support for models written in Kotlin!

Version 2.1.4

10 May 15:30
Compare
Choose a tag to compare
  • Added compiler support for all Java language versions.