IsDefined() method for ldvalue.Value, ldreason.EvaluationReason, and ldtime.UnixMillisecondTime.
ValueArray and ValueMap types in ldvalue, for representing immutable JSON array/object data in contexts where only an array or an object is allowed, as opposed to the more general ldvalue.Value. This is mainly used by LaunchDarkly internal components but may be useful elsewhere.
Changed:
In lduser.NewUserBuilderFromUser(), if the original user had custom attributes and/or private attributes, the map that holds that data now has copy-on-write behavior: that is, the builder will only allocate a new map if you actually make changes to those attributes.
[2.1.0] - 2020-10-20
Added:
IsDefined()
method forldvalue.Value
,ldreason.EvaluationReason
, andldtime.UnixMillisecondTime
.ValueArray
andValueMap
types inldvalue
, for representing immutable JSON array/object data in contexts where only an array or an object is allowed, as opposed to the more generalldvalue.Value
. This is mainly used by LaunchDarkly internal components but may be useful elsewhere.Changed:
lduser.NewUserBuilderFromUser()
, if the original user had custom attributes and/or private attributes, the map that holds that data now has copy-on-write behavior: that is, the builder will only allocate a new map if you actually make changes to those attributes.