Releases: purescript-contrib/purescript-affjax
Releases · purescript-contrib/purescript-affjax
v7.0.0
Lots of things were renamed in this release to better match their current functionality.
- The
affjaxfunction is nowrequest - The
AffjaxRequestrecord is nowRequest - The
AffjaxResponserecord is nowResponse - The
responsefield ofResponseis nowbody - The
Requesttype is nowRequestBody - The
Responsetype is nowResponseFormat - The
Requestrecord now has aresponseFormatfield, rather than it being a separate argument torequest
(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
Documentation improvements
Thanks to @paldepind
v6.0.0
v5.0.0
Updated for purescript-aff v4.0.0.