All Versions
10
Latest Version
Avg Release Cycle
83 days
Latest Release
278 days ago

Changelog History

  • v6.3.0 Changes

    October 26, 2020
    • 🍱 πŸ†• 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 Changes

    March 20, 2020
    • 🍱 πŸ› 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 Changes

    July 19, 2019

    Detailed changes: v6.2.1...v6.2.2

  • v6.2.1 Changes

    July 08, 2019
    • πŸ— πŸ„ 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 of go: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 Changes

    June 03, 2019
    • πŸ“¦ ⚑️moar speed; speed up single invocations of counterfeiter (#125, via @joefitzgerald, fixes #120); on a reference package with 19 //go:generate directives:
      • πŸ“ˆ counterfeiter v6.2.0 runs (0.97 seconds) about 83 times faster than v6.0.2 v6.0.2 (80.45 seconds)
      • πŸ“‰ counterfeiter v6.2.0 runs (0.97 seconds) take 1.25 times as long as v5 runs (0.78 seconds)

    Detailed changes: v6.1.2...v6.2.0

  • v6.1.2

    June 03, 2019
  • v6.1.0 Changes

    June 03, 2019
    • πŸ“¦ ⚑️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:
      • πŸ“ˆ counterfeiter v6.1.0 (with caching) (3.92 seconds) runs about 20.5 times faster than v6.0.2 (without caching) (80.45 seconds)
      • πŸ“‰ counterfeiter v6.1.0 (3.92 seconds) runs about 5 times slower than v5 (0.78 seconds)
      • see the PR for more details
    • 🍱 πŸ†• 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 Changes

    June 03, 2019
    • πŸ”’ πŸ”’ 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 Changes

    October 15, 2018
    • πŸ“¦ πŸ› 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 Changes

    October 12, 2018

    πŸš€ 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