Releases: launchdarkly/go-test-helpers
Releases · launchdarkly/go-test-helpers
v3.0.2
v3.0.1
[3.0.1] - 2022-08-29
Fixed:
- Fixed import paths to have
/v3
.
v3.0.0
[3.0.0] - 2022-08-29
Added:
TryReceive
,RequireValue
,AssertNoMoreValues
,AssertChannelClosed
,AssertChannelNotClosed
: new generics-based helpers related to channels.WithTempFileData
,WithTempDir
: new filesystem helpers.jsonhelpers.AssertEqual
,jsonhelpers.Value
: a simpler way to do JSON equality assertions and get the diff format that's provided by this package, without having to use thematchers
API.testbox.ShouldFail
,testbox.ShouldFailAndExitEarly
: for making assertions about assertion logic.
Changed:
- The minimum Go version is now 1.18.
v2.3.2
[2.3.2] - 2022-05-02
Changed:
- Improved the panic message that is generated by
httphelpers.BrokenConnectionHandler
to make it clearer that this is an intentional error (if for instance the panic stacktrace is logged byhttp.Server
).
2.3.1
[2.3.1] - 2022-02-03
Fixed:
- The
Assert
/Require
methods inmatchers
now callt.Helper()
(if that method exists) so the location of the failure will be more accurately reported.
2.3.0
[2.3.0] - 2022-01-21
Added:
- Subpackages
jsonhelpers
andmatchers
.
2.2.0
[2.2.0] - 2020-07-06
Added:
- Added
RetryMillis
field tohttphelpers.SSEEvent
.
2.1.0
[2.1.0] - 2020-07-06
Added:
- In
httphelpers.SSEStreamControl
:EnqueueComment
andSendComment
.
2.0.1
[2.0.1] - 2020-07-02
Fixed:
- Fixed a bug in
ChunkedStreamingHandler
that caused the response to hang before reading the headers if there was no initial data in the stream.
2.0.0
[2.0.0] - 2020-07-01
Added:
- In
httphelpers
,ChunkedStreamingHandler
,SSEHandler
, andSSEEvent
- In the main package,
ReadWithTimeout
.
Changed:
- This project now requires modules and has a minimum Go version of 1.13.
- In
ldservices
,ServerSideStreamingServiceHandler
now useshttphelpers.SSEEvent
instead of having a dependency on theeventsource
package. Its interface is now based on the newSSEHandler
instead of using channels. - In
httphelpers
,PanicHandler
is replaced byBrokenConnectionHandler
.
Removed:
- The LaunchDarkly client-side streaming endpoint handler in
ldservices
was not used and has been removed.