Skip to content

Release 4.1.5

Compare
Choose a tag to compare
@ansel1 ansel1 released this 29 Mar 16:31
· 17 commits to master since this release
  • Performance improvements in Contains and Equivalent
  • ContainsMatch and EquivalentMatch now return a single Error, rather than separate errors for each value. The first time an error occurs, the match immediately returns, indicating a false match, and storing the error in the Match object.
  • Match V1, and V2 values now only return the value at the point where the match failed or where the error occurred, rather than the entire normalized version of the original v1 and v2 arguments. This is because Contains no longer does a full, deep normalization of the value.
  • Normalize options now have functional counterparts, which can be passed to Normalize(), Transform(), Merge(), and Get().
  • Two new Normalize options, PreserveTimes and ParseTimes allow special handling of time values. PreserveTimes preserves time.Time values instead of converting them to strings. It will also normalize *time.Time to time.Time. ParseTimes will try to parse strings as time objects and convert them to time.Time values if possible.