Skip to content

Commit 35520f7

Browse files
committed
CHANGELOG: document v4.0.0
1 parent cf3f30b commit 35520f7

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

CHANGELOG.org

+42
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,45 @@
1+
* 2024-08-19
2+
3+
Release =v4.0.0= has been tagged.
4+
5+
This release contains breaking changes.
6+
7+
Minimum Go version required to use =go-vcr= is set to =1.22=.
8+
9+
The import path for =recorder= and =cassette= packages has changed and now they
10+
reside in:
11+
12+
- =gopkg.in/dnaeon/go-vcr.v4/pkg/cassette=
13+
- =gopkg.in/dnaeon/go-vcr.v4/pkg/recorder=
14+
15+
Only version =2= of the cassette format is now supported.
16+
17+
The =recorder.Options= struct has been removed. Instead of it, we can now use
18+
functional options to configure the recorder.
19+
20+
The following =recorder.Option= functions may be used to configure the recorder.
21+
22+
- =recorder.WithCassette= - sets the name of the cassette
23+
- =recorder.WithMode= - sets the mode of the recorder
24+
- =recorder.WithRealTransport= - sets the underlying transport used by =go-vcr=.
25+
- =recorder.WithBlockUnsafeMethods= - blocks unsafe methods, if set to =true=.
26+
- =recorder.WithSkipRequestLatency= - simulates request/response latency, if set to =true=.
27+
- =recorder.WithPassthrough= - configures passthrough handlers
28+
- =recorder.WithHook= - configures recorder hooks
29+
- =recorder.WithMatcher= - configures the matcher to be used
30+
- =recorder.WithReplayableInteractions= - allows interactions to be replayed multiple times, if set to =true=.
31+
32+
The =cassette.OnRequestReplayFunc= type has been removed. Instead of it, users
33+
should use a =recorder.BeforeResponseReplayHook=.
34+
35+
The =cassette.DefaultMatcher= is now stricter. See [[https://github.com/dnaeon/go-vcr/pull/98][#98]] and [[https://github.com/dnaeon/go-vcr/pull/99][#99]] for more details.
36+
37+
Added support for blocking Unsafe HTTP Methods. The definition of Safe Methods
38+
comes from [[https://datatracker.ietf.org/doc/html/rfc9110#name-safe-methods][RFC 9110, section 9.2.1]]. See [[https://github.com/dnaeon/go-vcr/pull/100][#100]] for more details.
39+
40+
Added support for server-side recording and replaying. See [[https://github.com/dnaeon/go-vcr/pull/101][#101]] for more
41+
details.
42+
143
* 2024-03-13
244

345
Release =v3.2.0= has been tagged.

0 commit comments

Comments
 (0)