Skip to content

Releases: purescript-contrib/purescript-affjax

v7.0.0

12 Aug 22:05
423ee7a
Compare
Choose a tag to compare

Lots of things were renamed in this release to better match their current functionality.

  • The affjax function is now request
  • The AffjaxRequest record is now Request
  • The AffjaxResponse record is now Response
  • The response field of Response is now body
  • The Request type is now RequestBody
  • The Response type is now ResponseFormat
  • The Request record now has a responseFormat field, rather than it being a separate argument to request

(Most of the new names by @paldepind).

Additionally, errors that occur during decoding a response no longer cause an entire request to fail. The body value is now Either ResponseFormatError a, so that other details about the response can still be inspected (status code, for example), even if the response body fails to decode. The ResponseFormatError value also carries the response body as a Foreign value, in case there is some further special handling that can be performed externally.

v6.0.1

05 Aug 08:19
d99ac9f
Compare
Choose a tag to compare

Documentation improvements

Thanks to @paldepind

v6.0.0

27 May 16:34
253e1ad
Compare
Choose a tag to compare
  • Updated for PureScript 0.12
  • Requestable and Respondable classes have now been removed in favour of using explicit values
  • statusText is now available in responses (@danbornside)
  • The Aff canceller was fixed (@doolse)

v5.0.0

14 Sep 23:25
Compare
Choose a tag to compare

Updated for purescript-aff v4.0.0.

v4.0.0

10 Apr 22:41
Compare
Choose a tag to compare
  • Updated for PureScript 0.11 (@NasalMusician)

v3.0.2

01 Dec 14:16
Compare
Choose a tag to compare
  • Tweaked JS to enable affjax to work in Electron apps (@aratama)

v3.0.1

15 Nov 15:15
Compare
Choose a tag to compare
  • Fixed shadowed name warning

v3.0.0

01 Nov 13:56
Compare
Choose a tag to compare
  • Updated dependencies for PureScript 0.10

v2.0.1

11 Sep 15:08
Compare
Choose a tag to compare

v2.0.0

31 Jul 11:44
Compare
Choose a tag to compare
  • Updated dependencies