This repository has been archived by the owner on Dec 1, 2023. It is now read-only.
0.9.0
Note this release has API changes, make sure to update your code when upgrading
New
- Added
Request
andResponse
classes - Added
Response
methodstext()
,json()
andblob()
- Added
credentials
option for CORS requests - Added
progress
option to handle progress events of uploads
Changed
- Renamed option
data
tobody
- Renamed option
beforeSend
tobefore
- Renamed method
Request.cancel()
toRequest.abort()
- Changed property
Response.headers
toobject
- Changed arguments for
Http.get(url, [data], [options])
toHttp.get(url, [options])
- Interceptors use
Request.respondWith()
method to return aResponse
Removed
- No chain break in Promise (#248)
- Callbacks
success
,error
andalways
- Removed property
Response.request
- Removed option
xhr
useprogress
orcredentials
options instead - Removed option
upload
useprogress
orcredentials
options instead