Releases: maxbrunsfeld/counterfeiter
Releases · maxbrunsfeld/counterfeiter
v6.4.0
- 🐛 remove logic to speed up multiple invocations of
go generate
in a single package; if you need the prior behavior, please adoptcounterfeiter:generate
directives (#170 via @rittneje, fixes #166) - 🆕 add
-q
flag to suppress status output (#167 via @martinxsliu) - ⬆️ dependencies
- 🔁 update CI to use
go
1.16
Detailed changes: v6.3.0...v6.4.0
v6.3.0
- 🆕 allow adding headers to generated fakes (#153 via @hoegaarden)
- 🐛 ensure type info is loaded for compatibility with go 1.13+ (fixes #147)
- 🐛 avoid data race (fixes #145 via #149 / @mariash and #159 / @NilsJPWerner)
- 🧹remove tests for
GOPATH
, and ask people to use counterfeiter with go modules (fixes #161) - ⬆️ dependencies
- 🔁 update CI to use
go
1.15
Detailed changes: v6.2.3...v6.3.0
v6.2.3
- 🐛 ensure the tool works when using
go
1.14
(#157, fixes #156, via @howardjohn) - 🧹remove unused variable with usage information (#138, via @nkovacs)
- ⬆️ dependencies
- 🔁 update CI to use
go
1.14
Detailed changes: v6.2.2...v6.2.3
v6.2.2
v6.2.1
- 🍄 commit all generated fakes so that the package is buildable without using
go:generate
, and for checks and balances: fail ci if fakes are modified in any way as a result ofgo:generate
(#127, via @zikaeroh) - 🐛 correctly support interfaces with functions that have inline struct paramters (#129, via @chrusty)
Detailed changes: v6.2.0...v6.2.1
v6.2.0
- ⚡️moar speed; speed up single invocations of counterfeiter (#125, via @joefitzgerald, fixes #120); on a reference package with 19
//go:generate
directives:
Detailed changes: v6.1.2...v6.2.0
v6.1.0
- ⚡️moar speed; speed up multiple invocations of counterfeiter in the same package by introducing caching (#123, via @joefitzgerald, partially addresses #120); on a reference package with 19
//go:generate
directives: - 🆕 add
-generate
flag and new //counterfeiter:generate directive (#124, via @joefitzgerald) - 🐛 allow counterfeiting unexported interface methods (#112, via @davidnewhall)
- 📖 describe how to specify third party interfaces (#116, via @glyn)
- 📖 fix typo (#118, via @dionysius)
Detailed changes: v6.0.2...v6.1.0
v6.0.2
- 🔒 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 withgo modules
(via @joefitzgerald)
Detailed changes: v6.0.1...v6.0.2
v6.0.1
- 🐛 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
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 inv6
, 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 ofgo
, sogo
1.10
andgo
1.11
are supported); this matches thego
team's support policy and thus our use ofgolang.org/x/tools/go/packages