- Added a third argument to
cacheKeyFn
containing the headers to enable using headers as part of the cache key. - Removed unused
url
param fromhandleRedirect
.
- Ignore .DS_Store and document fetch retry and timeout config in README.
- Bump deps to fix security audit.
- Bump deps to fix security audit.
- Default to seting User-Agent to calling application to play nice with generic logging tools
- Bump dependencies
- Catch and forward internal errors to callback or return as rejected promise
- Bump node from 14 to 16
- Bump eslint from 8.3.0 to 8.26.0
- Bump eslint-config-exp from 0.2.0 to 0.5.0 and obey the new linting rules
- Bump mocha from 9.2.0 to 10.1.0
- Bump nock from 13.2.2 to 13.2.9
- Bump exp-asynccache from 2.0.0 to 3.2.0
Add got hooks
to behaviour
- Bump got from 11.8.3 to 11.8.5
- Bump eslint and eslint-config-exp and obey the new linting rules
Added the following methods to the object returned from fetchBuilder
:
get
- makes a GET request using the behavior passed to fetchBuilderpost
- makes a POST request using the behavior passed to fetchBuilderput
- makes a PUT request using the behavior passed to fetchBuilderpatch
- makes a PATCH request using the behavior passed to fetchBuilderhead
- makes a HEAD request using the behavior passed to fetchBuilderoptions
- makes an OPTIONS request using the behavior passed to fetchBuilderdel
- makes a DELETE request using the behavior passed to fetchBuilder
Already existing methods are:
fetch
- makes a request using the default method specified in behavior (defaults to GET)stats
- get stats for cached requests
Bump deps.
Allow passing correlation id function to pass correlation id when making requests.
Allow loggers that use the name warn
in addition to warning
functions.
Add eslint-config-exp
as linting config.
Maybe!? Since passed options are forwarded to got
. Timeout behavior differs - got
timeout is only for timing of response. Though it can be handled using an timeout object for socket timeout etc.