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
affjax
function is nowrequest
- The
AffjaxRequest
record is nowRequest
- The
AffjaxResponse
record is nowResponse
- The
response
field ofResponse
is nowbody
- The
Request
type is nowRequestBody
- The
Response
type is nowResponseFormat
- The
Request
record now has aresponseFormat
field, 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.