-
Notifications
You must be signed in to change notification settings - Fork 615
fix(deps): update module github.com/jarcoal/httpmock to v1.4.1 #5389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
76f30be to
b117896
Compare
|
/it-go |
b117896 to
627c73d
Compare
|
/it-go |
627c73d to
3e87a22
Compare
|
/it-go |
|
3e87a22 to
fdae8be
Compare
|
/it-go |
fdae8be to
229e795
Compare
|
/it-go |
229e795 to
216b5a0
Compare
|
/it-go |
216b5a0 to
e27fcb8
Compare
|
/it-go |
e27fcb8 to
255d47a
Compare
|
/it-go |
255d47a to
addc72b
Compare
|
/it-go |
|



This PR contains the following updates:
v1.0.8->v1.4.1Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
jarcoal/httpmock (github.com/jarcoal/httpmock)
v1.4.1Compare Source
What's Changed
New Contributors
Full Changelog: jarcoal/httpmock@v1.4.0...v1.4.1
v1.4.0Compare Source
What's Changed
// nolint:→//nolint:by @maxatome in #152NewJsonResponseOrPanicfunction to simplify calls withResponderFromMultipleResponsesby @kilianpaquier in #151deferstatements witht.Cleanupin docs by @alvii147 in #157http.Response.Statusrespect RFC 2616, like in Go stdlib. by @constantoine in #159Activateand addDeactivateNonDefaultfunctions by @maxatome in #161New Contributors
Full Changelog: jarcoal/httpmock@v1.3.1...v1.4.0
v1.3.1Compare Source
Fix:
v1.3.0Compare Source
New features:
Miscellaneous:
v1.2.0Compare Source
New features:
NewNotFoundResponderhelps to detect a possible path mistake (final/or double/cases);(*MockTransport).Respondersmethod allowing to list registered responders.Fixes:
url.RawPathis used instead ofurl.Pathwhen checking path alone for consistency with full URL check, which is always unescaped.Let 2 registered responders:
GET http://z.tld/foo%2fbarGET /foo%2fbarBefore this release:
GET http://z.tld/foo%2fbaris caught by 1GET http://unknown.tld/foo%2fbaris not caught as the tested path is/foo/barinstead of/foo%2fbarFrom this release:
GET http://z.tld/foo%2fbaris caught by 1GET http://unknown.tld/foo%2fbaris caught by 2save of old clients transports is now protected from concurrent writes (@roboslone).
Miscellaneous:
anytype instead ofinterface{}, as appeared in go 1.18 (in a compatible manner with go<1.18).Enjoy!
v1.1.0Compare Source
New features:
Responderfor a lower-cased method amongCONNECT,DELETE,GET,HEAD,OPTIONS,POST,PUTandTRACE, produces a panic as it is probably a mistake. This behavior can be disabled by setting newMockTransport.DontCheckMethodfield totrueprior to theRegister*Responder*()call;nilRespondernow unregisters it and zeroes its statistics;Respondermethods:Delay(time.Duration)to delay a response,Then(Responder)to chain responders.Fix:
Response.Bodyare now consistent. Now, the httpmock one can only be read once: if some code wrongly depends onNewStringResponse()&NewBytesResponse()response body be read ad infinitum, it should be changed to either recallNewStringResponse()&NewBytesResponse()before reading again the response body, or useNewStringResponder()&NewBytesResponder().Doc:
Responderzeroes its statistics.Enjoy!
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.