Skip to content

Latest commit

 

History

History
84 lines (52 loc) · 2.33 KB

CHANGELOG.md

File metadata and controls

84 lines (52 loc) · 2.33 KB

Changelog

5.5.0

  • Added a third argument to cacheKeyFn containing the headers to enable using headers as part of the cache key.
  • Removed unused url param from handleRedirect.

5.4.2

  • Ignore .DS_Store and document fetch retry and timeout config in README.
  • Bump deps to fix security audit.

5.4.1

  • Bump deps to fix security audit.

5.4.0

  • Default to seting User-Agent to calling application to play nice with generic logging tools

5.3.3

  • Bump dependencies

5.3.2

  • 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

5.3.1

Add got hooks to behaviour

5.2.1

  • Bump got from 11.8.3 to 11.8.5
  • Bump eslint and eslint-config-exp and obey the new linting rules

5.2.0

Added the following methods to the object returned from fetchBuilder:

  • get - makes a GET request using the behavior passed to fetchBuilder
  • post - makes a POST request using the behavior passed to fetchBuilder
  • put - makes a PUT request using the behavior passed to fetchBuilder
  • patch - makes a PATCH request using the behavior passed to fetchBuilder
  • head - makes a HEAD request using the behavior passed to fetchBuilder
  • options - makes an OPTIONS request using the behavior passed to fetchBuilder
  • del - 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

5.1.1

Bump deps.

5.1.0

Allow passing correlation id function to pass correlation id when making requests.

5.0.2

Allow loggers that use the name warn in addition to warning functions.

5.0.1

Add eslint-config-exp as linting config.

5.0.0

Replace request with got.

Breaking

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.