Changelog
March 4, 2025 ยท View on GitHub
v2.17.0 - 05 Mar 2025
- Rename
Match.IndextoSubmatch(gh-252) - Rename
Match.NametoNamedSubmatch(gh-252) - Rename
Match.Values/NotValuestoHasSubmatches/NotHasSubmatches(gh-252) - Rename
Cookie.HasMaxAge/NotContainsMaxAgetoContainsMaxAge/NotContainsMaxAge(gh-252) - Add
Response.Readerfor accessing response body directly (gh-382) - Add
Request.WithRetryPolicyFunc(gh-435) - Add
Request.WithQueryEncoderandQueryEncoderFormKeepZeros(gh-438) - Add
Number.InDeltaRelative(gh-306) - Add
Object.Length - Update
Request.WithPathto always format floats in decimal notation (gh-449) - Fix panic in
DebugPrinterwhen printing body (gh-444) - Fix bugs in
NewMatchC()andNewWebsocketMessageC() - Improve test coverage
- Improve documentation and examples
- Add TLS example (gh-205)
- Bump some dependencies
v2.16.0 - 03 Oct 2023
- Bump minimum Go version to 1.19
- Rename
Response.ContentType/ContentEncoding/TransferEncodingtoHasXxx(gh-252) - Add
Request.WithReporterandWithAssertionHandler(gh-234) - Add stacktrace printing support (gh-160)
- Colorize JSON values (gh-334)
- Colorize HTTP requests and responses (gh-343)
- Prevent panic if
flag.Parsehasn't been called (gh-410) - Refactor and cleanup tests
- Improve test coverage
- Improve documentation
- Improve CI
v2.15.0 - 04 Apr 2023
- Bump minimal Go version to 1.17
- Bump golang.org/x/net to 0.7.0
- Support colored output (gh-161, ([gh-335][gh-335]))
- Support thousand separation when formatting numbers (gh-274)
- Print HTTP request and response in failure message (gh-159)
- Add
RequestFactoryFunc,ClientFunc,WebsocketDialerFunc,ReporterFunc,LoggerFunc(gh-249) - Add
PanicReporter(gh-248) - Fix error messages in
AssertReporterandRequireReporter(1e30c2736042d3b7e88bfff1948b74af4e8f1306) - Update documentation
- Improve test coverage
- Refactor and cleanup tests
v2.14.0 - 04 Mar 2023
- Bump minimal Go version to 1.16
- Bump golang.org/x/net to 0.7.0
- Fix handling of DefaultFormatter.LineWidth
- Update documentation
- Improve test coverage
- Refactor and cleanup tests
v2.13.0 - 23 Feb 2023
- Rename
Object.ValueEqualtoHasValue(gh-252) - Add
Array.HasValueandNotHasValue(gh-286) - Rename
Array.ElementtoValue(gh-252) - Add
Number.IsInt,IsUint,IsFinite(gh-155) - Add
Environment.ListandGlob(gh-259) - Add
Environment.Clearmethod (gh-260) - Deprecate
Array.FirstandLast - Preparations to make lib thread-safe (gh-233)
- Improve documentation
- Improve test coverage
- Refactor and cleanup tests
v2.12.0 - 08 Feb 2023
- Rename
Value.NulltoIsNull(gh-252) - Rename
Boolean.TrueandBoolean.FalsetoIsTrueandIsFalse(gh-252) - Correctly fill
AssertionContext.Responsefield - Panic on invalid
AssertionHandler - Add
String.InListFoldandNotInListFold(gh-261) - Deprecate
RetryTemporaryNetworkErrorsandRetryTemporaryNetworkAndServerErrors, addRetryTimeoutErrorsandRetryTimeoutAndServerErrors(gh-270) - Lazy reading of response body (gh-244)
- Preparations to make lib thread-safe (gh-233)
- Improve documentation
- Improve test coverage
v2.11.0 - 02 Feb 2023
- Add
FatalReporterstruct (gh-187) - Add
Environment.Deletemethod (gh-235) - Add
Value.Decodemethod (gh-192) - Rename
EmptytoIsEmpty(gh-252) - Rename
EqualtoIsEqual(gh-252) - Add
DefaultFormatter.FloatFormatoption, rework formatting of numbers (gh-190) - Add
InListmethod (gh-250) - Add
Value.IsXxxmethods (gh-253) - Improve documentation
- Improve test coverage
v2.10.0 - 28 Jan 2023
- Add
Decodemethod (gh-192) - Add
Aliasmethod (gh-171) - Rename
Array.ContainstoArray.ContainsAll(gh-252) - Rename
Array.ElementstoArray.ConsistsOf(gh-252) - Rename
Cookie.HaveMaxAgetoCookie.HasMaxAge(gh-252) - Rename
DateTime.GetXxxtoDateTime.Xxx(gh-252) - Preparations to make lib thread-safe (gh-229)
- Check call order of
Requestmethods (gh-162) - Improve documentation
- Improve test coverage