Skip to content

Commit aaab12c

Browse files
Releasing version 2.1.0
1 parent a6231ac commit aaab12c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@
22

33
All notable changes to the project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org).
44

5+
## [2.1.0] - 2020-12-14
6+
### Added:
7+
- `IsDefined()` method for `ldvalue.Value`, `ldreason.EvaluationReason`, and `ldtime.UnixMillisecondTime`.
8+
- `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.
9+
10+
### Changed:
11+
- 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.
12+
513
## [2.0.1] - 2020-10-08
614
### Fixed:
715
- Trying to unmarshal a JSON `null` value into `lduser.User` now returns an error of type `*json.UnmarshalTypeError`, rather than misleadingly returning `lduser.ErrMissingKey()`.

0 commit comments

Comments
 (0)