Releases: canjs/can-ajax
Releases · canjs/can-ajax
Ensure XHR async is always true
This fixes #51
Allow beforeSend to be async & allow access to xhrFields
This release covers two issues:
-
beforeSend
is now allowed to run async. If it returns a Promise, it will be waited on before sending. -
beforeSend
is now invoked after thexhrFields
option has been processed such that the following assertion fails
See #52 for more details.
v2.1.1
Handle error thrown when parsing responseText as JSON #47 (thanks @ivospinheiro!)