Skip to content
This repository was archived by the owner on May 30, 2024. It is now read-only.

Releases: launchdarkly/java-sdk-common

1.1.0

22 Apr 19:29

Choose a tag to compare

[1.1.0] - 2021-04-22

This release makes improvements to the helper methods for using Gson and Jackson for JSON conversion.

Added:

  • LDGson.valueToJsonElement and LDGson.valueMapToJsonElementMap: convenience methods for applications that use Gson types.
  • LDValue.arrayOf()

Changed:

  • In com.launchdarkly.sdk.json, the implementations of LDGson.typeAdapters and LDJackson.module have been changed for better efficiency in deserialization. Instead of creating an intermediate string representation and re-parsing that, they now have a more direct way for the internal deserialization logic to interact with the streaming parser in the application's Gson or Jackson instance.

Fixed:

  • Gson.toJsonTree now works with LaunchDarkly types, as long as you have configured it as described in com.launchdarkly.sdk.json.LDGson. Previously, Gson was able to convert these types to and from JSON string data, but toJsonTree did not work due to a known issue with the JsonWriter.jsonValue method; the SDK code no longer uses that method.
  • LDValue.parse() now returns LDValue.ofNull() instead of an actual null reference if the JSON string is null.
  • Similarly, when deserializing an EvaluationDetail<LDValue> from JSON, if the value property is null, it will now translate this into LDValue.ofNull() rather than an actual null reference.

1.0.0

02 Jun 03:59

Choose a tag to compare

[1.0.0] - 2020-06-01

Initial release, corresponding to version 5.0.0 of the server-side Java SDK.

1.0.0-rc1

29 Apr 18:51
cc5ed78

Choose a tag to compare

[1.0.0-rc1] - 2020-04-29

Initial beta release, for the 5.0.0-rc1 release of the Java SDK.