Skip to content

Releases: seborama/govcr

v6.1.0

02 Aug 20:32
a964e76
Compare
Choose a tag to compare

Added operation modes:

  • WithLiveOnlyMode / SetLiveOnlyMode
  • WithReadOnlyMode / SetReadOnlyMode
  • WithOfflineMode / SetOfflineMode

Added mutator:

  • track.ResponseDeleteTLS

v6.0.0

01 Aug 22:36
d3a488e
Compare
Choose a tag to compare

Breaking change:

  • Renamed NewDefaultRequestMatcher to NewStrictRequestMatcher

Non-breaking changes:

  • Improve handling of HTTP trailers
  • Minor touches to the doc
  • Add:
    • SetRequestMatcher()
    • NewBlankRequestMatcher()

v5.0.2

31 Jul 22:40
404404a
Compare
Choose a tag to compare

Updates to README

v5.0.1

31 Jul 22:14
3ddd2a8
Compare
Choose a tag to compare

Tweaks to documentation

v5.0.0

31 Jul 21:01
c4a765c
Compare
Choose a tag to compare

This is the first release of govcr v5.

See the alpha and beta versions for further description.

v5 is a partial re-write of govcr to offer better support for cassette mutations. This is necessary because when I first designed govcr, I wanted cassettes to be immutable as much as golang can achieve this. Since then, I have received requests to permit cassette mutations at recording time.

v5 brings breaking changes for those who are using govcr v4 or older. In exchange for the inconvenience, it will bring new features and a refreshed code base for future enhancements.

If you're happy with govcr as it is, use a dependency manager to lock the version of govcr you wish to use (perhaps v4)! Note that only v5 and above use go.mod. To download a previous version you can use this trick:

# download legacy version of govcr (without go.mod)
go get gopkg.in/seborama/govcr.v4

v5.0.0-beta.1

30 Jul 09:42
Compare
Choose a tag to compare
v5.0.0-beta.1 Pre-release
Pre-release

The code was written about 3 years ago but I didn't have a use-caae to continue.

I have recently come across a situation that revived the need for this work.

This release breaks compatibility and brings:

  • Track mutators - they may be used at recording time or at playback.
  • Request matchers - default behaviour matches on URL, Method, Body, Headers, etc. This can be changed.

The documentation is lagging behind and incorrect right now. Please refer to the tests for examples.

(alpha) Updated README and added more mutation testing

28 Jul 22:15
Compare
Choose a tag to compare

This pre-release introduces govcr v5 alpha.

Also, some changes to package organisation.

The README is not up-to-date with the code:

  • incorrect NewVCR usage
  • filter functions are not yet implemented in this release
  • this release does have support for track recording mutators

(alpha) First alpha release of v5

26 Jul 22:11
Compare
Choose a tag to compare
Pre-release

This pre-release introduces govcr v5 alpha.
This is for testing only as it does not support request / response filters on playback yet. Use v4 for a stable release.

Basic functionality should be working fine:

  • recording cassettes
  • mutation of tracks on recording
  • replaying tracks
  • compression logic is implemented but I think I haven't fully surfaced it yet

Enable variadic arguments for some filter funcs

26 Jul 22:43
Compare
Choose a tag to compare

Enable variadic arguments for some filter funcs
Also:

  • added a word of warning about upcoming v5 to README

Thanks @klauspost

Added concurrency safety

03 Mar 13:24
Compare
Choose a tag to compare