All notable changes to this project will be documented in this file.
- Added basic support for overrideMimeType method.
- Replaced call to
valueForHTTPHeaderField
byallHeaderFields objectForKey:
to allow usage with iOS 12 (and under), fixes #12.
- Added support for
arraybuffer
response type.
- Fixed crash when
responseText
contains binary data, closes #9.
- Added support for non string header types.
- Using
onload
andonerror
method instead ofaddEventListener
to support incompleteFileReader
implementation, closes #5. - Added
isFile
method to verify ifFormDataEntryValue
is aFile
instead of usinginstanceof
to support customFile
implementation, closes #5.
toBase64
method is now static.
User-Agent
HTTP header is now set by default to Cordova user agent, closes #4.
- Removed the compiled version of
xhr.ts
from the repository. Build is now done before publishing a new version.
- Added support for
FormData
request body, closes #2. - Added an Xcode project and CordovaLib headers to have better code completion when working on Objective-C files.
- Properly divided
XMLHttpRequestEventTarget
andXMLHttpRequest
responsabilities betweenXHREventTarget
andXHR
.
- Added a simple implementation of
XMLHttpRequestEventTarget
to fix a compatibility issue with Angular 10.
- Using
readystate
values fromXMLHttpRequest
instead ofthis
.
- Fixed
Zone is undefined
error for projects not using Zone.js, closes #1. - Added missing readystate constants (UNSENT, OPENED, HEADERS_RECEIVED, LOADING, DONE) on XHR object.
- Removed error thrown when giving a
false
value to theasync
param ofopen()
to avoid regressions.
- Throwing an error when
async
parameter ofopen()
isfalse
.
- Fixed crash when accessing headers through
getResponseHeader()
method.
- POST data support.
Initial version