This repository was archived by the owner on May 30, 2024. It is now read-only.
Releases: launchdarkly/java-sdk-common
Releases · launchdarkly/java-sdk-common
1.1.0
[1.1.0] - 2021-04-22
This release makes improvements to the helper methods for using Gson and Jackson for JSON conversion.
Added:
LDGson.valueToJsonElementandLDGson.valueMapToJsonElementMap: convenience methods for applications that use Gson types.LDValue.arrayOf()
Changed:
- In
com.launchdarkly.sdk.json, the implementations ofLDGson.typeAdaptersandLDJackson.modulehave 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.toJsonTreenow works with LaunchDarkly types, as long as you have configured it as described incom.launchdarkly.sdk.json.LDGson. Previously, Gson was able to convert these types to and from JSON string data, buttoJsonTreedid not work due to a known issue with theJsonWriter.jsonValuemethod; the SDK code no longer uses that method.LDValue.parse()now returnsLDValue.ofNull()instead of an actual null reference if the JSON string isnull.- Similarly, when deserializing an
EvaluationDetail<LDValue>from JSON, if thevalueproperty isnull, it will now translate this intoLDValue.ofNull()rather than an actual null reference.
1.0.0
[1.0.0] - 2020-06-01
Initial release, corresponding to version 5.0.0 of the server-side Java SDK.
1.0.0-rc1
[1.0.0-rc1] - 2020-04-29
Initial beta release, for the 5.0.0-rc1 release of the Java SDK.