All notable changes to this project will be documented in this file.
- Added basic support for overrideMimeType method.
- Replaced call to
valueForHTTPHeaderFieldbyallHeaderFields objectForKey:to allow usage with iOS 12 (and under), fixes #12.
- Added support for
arraybufferresponse type.
- Fixed crash when
responseTextcontains binary data, closes #9.
- Added support for non string header types.
- Using
onloadandonerrormethod instead ofaddEventListenerto support incompleteFileReaderimplementation, closes #5. - Added
isFilemethod to verify ifFormDataEntryValueis aFileinstead of usinginstanceofto support customFileimplementation, closes #5.
toBase64method is now static.
User-AgentHTTP header is now set by default to Cordova user agent, closes #4.
- Removed the compiled version of
xhr.tsfrom the repository. Build is now done before publishing a new version.
- Added support for
FormDatarequest body, closes #2. - Added an Xcode project and CordovaLib headers to have better code completion when working on Objective-C files.
- Properly divided
XMLHttpRequestEventTargetandXMLHttpRequestresponsabilities betweenXHREventTargetandXHR.
- Added a simple implementation of
XMLHttpRequestEventTargetto fix a compatibility issue with Angular 10.
- Using
readystatevalues fromXMLHttpRequestinstead ofthis.
- Fixed
Zone is undefinederror 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
falsevalue to theasyncparam ofopen()to avoid regressions.
- Throwing an error when
asyncparameter ofopen()isfalse.
- Fixed crash when accessing headers through
getResponseHeader()method.
- POST data support.
Initial version