- Using xhr.responseText instead of xhr.response to fix an issue with IE9.
- Refactored according to the Airbnb JavaScript Style Guide.
- Added ability to override XMLHttpRequest with xmlHttpRequest option.
- Fix bug with IE where sending
undefined
with a DELETE request would send the string.
- Added xr.configure, a function to globally configure xr.
- Slight change of the way Promises are passed into configuration,
where
new
(it being a class) is not assumed necessary. They are now passed in a function which takes one argument (the first argument to the promise), and returns a Promise, e.g.fn => new Promise(fn)
.
- Handling abort/error/timeout with a rejection.
- Exposing
xr.Events
which are constants based on the XMLHttpRequest spec.
- Raw mode applies to sending and loading.
- Updated readme with more examples.
- Fix bug where data wasn't loaded.
- Fix bug where empty response causes exception.
- Allowing data to be sent directly using opts.raw
- AUTHORS text file
- Remove Promise warning, because it would be annoying if you're providing your own promises.
- Add PATCH and OPTIONS.
- Able to inject promise class (will be instantiated with
new
) - Using internal
assign
function so Object.assign is not needed. - Added Changelog
- resolve anything between 200-300 instead of only 200.
- Change dumpFn/loadFn to dump/load.
- HackerNews debut!