Skip to content

Releases: maxbrunsfeld/counterfeiter

v6.0.2

03 Jun 06:26
3d5cada
Compare
Choose a tag to compare
  • 🔒 lock when resetting stubs via Returns / ReturnsOnCall (#96, partially fixes #44 and #84)
  • 🆕 add Calls function to set Stub without a race (#97, fixes #44)
  • 🐛 restore prior behavior for type assertion on unexported interfaces (#101, via @sykesm)
  • 📖 fix examples url (#105, via @beono)
  • 🔦 code cleanup (#107, via @dnephin)
  • 🔦 remove duplicate value fields (#108, via @dnephin)
  • 🔦 refactor imports (#109, via @dnephin)
  • 🔦 shrink main package (#110, via @dnephin)
  • 🔦 only add import aliases to packages when necessary (#111, via @dnephin)
  • 🐛 use v6 import path for go module v2+ compatibilty (fixes #114, via @joefitzgerald)
  • 📖 document how to use counterfeiter v6 with go modules (via @joefitzgerald)

Detailed changes: v6.0.1...v6.0.2

v6.0.1

15 Oct 22:41
2d74a21
Compare
Choose a tag to compare
  • 🐛 allow fakes to be generated for interfaces that are contained in a package named sync (fixes #95)
  • 🔬 prove that fakes can now be generated for interfaces that embed an interface in an aliased package (#18)
  • 🔬 prove that fakes can now be generated for interfaces that embed an interface in a package with a package name that is different from the final segment of the import path (#87, #88)

Detailed changes: v6.0.0...v6.0.1

v6.0.0

12 Oct 03:43
d68f4b0
Compare
Choose a tag to compare

This release is a rewrite of counterfeiter that supports go modules (#94).

  • counterfeiter is now a go module
  • counterfeiter will now be released using the semver versioning scheme
  • any regression in behavior from v5 will be considered a bug in v6, unless this regression is related to go 1.9 or earlier
  • going forward, we will support N-1 (e.g. today, go 1.11.1 is the latest version of go, so go 1.10 and go 1.11 are supported); this matches the go team's support policy and thus our use of golang.org/x/tools/go/packages

golang/go#24661