Releases: dnaeon/go-vcr
Releases · dnaeon/go-vcr
v4.0.2
What's Changed
- Add option to matcher to ignore authorization header by @zhammer in #103
- Add option to matcher to ignore headers by @ivangonzalezacuna in #104
- Set the request.Body to http.NoBody if request.Body is nil by @ilijamt in #105
New Contributors
- @zhammer made their first contribution in #103
- @ivangonzalezacuna made their first contribution in #104
- @ilijamt made their first contribution in #105
Full Changelog: v4.0.0...v4.0.2
v4.0.0
See v4.0.0 changelog.
v3.2.0
v3.1.2
v3.1.1
v3.1.0
NOTE: This version contains breaking API change.
Summary of changes since previous release.
- The
recorder.FilterFunc
has been removed. It is now replaced byrecorder.HookFunc
type. - The
Recorder.AddFilter()
andRecorder.AddPreSaveFilter()
methods have been removed. They are now replaced by theRecorder.AddHook()
method. - Added different kinds of hooks supported by the recorder -
AfterCaptureHook
,BeforeSaveHook
andBeforeResponseReplayHook
.
v3.0.1
v3.0.0
go-vcr v3
is ready.
NOTE: This release is not backwards-compatible with previous versions of the cassettes used by go-vcr
. If you are upgrading to v3
you should re-create your test cassettes.
A summary of changes for this release:
- API has been refactored and cleaned up
- Custom recorder options are now specified as
recorder.Options
- The recorder modes which are now supported are
ModeRecordOnly
,ModeRecordOnce
,ModeReplayOnly
,ModeReplayWithNewEpisodes
andModePassthrough
. Please refer to the API documentation for more details on their use cases - In order to create recorders with custom options you should use the
recorder.NewWithOptions
function from now on - The default mode of the recorder is now
ModeRecordOnce
ModeDisabled
has been removed and is now replaced byModePassthrough
- Cassette format has been changed and the supported version of the cassette from now on is
v2
. - Additional fields have been added to the cassette to allow developers to create more complex matchers based on the existing fields
- Each interaction in the cassette now has a unique integer id, specifying the position of the interaction in the cassette
- Utility method on the recorder can now return a pre-configured HTTP client with the recorder's transport -
GetDefaultClient()
- CI/CD pipeline has been transferred to Github actions
- Closed out some long standing issues
- Extended and refactored test cases
- etc
v2.3.0
- Cleaned up
v2
package structure - Switched from
gopkg.in/yaml.v2
togopkg.in/yaml.v3
. Closes #70 and #71 - Package import path for
go-vcr
has changed fromgithub.com/dnaeon/go-vcr
togopkg.in/dnaeon/go-vcr.v2
. See #73 v2
ofgo-vcr
resides in thev2
branch, which is now the default- Fixed a regression where the default mode of the recorder has been changed. See #72