[5.6.7] - 2022-01-28
Fixed:
- When using
allFlagsState
to produce bootstrap data for the JavaScript SDK, the Java SDK was not returning the correct metadata for evaluations that involved an experiment. As a result, the analytics events produced by the JavaScript SDK did not correctly reflect experimentation results. - In feature flag rules using the
before
andafter
date operators, if two ISO-8601 string values were compared that represented the exact same absolute date in different time zones (such as2000-01-01T08:00:00Z
and2000-01-01T00:00:00-08:00
), the SDK wrongly treated them as unequal. This did not affect strings that represented different absolute dates, which were always compared correctly. The SDK now handles both cases correctly. - The
com.launchdarkly.sdk.json
serialization methods were sometimes omitting JSON object properties in cases where it would have been more correct to show the property with anull
value. This mainly affected JSON data produced byLDClient.allFlagsState()
, where the presence of a flag key with anull
value would indicate that the flag existed but could not be evaluated due to an error, as opposed to the flag not existing.