Skip to content

Releases: LaunchPadLab/lp-requests

v4.3.0

07 Aug 19:31
bc88751
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.2.2...v4.3.0

v4.2.2

07 Aug 19:17
5248bb3
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v4.2.1...v4.2.2

v4.2.1

17 Dec 18:43
5c5ac41
Compare
Choose a tag to compare

What's Changed

Full Changelog: v4.2.0...v4.2.1

v4.2.0

16 Sep 14:29
36a6bbb
Compare
Choose a tag to compare

Items Addressed

  • Adds parseJsonStrictly option (default is true)
    • When set to true true, a response that throws an exception during parsing will return null
    • When set to false, a response that throws an exception during parsing will return the text of the response body. This is especially helpful for responses that send a string (e.g., a token) that was not properly escaped (123AZY vs. "123AZY")

v4.1.9

16 Sep 13:44
b54340d
Compare
Choose a tag to compare

Items Addressed

  • Explicitly checks for responses with a 204 no content response and returns null. Previously, a json parse was attempted and a warning was logged in the console

v4.1.7

17 Jan 17:03
Compare
Choose a tag to compare
  • Fixes a bug where exceptions thrown in onSuccess would trigger onFailure

v4.1.0

26 Jun 18:20
Compare
Choose a tag to compare
  • Exports camelizeKeys and decamelizeKeys helpers

v4.0.0

07 May 15:01
Compare
Choose a tag to compare
  • Allows http to be called with a single object argument:
http({ url: 'google.com }).then(() => ...) 

v3.6.0

25 Mar 20:52
Compare
Choose a tag to compare

Previously, the "before" hook could only modify options passed to Fetch. This change allows it to modify all options, like successDataPath and onSuccess.

v3.4.0

26 Jun 19:58
Compare
Choose a tag to compare
  • Adds auth option to http for using Basic Auth