Skip to content

Releases: ansel1/vespucci

Release 2.1.0

12 Feb 21:31
Compare
Choose a tag to compare

Altered the behavior of Contains, Merge, Get, and Conflicts to more aggressively resort to deep normalization and JSON marshaling. Leads to less surprising behavior.

Changed behavior of Empty to return true if the value is empty, nil, or the zero value.

Release 2.0.0

23 Oct 19:55
Compare
Choose a tag to compare

Removed GetWithOptions, and made Get using marshaling by default, which is least surprising.

Release 1.0.2

03 Mar 19:30
Compare
Choose a tag to compare
  • Fixed a bug in Contains with maps. Would return false positives
  • Added Trace option to Contains, which returns information about where the containment wasn't met.

Release 1.0.1

28 Feb 01:16
Compare
Choose a tag to compare

When normalizing values using marshaling, if a value is encountered which is a slice or map, vespucci would always convert the value by copying it into a []interface{} or map[string]interface{}.

Now, it first checks whether the type implements json.Marshaler, and prefers marshaling in that case. This is mainly to support json.RawMessage values.

Release 1.0.0

27 Feb 14:55
Compare
Choose a tag to compare
  • Using semantic versioning.
  • Added options to Contains()
  • StringContains() causes Contains() to use strings.Contains() on string values
  • EmptyMapValuesMatchAny() causes Contains() to allow values in maps to match if the value is nil or the zero value of the matching type.