NOTE: This is a beta version of this release. There may be functionality that is broken in certain browsers, though we suspect that builds are hanging and not erroring. See https://saucelabs.com/u/axios for the most up-to-date information.
New Functionality:
- Add getUri method (#1712)
- Add support for no_proxy env variable (#1693)
- Add toJSON to decorated Axios errors to faciliate serialization (#1625)
- Add second then on axios call (#1623)
- Typings: allow custom return types
- Add option to specify character set in responses (with http adapter)
Fixes:
- Fix Keep defaults local to instance (#385)
- Correctly catch exception in http test (#1475)
- Fix accept header normalization (#1698)
- Fix http adapter to allow HTTPS connections via HTTP (#959)
- Fix Removes usage of deprecated Buffer constructor. (#1555, #1622)
- Fix defaults to use httpAdapter if available (#1285)
- Fixing defaults to use httpAdapter if available
- Use a safer, cross-platform method to detect the Node environment
- Fix Reject promise if request is cancelled by the browser (#537)
- [Typescript] Fix missing type parameters on delete/head methods
- [NS]: Send
false
flag isStandardBrowserEnv for Nativescript - Fix missing type parameters on delete/head
- Fix Default method for an instance always overwritten by get
- Fix type error when socketPath option in AxiosRequestConfig
- Capture errors on request data streams
- Decorate resolve and reject to clear timeout in all cases
Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:
- Andrew Scott ascott18@gmail.com
- Anthony Gauthier antho325@hotmail.com
- arpit arpit2438735@gmail.com
- ascott18
- Benedikt Rötsch axe312ger@users.noreply.github.com
- Chance Dickson me@chancedickson.com
- Dave Stewart info@davestewart.co.uk
- Deric Cain deric.cain@gmail.com
- Guillaume Briday guillaumebriday@gmail.com
- Jacob Wejendorp jacob@wejendorp.dk
- Jim Lynch mrdotjim@gmail.com
- johntron
- Justin Beckwith beckwith@google.com
- Justin Beckwith justin.beckwith@gmail.com
- Khaled Garbaya khaledgarbaya@gmail.com
- Lim Jing Rong jjingrong@users.noreply.github.com
- Mark van den Broek mvdnbrk@gmail.com
- Martti Laine martti@codeclown.net
- mattridley
- mattridley matt.r@joinblink.com
- Nicolas Del Valle nicolas.delvalle@gmail.com
- Nilegfx
- pbarbiero
- Rikki Gibson rikkigibson@gmail.com
- Sako Hartounian sakohartounian@yahoo.com
- Shane Fitzpatrick fitzpasd@gmail.com
- Stephan Schneider stephanschndr@gmail.com
- Steven steven@ceriously.com
- Tim Garthwaite tim.garthwaite@jibo.com
- Tim Johns timjohns@yahoo.com
- Yutaro Miyazaki yutaro@studio-rubbish.com
- Adding support for UNIX Sockets when running with Node.js (#1070)
- Fixing typings (#1177):
- AxiosRequestConfig.proxy: allows type false
- AxiosProxyConfig: added auth field
- Adding function signature in AxiosInstance interface so AxiosInstance can be invoked (#1192, #1254)
- Allowing maxContentLength to pass through to redirected calls as maxBodyLength in follow-redirects config (#1287)
- Fixing configuration when using an instance - method can now be set (#1342)
- Fixing issue with web workers (#1160)
- Allowing overriding transport (#1080)
- Updating TypeScript typings (#1165, #1125, #1131)
- BREAKING Fixing issue with
baseURL
and interceptors (#950) - BREAKING Improving handing of duplicate headers (#874)
- Adding support for disabling proxies (#691)
- Updating TypeScript typings with generic type parameters (#1061)
- Fixing issue with including
buffer
in bundle (#887) - Including underlying request in errors (#830)
- Convert
method
to lowercase (#930)
- Improving HTTP adapter to return last request in case of redirects (#828)
- Updating
follow-redirects
dependency (#829) - Adding support for passing
Buffer
in node (#773)
- BREAKING Removing
Promise
from axios typings in favor of built-in type declarations (#480) - Adding
options
shortcut method (#461) - Fixing issue with using
responseType: 'json'
in browsers incompatible with XHR Level 2 (#654) - Improving React Native detection (#731)
- Fixing
combineURLs
to support emptyrelativeURL
(#581) - Removing
PROTECTION_PREFIX
support (#561)
- Fixing issue with custom instances and global defaults (#443)
- Renaming
axios.d.ts
toindex.d.ts
(#519) - Adding
get
,head
, anddelete
todefaults.headers
(#509) - Fixing issue with
btoa
and IE (#507) - Adding support for proxy authentication (#483)
- Improving HTTP adapter to use
http
protocol by default (#493) - Fixing proxy issues (#491)
- Fixing issue with calling
cancel
after response has been received (#482)
- Fixing issue with UMD (#485)
- Adding cancellation support (#452)
- Moving default adapter to global defaults (#437)
- Fixing issue with
file
URI scheme (#440) - Fixing issue with
params
objects that have no prototype (#445)
- BREAKING Updating TypeScript definitions (#419)
- BREAKING Replacing
agent
option withhttpAgent
andhttpsAgent
(#387) - BREAKING Splitting
progress
event handlers intoonUploadProgress
andonDownloadProgress
(#423) - Adding support for
http_proxy
andhttps_proxy
environment variables (#366) - Fixing issue with
auth
config option andAuthorization
header (#397) - Don't set XSRF header if
xsrfCookieName
isnull
(#406)
- Fixing issue with response data not being transformed on error (#378)
- BREAKING Improved error handling (#345)
- BREAKING Response transformer now invoked in dispatcher not adapter (10eb238)
- BREAKING Request adapters now return a
Promise
(157efd5) - Fixing issue with
withCredentials
not being overwritten (#343) - Fixing regression with request transformer being called before request interceptor (#352)
- Fixing custom instance defaults (#341)
- Fixing instances created from
axios.create
to have same API as default axios (#217)
- Fixing IE CORS support (#313)
- Fixing detection of
FormData
(#325) - Adding
Axios
class to exports (#321)
- Adding support for Stream with HTTP adapter (#296)
- Adding support for custom HTTP status code error ranges (#308)
- Fixing issue with ArrayBuffer (#299)
- Fixing issue with some requests sending
undefined
instead ofnull
(#250) - Fixing basic auth for HTTP adapter (#252)
- Fixing request timeout for XHR adapter (#227)
- Fixing IE8 support by using
onreadystatechange
instead ofonload
(#249) - Fixing IE9 cross domain requests (#251)
- Adding
maxContentLength
option (#275) - Fixing XHR support for WebWorker environment (#279)
- Adding request instance to response (#200)
- Improving handling of request timeout in node (#124)
- Fixing network errors not rejecting (#205)
- Fixing issue with IE rejecting on HTTP 204 (#201)
- Fixing host/port when following redirects (#198)
- Adding support for custom adapters
- Fixing Content-Type header being removed when data is false (#195)
- Improving XDomainRequest implementation (#185)
- Improving config merging and order of precedence (#183)
- Fixing XDomainRequest support for only <= IE9 (#182)
- Adding support for passing XSRF token for cross domain requests when using
withCredentials
(#168) - Fixing error with format of basic auth header (#178)
- Fixing error with JSON payloads throwing
InvalidStateError
in some cases (#174)
- Adding support for creating instances of axios (#123)
- Fixing http adapter to use
Buffer
instead ofString
in case ofresponseType === 'arraybuffer'
(#128) - Adding support for using custom parameter serializer with
paramsSerializer
option (#121) - Fixing issue in IE8 caused by
forEach
onarguments
(#127) - Adding support for following redirects in node (#146)
- Adding support for transparent decompression if
content-encoding
is set (#149) - Adding support for transparent XDomainRequest to handle cross domain requests in IE9 (#140)
- Adding support for HTTP basic auth via Authorization header (#167)
- Adding support for baseURL option (#160)
- Fixing issue with minified bundle in IE8 (#87)
- Adding support for passing agent in node (#102)
- Adding support for returning result from
axios.spread
for chaining (#106) - Fixing typescript definition (#105)
- Fixing default timeout config for node (#112)
- Adding support for use in web workers, and react-native (#70), (#98)
- Adding support for fetch like API
axios(url[, config])
(#116)
- Removing deprecated success/error aliases
- Fixing issue with array params not being properly encoded (#49)
- Fixing issue with User-Agent getting overridden (#69)
- Adding support for timeout config (#56)
- Removing es6-promise dependency
- Fixing issue preventing
length
to be used as a parameter (#91) - Fixing issue with IE8 (#85)
- Converting build to UMD
- Fixing issue with FormData not being sent (#53)
- Using JSON.parse unconditionally when transforming response string (#55)
- Adding support for
statusText
in response (#46)
- Adding support for intercepetors (#14)
- Updating es6-promise dependency
- Fixing issue with
Content-Type
when usingFormData
(#22) - Adding support for TypeScript (#25)
- Fixing issue with standalone build (#29)
- Fixing issue with verbs needing to be capitalized in some browsers (#30)
- Adding error handling to request for node.js (#18)
- Adding support for
ArrayBuffer
andArrayBufferView
(#10) - Adding support for utf-8 for node.js (#13)
- Adding support for SSL for node.js (#12)
- Fixing incorrect
Content-Type
header (#9) - Adding standalone build without bundled es6-promise (#11)
- Deprecating
success
/error
in favor ofthen
/catch
- Fixing missing post body when using node.js (#3)
- Fixing
success
anderror
to properly receive response data as individual arguments (#8) - Updating
then
andcatch
to receive response data as a single object (#6) - Fixing issue with
all
not working (#7)
- Fixing bundling with browserify (#4)
- Fixing build problem causing ridiculous file sizes
- Adding support for
all
andspread
- Adding support for node.js (#1)
- Initial release