Skip to content

Releases: honzabrecka/composable-fetch

6.0.0

04 Aug 21:20
Compare
Choose a tag to compare
  • moves all functions to module level
  • fixes withHeader appending
  • exposes fetch function (either window.fetch or whatwg-fetch or node-fetch)
  • changes retryable
  • adds text and json functions with predefined most common pipe
  • exposes retryableFetch function (shorthand for retryable(fetch))
  • changes interface of withRetry; it respects retry-after header
  • exposes decodeRetryAfterHeaderValue function for decoding retry-after header
  • adds withJSONEncodedBody function
  • requires Headers so it's not up to userland

5.0.1

01 Jul 15:07
Compare
Choose a tag to compare
bump version

5.0.0

20 Mar 10:47
Compare
Choose a tag to compare

Diff 4.1.0...5.0.0

  • change signature of tryCatchP - change catcher to be an async function (ref 8093b11)
  • replace logFetchError function with improved logError function (ref adf5538)
  • replace clone function with withClone function (ref 8a64d13)

4.1.0

21 Aug 11:34
Compare
Choose a tag to compare
  • upgrade to typescript 3
  • introduce composableFetch.withCredentials function

4.0.0

14 Mar 18:38
Compare
Choose a tag to compare
  • upgrade to typescript@2.7 f23a4b9
  • [BREAKING] decode text response only if content-type header starts with text/ bf1ff65

3.3.0

14 Mar 18:37
Compare
Choose a tag to compare

3.2.0

22 Nov 16:30
Compare
Choose a tag to compare

Diff 3.1.0...3.2.0

  • upgrade to typescript 2.6.1 1ae627d
  • add support for Headers in withHeader fn 9a5fe8f
  • improve exceptions by providing their id 4c30ea1 b377b97
  • introduce tapAndDelay function 31f8a18

3.1.0

15 Oct 18:24
Compare
Choose a tag to compare

Diff 3.0.0...74d9852

  • upgrade to typescript@2.5.2
  • add composableFetch.decodeArrayBufferResponse fn (ref 0c12087)
  • add composableFetch.decodeBlobResponse fn (ref 0c12087)
  • add composableFetch.decodeFormDataResponse fn (ref 0c12087)
  • add composableFetch.clone fn (ref a2d237f)
  • add tryCatchP fn (ref 0b2340c)

3.0.0

30 Aug 15:15
Compare
Choose a tag to compare
bump version

2.0.0

17 Aug 08:12
Compare
Choose a tag to compare
2.0.0 Pre-release
Pre-release
bump version