Releases: seborama/govcr
v6.1.0
v6.0.0
v5.0.2
v5.0.1
v5.0.0
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
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
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
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
Enable variadic arguments for some filter funcs
Also:
- added a word of warning about upcoming v5 to README
Thanks @klauspost
Added concurrency safety
See issue 1