Skip to content

Releases: google/go-cmp

v0.6.0

10 Oct 16:38
c3ad843
Compare
Choose a tag to compare

New API:

  • (#340) Add cmpopts.EquateComparable

Documentation changes:

  • (#337) Use of hotlinking of Go identifiers

Build changes:

  • (#325) Remove purego fallbacks

Testing changes:

  • (#322) Run tests for Go 1.20 version
  • (#332) Pin GitHub action versions
  • (#327) set workflow permission to read-only

v0.5.9

08 Sep 08:04
a97318b
Compare
Choose a tag to compare

Reporter changes:

  • (#299) Adjust heuristic for line-based versus byte-based diffing
  • (#306) Use value.TypeString in PathStep.String

Code cleanup changes:

  • (#297) Use reflect.Value.IsZero
  • (#304) Format with Go 1.19 formatter
  • (#300 )Fix typo in Result documentation
  • (#302) Pre-declare global type variables
  • (#309) Run tests on Go 1.19

v0.5.8

26 Apr 20:56
f144a35
Compare
Choose a tag to compare

Reporter changes:

  • (#293) Fix printing of types in reporter output for interface and pointer types
  • (#294) Use string formatting for slice of bytes in more circumstances

Dependency changes:

  • (#292) Update minimum supported version to go1.13 and remove xerrors dependency

v0.5.7

19 Jan 19:32
039e37c
Compare
Choose a tag to compare

Reporter changes:

  • (#266) Fix textual printing of byte slices
  • (#275) Reduce minimum length for specialize string diffing
  • (#276) Use any alias instead of interface{}

Code cleanup changes:

  • (#281) Update minimum supported version to go1.11
  • (#282) Drop hacks to work around Go reflection bugs in Go1.9
  • (#285) Add //go:build lines
  • (#262) Fix staticcheck findings
  • (#263) Avoid shadowing variable
  • (#268) Use sha256 in test
  • (#271) Fix spelling mistakes
  • (#269) Change build status badge

v0.5.6

25 May 02:54
d103655
Compare
Choose a tag to compare

Reporter changes:

  • (#258) Print as text if mostly text
  • (#259) Cleanup edit groups after coalescing
  • (#260) Avoid diffing by lines if inefficient

Minor documentation changes:

  • (#256) Fix typo in path.go

v0.5.5

04 Mar 16:36
8fa37b4
Compare
Choose a tag to compare

Bug fixes:

  • (#253) Fix reporter verbosity bug

Reporter changes:

  • (#254) De-virtualize interfaces for specialized diffing

Dependency changes:

  • (#251) Use errors.Is with ≥go1.13 in compareErrors

v0.5.4

24 Nov 18:49
ec71d6d
Compare
Choose a tag to compare

Bug fixes:

(#247) Fix non-determinism in diffing algorithm
(#248) Impose verbosity limit when formatting map keys

v0.5.3

12 Nov 20:29
0a3ecd3
Compare
Choose a tag to compare

Minor documentation changes:

(#236) Fix license headers
(#205) Add an example for IgnoreFields
(#237) Fix Diff documentation

v0.5.2

25 Aug 06:48
d2fcc89
Compare
Choose a tag to compare

Minor documentation changes:

(#234) Suggest use of cmpopts.EquateErrors
(#231) Fix Diff documentation

v0.5.1

21 Jul 20:12
9680bfa
Compare
Choose a tag to compare

Minor reporter changes:

  • (#221) Swallow panics when calling String or Error methds.
  • (#229) Use triple-quote formatting for multiline strings in diffs.

Minor documentation changes:

  • (#228) Adjust panic for IgnoreUnexported and IgnoreFields to be more specific.