Skip to content

2.0.1

Choose a tag to compare

@LaunchDarklyCI LaunchDarklyCI released this 08 Oct 23:31
· 19 commits to v2 since this release

[2.0.1] - 2020-10-08

Fixed:

  • Trying to unmarshal a JSON null value into lduser.User now returns an error of type *json.UnmarshalTypeError, rather than misleadingly returning lduser.ErrMissingKey().
  • Trying to unmarshal a JSON value of the wrong type into ldvalue.OptionalBool, ldvalue.OptionalInt, or ldvalue.OptionalString now returns an error of type *json.UnmarshalTypeError, rather than a generic error string from errors.New().
  • The error lduser.ErrMissingKey() had an empty error string.