Skip to content

Commit

Permalink
Merge origin fork. (#1)
Browse files Browse the repository at this point in the history
* Add react-hooks-axios to Libraries section of ECOSYSTEM.md (axios#1925)

* Update README.md. - Add Querystring library note (axios#1896)

* Update README.md. Querystring libraries note

* Typo in README.md

Co-Authored-By: airs0urce <airs0urce0@gmail.com>

* Update README.md

Co-Authored-By: airs0urce <airs0urce0@gmail.com>

* Add issue templates

* Fixing Mocha tests by locking follow-redirects version to 1.5.10 (axios#1993)

* docs(ECOSYSTEM): add axios-api-versioning (axios#2020)

* Makes Axios error generic to use AxiosResponse (axios#1738)

* Destroy stream on exceeding maxContentLength (fixes axios#1098) (axios#1485)

* Clarify what values responseType can have in Node (axios#2121)

It seems that `responseType: 'blob'` doesn't actually work in Node (when I tried using it, response.data was a string, not a Blob, since Node doesn't have Blobs), so this clarifies that this option should only be used in the browser

* Update README.md. - Change `.then` to `.finally` in example code (axios#2090)

* Fixing spacing for README.md (axios#2066)

* Update README.md - Add instructions for installing with yarn (axios#2036)

* Unzip response body only for statuses != 204 (axios#1129)

* Add r2curl in ECOSYSTEM (axios#2141)

* Update ECOSYSTEM.md - Add Axios Endpoints (axios#2176)

* Add DELETE to list of methods that allow data as a config option (axios#2169)

* Add information about auth parameter to README (axios#2166)

* Update Changelog for release (0.19.0)

* Releasing 0.19.0

* Fix typo in CHANGELOG.md - s/issue/issues (axios#2193)

- issue link is not found.
- typo: issue => issues

* Fix travis CI build (axios#2386)

* Do not modify config.url when using a relative baseURL (resolves axios#1628) (axios#2391)

* Adding tests to show config.url mutation

Because config.url is modified while processing the request
when the baseURL is set,
it is impossible to perform a retry with the provided config object.

Ref axios#1628

* Fixing url combining without modifying config.url

As config.url is not modified anymore during the request processing.
The request can safely be retried after it failed with the provided
config.

resolves axios#1628

* Fix a typo in README (axios#2384)

* Fix grammar in README.md (axios#2271)

* Axios create url bug (axios#2290)

* Fix axios#2234 

* added spacing --eslint

* added test cases

* removed unexpected cases after updating the code

* Fixing set `config.method` after mergeConfig for Axios.prototype.request (axios#2383)

Inside Axios.prototype.request function, It's forced to set
method to 'get' after `mergeConfig` if config.method exists, which makes the defaults.method not effective.

* Fixing custom config options (axios#2207)

- fixes axios#2203

* Doc fixes, minor examples cleanup (axios#2198)

* README.md COOKBOOK.md: minor fixes

 * simplify language

* ECOSYSTEM: create a few categories

* Examples: log port listening to

* upgrade bootstrap 3 -> 4 in examples

bootstrap 4 is slightly smaller then 3.2.0
so it should also help load examples faster

* categorize 0.19 items a little differently

surface user/consumer changes first

* Update response interceptor docs (axios#2399)

* Fix cancellation error on build master. axios#2290 axios#2207 (axios#2407)

* docs: minor tweak (axios#2404)

made the license section link up to the respective file.

* Sintaxe alternative to send data into the body (axios#2317)

* upadating README: notes on CommonJS autocomplete (axios#2256)

closes axios#2226. add note on how to gain typings / autocomplete / intellisense when using CommonJS (`require()`) imports

* updating spelling and adding link to docs (axios#2212)

* Fixing issue 2195 - order of if/else blocks is causing unit tests mocking XHR. (axios#2201)

* 🐛Fix request finally documentation in README (axios#2189)

* Fixing socket hang up error on node side for slow response. (axios#1752)

* Fixing socket hang up error on node side for slow response.

* eslint check

* Fix word 'sintaxe' to 'syntax' in README.md (axios#2432)

- translate 'sintaxe' word from portuguese to english

* Add toJSON property to AxiosError type (axios#2427)

I noticed the error object has a `toJSON` method but when I tried to use it in my typescript code it complained it didn't exist, even though I was using the `AxiosError` type.

* Make redirection from HTTP to HTTPS work (axios#2426)

When calling an HTTP resource redirecting to a HTTPS one with a keepAlive agent. We get the following error:
```
TypeError [ERR_INVALID_PROTOCOL]: Protocol "https:" not supported. Expected "http:"
    at new ClientRequest (_http_client.js:119:11)
    at Object.request (https.js:281:10)
    at RedirectableRequest._performRequest (/Users/jthomassey/projects/ecom-shop-web/node_modules/follow-redirects/index.js:169:24)
    at RedirectableRequest._processResponse (/Users/jthomassey/projects/ecom-shop-web/node_modules/follow-redirects/index.js:260:10)
    at ClientRequest.RedirectableRequest._onNativeResponse (/Users/jthomassey/projects/ecom-shop-web/node_modules/follow-redirects/index.js:50:10)
    at Object.onceWrapper (events.js:277:13)
    at ClientRequest.emit (events.js:189:13)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:556:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:109:17)
    at Socket.socketOnData (_http_client.js:442:20)
```

This can be tested here : 
```
const http = require('http');
const https = require('https');
const axios = require('axios');

axios.get('http://www.photobox.fr', { httpAgent: http.Agent({ keepAlive:true }), httpsAgent: https.Agent({ keepAlive:true }) })
  .then(response => {
    console.log(response);
    console.log(response.headers);
  })
  .catch(error => {
    console.log(error);
  });
```

Axios delegate the redirection to the follow-redirect package which accept an option `agents` for both http and https agent see : https://github.com/follow-redirects/follow-redirects#per-request-options

* fix: Fixing subdomain handling on no_proxy (axios#2442)

* Add license badge (axios#2446)

MIT License badge added in README.md file

* Fixing Vulnerability A Fortify Scan finds a critical Cross-Site Scrip… (axios#2451)

* Fixing Vulnerability A Fortify Scan finds a critical Cross-Site Scripting

* use var insted of const

* Add error toJSON example (axios#2466)

* custom timeout prompt copy (axios#2275)

* style: ui

* feat: custom timeout txtx

* feat: custom timeout txtx

* Fixing missing words in docs template (axios#2259)

* Fix to prevent XSS, throw an error when the URL contains a JS script (axios#2464)

* Fixes issue where XSS scripts attacks were possible via the URL

* Fix error

* Move throwing error up

* Add specs and make regex cover more xss cases

* Update Webpack + deps, remove now unnecessary polyfills (axios#2410)

* Update deps

 * handles webpack 1 -> 4 migration

* remove promise helpers from dev files

assume `Promise` is available, or polyfilled by
the consumer

* Remove isArray util. `isArray` has good coverage, even
   in IE9. So lets remove the custom polyfill.

 https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/isArray

also resolves a few lint issues

* Remove trim util

String.protoype.trim has good coverage (including IE9)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim

Also, the http adapter already uses the native method.

* Change syntax to see if build passes (axios#2488)

* Change syntax to see if build passes

* Test commit

* Test with node 10

* Test adding all browsers in travis

* remove other browsers when running on travis

* Revert "Update Webpack + deps, remove now unnecessary polyfills" (axios#2479)

* Revert "Update Webpack + deps, remove now unnecessary polyfills (axios#2410)"

This reverts commit 189b34c.

* Fix build (axios#2496)

* Change syntax to see if build passes

* Test commit

* Test with node 10

* Test adding all browsers in travis

* remove other browsers when running on travis

* Update README.md (axios#2504)

* Adding Typescript HTTP method definition for LINK and UNLINK. (axios#2444)

* Update docs with no_proxy change, issue axios#2484 (axios#2513)

* Document fix (axios#2514)

* Adding options typings (axios#2341)

* Fix XSS logic that matched some valid urls (axios#2529)

* Fix XSS logic that matched some valid urls, e.g. "/one/?foo=bar", when it shouldn't match those

* Fix badge, use master branch (axios#2538)

* Remove dependency on is-buffer (axios#1816)

* Remove dependency on is-buffer from package.json

* Fix CI build failure (axios#2570)

* fixing Travis link (axios#2540)

* Remove 'includes' API, fix CI build failure (axios#2574)

* Remove 'includes' API, fix CI build failure

* fix: fix ignore set withCredentials false (axios#2582)

* Fixing invalid agent issue (axios#1904)

* If this place is false, it will report an error, so you should delete the useless code. (axios#2458)

* Fixing typo in CHANGELOG.md: s/Functionallity/Functionality (axios#2639)

* Releasing 0.19.1

* Fix link formatting in CHANGELOG.md to display PR number in parens as link (axios#2643)

* Remove unnecessary XSS check introduced by axios#2451 (axios#2679)

* Remove unnecessary XSS check introduced by axios#2451

* Remove test file of `isValidXss`

* Updating changlog for 0.19.2 release

* Releasing 0.19.2

* Revert `finally` as `then` (axios#2683)

Co-authored-by: Yasu Flores <carlosyasu91@gmail.com>

* chore: add `jsdelivr` and `unpkg` support (axios#2443)

* Fix merging of params (axios#2656)

* Name function to avoid ESLint func-names warning

* Switch params config to merge list and update tests

* Restore testing of both false and null

* Restore test cases for keys without defaults

* Include test for non-object values that aren't false-y.

* Compatible with follow-redirect aborts the request (axios#2689)

* Compatible with follow-redirect aborts the request

* Use the error code

* Fix tests in browsers (axios#2748)

* Fixing issue for HEAD method and gziped repsonse (axios#2666)

* Fixing unit test failure in Windows OS (axios#2601)

Co-authored-by: Xianming Zhong <chinesedfan@qq.com>

* Adding jsDelivr link in README (axios#1110)

* Adding jsDelivr link

* Add SRI

* Remove SRI

Co-authored-by: Yasu Flores <carlosyasu91@gmail.com>
Co-authored-by: Xianming Zhong <chinesedfan@qq.com>

* Adding responseEncoding to mergeConfig (axios#1745)

Co-authored-by: Xianming Zhong <chinesedfan@qq.com>

* Update ' sign to ` in proxy spec (axios#2778)

* Add `onUploadProgress` and `onDownloadProgress` are browser only (axios#2763)

Saw in axios#928 and axios#1966 that `onUploadProgress` and `onDownloadProgress` only work in the browser and was missing that from the README.

Co-authored-by: Xianming Zhong <chinesedfan@qq.com>

* Added Response header access instructions (axios#1901)

* Added Response header access instructions

* Added note about using bracket notation

* Include axios-hooks in ECOSYSTEM.md (axios#2003)

* Fixing CHANGELOG.md issue link (axios#2784)

* Add test for redirecting with too large response (axios#2695)

* Add independent `maxBodyLength` option (axios#2781)

* Add independent option to set the maximum size of the request body

* Remove maxBodyLength check

* Update README

* Assert for error code and message

* Adding option to disable automatic decompression (axios#2661)

* Adding ability to disable auto decompression

* Updating decompress documentation in README

* Fixing test\unit\adapters\http.js lint errors

* Adding test for disabling auto decompression

* Removing changes that fixed lint errors in tests

* Removing formating change to unit test

Co-authored-by: Xianming Zhong <chinesedfan@qq.com>

* Adding tests for method `options` type definitions (axios#1996)

Update tests.

Co-authored-by: Xianming Zhong <chinesedfan@qq.com>

* Allow PURGE method in typings (axios#2191)

Co-authored-by: Xianming Zhong <chinesedfan@qq.com>

* Fixing getting local files (file://) failed (axios#2470)

* fix issue axios#2416, axios#2396

* fix Eslint warn

* Modify judgment conditions

* add unit test

* update unit test

* update unit test

* Fixing 'progressEvent' type (axios#2851)

* Fix 'progressEvent' type

* Update axios.ts

* Updating documentation for usage form-data (axios#2805)

Closes axios#2049

Co-authored-by: Xianming Zhong <chinesedfan@qq.com>

* Update README.md about validateStatus (axios#2912)

Rewrote the comment from "Reject only if the status code is greater than or equal to 500" to "Resolve only if the status code is less than 500"

* Documentation update to clear up ambiguity in code examples (axios#2928)

* Made a adjustment to the documenation to clear up any ambiguity around the use of "fs". This should help clear up that the code examples with "fs" cannot be used on the client side.

Co-authored-by: Jay <jason.saayman@basebone.com>

* Add CDNJS version badge in README.md (axios#878)

This badge will show the version on CDNJS!

Co-authored-by: Jay <jasonsaayman@gmail.com>

* Fixing Cookie Helper with Asyc Components (axios#1105) (axios#1107)

Co-authored-by: Jay <jasonsaayman@gmail.com>

* Bug/allow header to contain http verb keys axios#1252 (axios#1258)

* Failing test for axios#1252

* Only delete header keys that match an HTTP verb if the value is a non-string

Co-authored-by: David Ko <david.ko@pvtmethod.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>

* Revert "Bug/allow header to contain http verb keys axios#1252 (axios#1258)" (axios#2977)

This reverts commit 920510b.

* fix 'Network Error' in react native android (axios#1487)

There is a bug in react native Android platform when using get method.  It will trigger a 'Network Error' when passing the requestData which is an empty string to request.send function. So if the  requestData is an empty string we can set it to null as well to fix the bug.

Co-authored-by: Jay <jasonsaayman@gmail.com>

* Fixing password encoding with special characters in basic authentication (axios#1492)

* Fixing password encoding with special characters in basic authentication

* Adding test to check if password with non-Latin1 characters pass

Co-authored-by: petr.mares <petr.mares@linecorp.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>

* Fixing special char encoding (axios#1671)

* removing @ character from replacement list since it is a reserved character

* Updating buildURL test to not include the @ character

* Removing console logs

Co-authored-by: Jay <jasonsaayman@gmail.com>

* Fixing default transformRequest with buffer pools (axios#1511)

* Fixing default transformRequest of TypedArrays with buffer pools

A buffer pool is a large ArrayBuffer of a preset size used with a TypedArray
such as Uint8Array. This can speed up performance when constructing TypedArrays
of unknown sizes, and is a technique used by Node with their Buffers, and
by libraries like dcodeIO/protobuf.js.

Because the ArrayBuffer of such a TypedArray is much longer than the array
itself, using `.buffer` to transform the array before POSTing results in
sending a request with many extraneous empty bytes, which is wastefule and may
result in unexpected behavior.

Using `.slice()` before grabbing the ArrayBuffer fixes the problem by creating
a new TypedArray with a buffer of the expected length.

Signed-off-by: Zac Delventhal <delventhalz@gmail.com>

* Adding test for using default transformRequest with buffer pools

Adds a new test to the default transformRequest, running it on a
Uint8Array with a byte length of 16, but a much larger ArrayBuffer
with a byte length of 256. The transformed array should not include
any extra bytes, and so must have a byte length of just 16.

Signed-off-by: Zac Delventhal <delventhalz@gmail.com>

Co-authored-by: Zac Delventhal <zac@bitwise.io>
Co-authored-by: Jay <jasonsaayman@gmail.com>

* Include swagger-taxos-codegen in ECOSYSTEM.md (axios#2162)

Co-authored-by: Jay <jasonsaayman@gmail.com>

* Fixing an issue that type 'null' is not assignable to validateStatus (axios#2773)

Co-authored-by: Xianming Zhong <chinesedfan@qq.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>

* Update README.md (axios#2887)

Small change to the data attribute doc of the config. A request body can also be set for DELETE methods but this wasn't mentioned in the documentation (it only mentioned POST, PUT and PATCH). Took my some 10-20 minutes until I realized that I don't need to manipulate the request body with transformRequest in the case of DELETE.

Co-authored-by: Jay <jasonsaayman@gmail.com>

* Remove axios.all() and axios.spread() from Readme.md (axios#2727)

* Updating Readme.md
- remove axios.all(), axios.spread()

* Updating Readme.md
- replace example
- axios.all() -> Promise.all()
- axios.spread(function (acct, perms)) -> function (acct, perms)
- add deprecated mark

* Update README.md

Make changes after review

Co-authored-by: Jay <jasonsaayman@gmail.com>

* Revert "Fixing default transformRequest with buffer pools (axios#1511)" (axios#2982)

This reverts commit a9a3b5e.

* Fixing overwrite Blob/File type as Content-Type in browser. (axios#1773)

Co-authored-by: Jay <jasonsaayman@gmail.com>

* Allow opening examples in Gitpod (axios#1958)

Co-authored-by: Emily Morehouse <emilyemorehouse@gmail.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>

* Include axios-data-unpacker in ECOSYSTEM.md (axios#2080)

Co-authored-by: Jay <jasonsaayman@gmail.com>

* docs(): Detailed config options environment. (axios#2088)

* docs(): Detailed config options environment.

* Update README.md

Co-authored-by: Jay <jasonsaayman@gmail.com>

* Adding console log on sandbox server startup (axios#2210)

* Adding console log on sandbox server startup

* Update server.js

Add server error handeling

* Update server.js

Better error message, remove retry.

Co-authored-by: Philippe Recto <precto1285@gmal.com>
Co-authored-by: Felipe Martins <felipewmartins@gmail.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>

* Add test with Node.js 12 (axios#2860)

* test with Node.js 12

* test with latest

Co-authored-by: Jay <jasonsaayman@gmail.com>

* Allow unsetting headers by passing null (axios#382) (axios#1845)

Co-authored-by: Jay <jasonsaayman@gmail.com>

* Refactor mergeConfig without utils.deepMerge (axios#2844)

* Adding failing test

* Fixing axios#2587 default custom config persisting

* Adding Concat keys and filter duplicates

* Fixed value from CPE

* update for review feedbacks

* no deepMerge

* only merge between plain objects

* fix rename

* always merge config by mergeConfig

* extract function mergeDeepProperties

* refactor mergeConfig with all keys, and add special logic for validateStatus

* add test for resetting headers

* add lots of tests and fix a bug

* should not inherit `data`

* use simple toString

* revert axios#1845

Co-authored-by: David Tanner <david.tanner@lifeomic.com>
Co-authored-by: Justin Beckwith <justin.beckwith@gmail.com>

* Replace 'blacklist' with 'blocklist' (axios#3006)

* Add GitHub actions to close invalid issues (axios#3022)

* add close actions

* fix with checkout

* update issue templates

* add reminder

* update close message

* Add GitHub actions to close stale issues/prs (axios#3029)

* prepare stale actions

* update messages

* Add exempt labels and lighten up comments

Co-authored-by: Jay <jasonsaayman@gmail.com>

* Update close-issues.yml (axios#3031)

* Update close-issues.yml

Update close message to read better 😄

* Fix use of quotations

Use single quotes as per other .yml files

* Remove user name form message

* Add days and change name to work (axios#3035)

* Fix stale bot config (axios#3049)

* fix stale bot config

* fix multiple lines

* add table of content (preview) (axios#3050)

* add toc (preview)

* remove toc in toc

Signed-off-by: Moni <usmoni@gmail.com>

* fix sublinks

* fix indentation

* remove redundant table links

* update caps and indent

* remove axios

Co-authored-by: Moni <usmoni@gmail.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>

* Adding support for URLSearchParams in node (axios#1900)

* Adding support for URLSearchParams in node

* Remove un-needed code

* Update utils.js

* Make changes as suggested

Co-authored-by: Kamil Posiadala <kamil.posiadala@codecentric.de>
Co-authored-by: Jay <jasonsaayman@gmail.com>

Co-authored-by: Cody Chan <int64ago@gmail.com>
Co-authored-by: Dmitriy Eroshenko <airs0urce0@gmail.com>
Co-authored-by: Emily Morehouse <emilyemorehouse@gmail.com>
Co-authored-by: grumblerchester <grumblerchester@users.noreply.github.com>
Co-authored-by: Weffe <rogelio_negrete@live.com>
Co-authored-by: Suman Lama <lamasuman2@gmail.com>
Co-authored-by: Gadzhi Gadzhiev <resuremade@gmail.com>
Co-authored-by: Tyler Breisacher <tbreisacher@hustle.com>
Co-authored-by: Omar Cai <xcqvmywoj@yahoo.com.tw>
Co-authored-by: Josh McCarty <43768310+joshomccarty@users.noreply.github.com>
Co-authored-by: Victor Hermes <me.victorhermes@gmail.com>
Co-authored-by: drawski <d.rawski@gmail.com>
Co-authored-by: 유용우 / CX <uyu423@gmail.com>
Co-authored-by: Renan <renancaraujo@users.noreply.github.com>
Co-authored-by: Daniela Borges Matos de Carvalho <alunassertiva@gmail.com>
Co-authored-by: xlaguna <50924665+xlaguna@users.noreply.github.com>
Co-authored-by: Takahiro Ikeda <ikeadless@gmail.com>
Co-authored-by: Felipe Martins <felipewmartins@gmail.com>
Co-authored-by: multicolaure <43094923+multicolaure@users.noreply.github.com>
Co-authored-by: Denis Sikuler <progwork@yandex.com>
Co-authored-by: Michael Foss <michael@mikefoss.com>
Co-authored-by: DIO <dhrubesh97@gmail.com>
Co-authored-by: bushuai <ibushuai@gmail.com>
Co-authored-by: Rafael Renan Pacheco <rafael.renan.pacheco@gmail.com>
Co-authored-by: Avindra Goolcharan <aavindraa@gmail.com>
Co-authored-by: Sagar Acharya <sagarach65@gmail.com>
Co-authored-by: James George <jamesgeorge998001@gmail.com>
Co-authored-by: Lucas <33911520+portolucas@users.noreply.github.com>
Co-authored-by: Vamp <25523682+the-vampiire@users.noreply.github.com>
Co-authored-by: Fabio Aiello <heloflyer@hotmail.com>
Co-authored-by: Joshua Melvin <joshua.melvin@outlook.com>
Co-authored-by: Ahmed Tarek <ahmed.tokyo1@gmail.com>
Co-authored-by: Ya Hui Liang(Ryou) <46517115@qq.com>
Co-authored-by: Jihwan Oh <fureweb.com@gmail.com>
Co-authored-by: Tiago Rodrigues <tmcrodrigues@gmail.com>
Co-authored-by: Jeremie Thomassey <44839746+JitixPhotobox@users.noreply.github.com>
Co-authored-by: Maskedman99 <31368194+Maskedman99@users.noreply.github.com>
Co-authored-by: Wataru <taare-xxx09@ezweb.ne.jp>
Co-authored-by: Yasu Flores <carlosyasu91@gmail.com>
Co-authored-by: IVLIU <liupyliupy@outlook.com>
Co-authored-by: Crhistian Ramirez <16483662+crhistianramirez@users.noreply.github.com>
Co-authored-by: Harshit Singh <harshit.singh1101@gmail.com>
Co-authored-by: Marlon Barcarol <marlon.barcarol@gmail.com>
Co-authored-by: Luke Policinski <Luke@LukePOLO.com>
Co-authored-by: Angelos Chalaris <chalarangelo@gmail.com>
Co-authored-by: Alanscut <948467222@qq.com>
Co-authored-by: ZhaoXC <xchunzhao@gmail.com>
Co-authored-by: Michael Shin <mshin@godaddy.com>
Co-authored-by: 不才 <1450941858@qq.com>
Co-authored-by: Malik Dirim <github@malikdirim.de>
Co-authored-by: Emily Morehouse <emily@cuttlesoft.com>
Co-authored-by: Xianming Zhong <chinesedfan@qq.com>
Co-authored-by: JounQin <admin@1stg.me>
Co-authored-by: Jonathan Sharpe <j.r.sharpe@gmail.com>
Co-authored-by: Nikita Galkin <nikita@galk.in>
Co-authored-by: jennynju <46782518+jennynju@users.noreply.github.com>
Co-authored-by: Lukas Drgon <lukas.drgon@gmail.com>
Co-authored-by: Thibault Ehrhart <1208424+ehrhart@users.noreply.github.com>
Co-authored-by: Jimmy Liao <52391190+jimmy-liao-gogoro@users.noreply.github.com>
Co-authored-by: Ian Wijma <ian@wij.ma>
Co-authored-by: Alexandru Ungureanu <khakcarot@gmail.com>
Co-authored-by: Simone Busoli <simone.busoli@gmail.com>
Co-authored-by: Fonger <5862369+Fonger@users.noreply.github.com>
Co-authored-by: Gustavo López <gualopezb@gmail.com>
Co-authored-by: Spencer von der Ohe <s.vonderohe40@gmail.com>
Co-authored-by: Motonori Iwata <121048+iwata@users.noreply.github.com>
Co-authored-by: Alan Wang <wp_scut@163.com>
Co-authored-by: Benny Neugebauer <bn@bennyn.de>
Co-authored-by: Remco Haszing <remcohaszing@gmail.com>
Co-authored-by: hexaez <45806662+hexaez@users.noreply.github.com>
Co-authored-by: Jay <jasonsaayman@gmail.com>
Co-authored-by: Jay <jason.saayman@basebone.com>
Co-authored-by: Samina Fu <sufuf3@gmail.com>
Co-authored-by: Ryan Bown <rbown@niftee.com.au>
Co-authored-by: David Ko <david.ko@velvetreactor.com>
Co-authored-by: David Ko <david.ko@pvtmethod.com>
Co-authored-by: huangzuizui <huangzuizui@gmail.com>
Co-authored-by: Petr Mares <petr@mares.tw>
Co-authored-by: petr.mares <petr.mares@linecorp.com>
Co-authored-by: David <cygnidavid@gmail.com>
Co-authored-by: Zac Delventhal <delventhalz@gmail.com>
Co-authored-by: Zac Delventhal <zac@bitwise.io>
Co-authored-by: Michał Zarach <michal.m.zarach@gmail.com>
Co-authored-by: Taemin Shin <cprayer13@gmail.com>
Co-authored-by: marcinx <mail@marcinx.com>
Co-authored-by: Taegyeoung Oh <otk1090@naver.com>
Co-authored-by: George Cheng <Gerhut@GMail.com>
Co-authored-by: Sven Efftinge <sven.efftinge@typefox.io>
Co-authored-by: Anubhav Srivastava <anubhav.srivastava00@gmail.com>
Co-authored-by: jeffjing <zgayjjf@qq.com>
Co-authored-by: Philippe Recto <33725746+precto1285@users.noreply.github.com>
Co-authored-by: Philippe Recto <precto1285@gmal.com>
Co-authored-by: Martti Laine <martti@codeclown.net>
Co-authored-by: David Tanner <david.tanner@lifeomic.com>
Co-authored-by: Justin Beckwith <justin.beckwith@gmail.com>
Co-authored-by: rockcs1992 <chengshi1219@gmail.com>
Co-authored-by: Frostack <soulburn007@gmail.com>
Co-authored-by: Moni <usmoni@gmail.com>
Co-authored-by: Kamil Posiadała <3dcreator.pl@gmail.com>
Co-authored-by: Kamil Posiadala <kamil.posiadala@codecentric.de>
  • Loading branch information
Show file tree
Hide file tree
Showing 54 changed files with 1,536 additions and 423 deletions.
19 changes: 12 additions & 7 deletions .github/ISSUE_TEMPLATE.md
@@ -1,6 +1,4 @@
<!-- Click "Preview" for a more readable version -->

#### Instructions
<!-- Click "Preview" for a more readable version --
Please read and follow the instructions before submitting an issue:
Expand All @@ -9,9 +7,12 @@ Please read and follow the instructions before submitting an issue:
- If you aren't sure that the issue is caused by axios or you just need help, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/axios) or [our chat](https://gitter.im/mzabriskie/axios).
- If you're reporting a bug, ensure it isn't already fixed in the latest axios version.
- If you need a new feature there's a chance it's already implemented in a [library](https://github.com/axios/axios/blob/master/ECOSYSTEM.md) or you can implement it using [interceptors](https://github.com/axios/axios#interceptors).
- Don't remove any title of the issue template, or it will be treated as invalid by the bot.
**⚠️👆 Delete the instructions before submitting the issue 👆⚠️**
-->

#### Summary

Describe your issue here, including as much detail as necessary.
Expand All @@ -20,7 +21,11 @@ If you're reporting a bug, include the relevant code and stack traces to debug i

If you're requesting a feature, include some context and examples of code using it.

#### Context

- axios version: *e.g.: v0.16.0*
- Environment: *e.g.: node v6.9.4, chrome 54, windows 7*
#### Environment
- Axios Version [e.g. 0.18.0]
- Adapter [e.g. XHR/HTTP]
- Browser [e.g. Chrome, Safari]
- Browser Version [e.g. 22]
- Node.js Version [e.g. 13.0.1]
- OS: [e.g. iOS 12.1.0, OSX 10.13.4]
- Additional Library Versions [e.g. React 16.7, React Native 0.58.0]
46 changes: 46 additions & 0 deletions .github/ISSUE_TEMPLATE/---bug-report.md
@@ -0,0 +1,46 @@
---
name: "\U0001F41E Bug Report"
about: Report a reproducible bug
title: ''
labels: 'status:possible bug'
assignees: ''

---

<!-- Click "Preview" for a more readable version --
Please read and follow the instructions before submitting an issue:
- Read all our documentation, especially the [README](https://github.com/axios/axios/blob/master/README.md). It may contain information that helps you solve your issue.
- Ensure your issue isn't already [reported](https://github.com/axios/axios/issues?utf8=%E2%9C%93&q=is%3Aissue).
- If you aren't sure that the issue is caused by Axios or you just need help, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/axios) or [our chat](https://gitter.im/mzabriskie/axios).
- If you're reporting a bug, ensure it isn't already fixed in the latest Axios version.
- Don't remove any title of the issue template, or it will be treated as invalid by the bot.
⚠️👆 Feel free to these instructions before submitting the issue 👆⚠️
-->

#### Describe the bug
A clear and concise description of what the bug is. **If your problem is not a bug, please file under Support or Usage Question**

#### To Reproduce
Code snippet to reproduce, ideally that will work by pasting into something like https://npm.runkit.com/axios, a hosted solution, or a repository that illustrates the issue. **If your problem is not reproducible, please file under Support or Usage Question**

```js
// Example code here
```

#### Expected behavior
A clear and concise description of what you expected to happen.

#### Environment
- Axios Version [e.g. 0.18.0]
- Adapter [e.g. XHR/HTTP]
- Browser [e.g. Chrome, Safari]
- Browser Version [e.g. 22]
- Node.js Version [e.g. 13.0.1]
- OS: [e.g. iOS 12.1.0, OSX 10.13.4]
- Additional Library Versions [e.g. React 16.7, React Native 0.58.0]

#### Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
26 changes: 26 additions & 0 deletions .github/ISSUE_TEMPLATE/---documentation.md
@@ -0,0 +1,26 @@
---
name: "\U0001F4DA Documentation"
about: Report an error or area that needs clarification
title: ''
labels: 'type:documentation'
assignees: ''

---

<!-- Click "Preview" for a more readable version --
If you found an area that needs clarification, feel free to open a PR or list the section/content that could be improved below
Don't remove any title of the issue template, or it will be treated as invalid by the bot.
⚠️👆 Feel free to refer to these instructions before submitting the issue 👆⚠️
-->

#### Section/Content To Improve
Quote or link to section

#### Suggested Improvement
Identify what is confusing or incorrect and what could make it better

#### Relevant File(s)
[e.g. README.md]
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/---feature-request.md
@@ -0,0 +1,33 @@
---
name: "✨ Feature Request"
about: Suggest an idea or feature
title: ''
labels: 'type:feature'
assignees: ''

---

<!-- Click "Preview" for a more readable version --
Please read and follow the instructions before submitting an issue:
- Read all our documentation, especially the [README](https://github.com/axios/axios/blob/master/README.md). It may contain information that helps you solve your issue.
- Ensure your issue isn't already [reported](https://github.com/axios/axios/issues?utf8=%E2%9C%93&q=is%3Aissue).
- If you aren't sure that the issue is caused by Axios or you just need help, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/axios) or [our chat](https://gitter.im/mzabriskie/axios).
- If you're reporting a bug, ensure it isn't already fixed in the latest Axios version.
- Don't remove any title of the issue template, or it will be treated as invalid by the bot.
⚠️👆 Feel free to these instructions before submitting the issue 👆⚠️
-->

#### Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

#### Describe the solution you'd like
A clear and concise description of what you want to happen.

#### Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

#### Additional context
Add any other context or screenshots about the feature request here.
46 changes: 46 additions & 0 deletions .github/ISSUE_TEMPLATE/---support-or-usage-question.md
@@ -0,0 +1,46 @@
---
name: "\U0001F914 Support or Usage Question"
about: Get help using Axios
title: ''
labels: 'type:question'
assignees: ''

---

<!-- Click "Preview" for a more readable version --
Please read and follow the instructions before submitting an issue:
- Read all our documentation, especially the [README](https://github.com/axios/axios/blob/master/README.md). It may contain information that helps you solve your issue.
- Ensure your issue isn't already [reported](https://github.com/axios/axios/issues?utf8=%E2%9C%93&q=is%3Aissue).
- If you aren't sure that the issue is caused by Axios or you just need help, please use [Stack Overflow](https://stackoverflow.com/questions/tagged/axios) or [our chat](https://gitter.im/mzabriskie/axios).
- If you're reporting a bug, ensure it isn't already fixed in the latest Axios version.
- Don't remove any title of the issue template, or it will be treated as invalid by the bot.
⚠️👆 Feel free to these instructions before submitting the issue 👆⚠️
-->

#### Describe the issue
A clear and concise description of what the issue is.

#### Example Code
Code snippet to illustrate your question

```js
// Example code here
```

#### Expected behavior, if applicable
A clear and concise description of what you expected to happen.

#### Environment
- Axios Version [e.g. 0.18.0]
- Adapter [e.g. XHR/HTTP]
- Browser [e.g. Chrome, Safari]
- Browser Version [e.g. 22]
- Node.js Version [e.g. 13.0.1]
- OS: [e.g. iOS 12.1.0, OSX 10.13.4]
- Additional Library Versions [e.g. React 16.7, React Native 0.58.0]

#### Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
17 changes: 17 additions & 0 deletions .github/workflows/close-issues.yml
@@ -0,0 +1,17 @@
name: 'Close Invalid Issues'

on:
issues:
types: [opened]

jobs:
auto_close_issues:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Automatically close issues that don't follow the issue template
uses: lucasbento/auto-close-issues@v1.0.2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-close-message: 'Hello! :wave: \n\nThis issue is being automatically closed because it does not follow the issue template. Please read the issue template carefully and follow all of the instructions when opening a new issue. \n\nThanks'
31 changes: 31 additions & 0 deletions .github/workflows/stale.yml
@@ -0,0 +1,31 @@
name: 'Close Stale'

on:
schedule:
- cron: '0 0 * * 1'

jobs:
stale:
runs-on: ubuntu-latest
steps:
- name: Close Stale Issues
uses: actions/stale@v3
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
stale-issue-message: |
Hello! :wave:
This issue is being automatically marked as stale because it has not been updated in a while. Please confirm that the issue is still present and reproducible. If no updates or new comments are received the issue will be closed in a few days.
Thanks.
stale-pr-message: |
Hello! :wave:
This pull request is being automatically marked as stale because it has not been updated in a while. Please confirm that the issue is still present and reproducible. If no updates or new comments are received the pull request will be closed in a few days.
Thanks.
stale-issue-label: 'status:stale'
stale-pr-label: 'status:stale'
only-labels: 'status:more info needed'
days-before-stale: 30
days-before-close: 14
8 changes: 4 additions & 4 deletions .travis.yml
@@ -1,13 +1,13 @@
services:
- xvfb
language: node_js
node_js:
- 10
- 12
- node
email:
on_failure: change
on_success: never
before_script:
- "export DISPLAY=:99.0"
- "sh -e /etc/init.d/xvfb start"
- sleep 3 # give xvfb some time to start
after_success:
- npm run coveralls
env:
Expand Down
100 changes: 100 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,105 @@
# Changelog

### 0.19.2 (Jan 20, 2020)

- Remove unnecessary XSS check ([#2679](https://github.com/axios/axios/pull/2679)) (see ([#2646](https://github.com/axios/axios/issues/2646)) for discussion)

### 0.19.1 (Jan 7, 2020)

Fixes and Functionality:

- Fixing invalid agent issue ([#1904](https://github.com/axios/axios/pull/1904))
- Fix ignore set withCredentials false ([#2582](https://github.com/axios/axios/pull/2582))
- Delete useless default to hash ([#2458](https://github.com/axios/axios/pull/2458))
- Fix HTTP/HTTPs agents passing to follow-redirect ([#1904](https://github.com/axios/axios/pull/1904))
- Fix ignore set withCredentials false ([#2582](https://github.com/axios/axios/pull/2582))
- Fix CI build failure ([#2570](https://github.com/axios/axios/pull/2570))
- Remove dependency on is-buffer from package.json ([#1816](https://github.com/axios/axios/pull/1816))
- Adding options typings ([#2341](https://github.com/axios/axios/pull/2341))
- Adding Typescript HTTP method definition for LINK and UNLINK. ([#2444](https://github.com/axios/axios/pull/2444))
- Update dist with newest changes, fixes Custom Attributes issue
- Change syntax to see if build passes ([#2488](https://github.com/axios/axios/pull/2488))
- Update Webpack + deps, remove now unnecessary polyfills ([#2410](https://github.com/axios/axios/pull/2410))
- Fix to prevent XSS, throw an error when the URL contains a JS script ([#2464](https://github.com/axios/axios/pull/2464))
- Add custom timeout error copy in config ([#2275](https://github.com/axios/axios/pull/2275))
- Add error toJSON example ([#2466](https://github.com/axios/axios/pull/2466))
- Fixing Vulnerability A Fortify Scan finds a critical Cross-Site Scrip… ([#2451](https://github.com/axios/axios/pull/2451))
- Fixing subdomain handling on no_proxy ([#2442](https://github.com/axios/axios/pull/2442))
- Make redirection from HTTP to HTTPS work ([#2426](https://github.com/axios/axios/pull/2426)) and ([#2547](https://github.com/axios/axios/pull/2547))
- Add toJSON property to AxiosError type ([#2427](https://github.com/axios/axios/pull/2427))
- Fixing socket hang up error on node side for slow response. ([#1752](https://github.com/axios/axios/pull/1752))
- Alternative syntax to send data into the body ([#2317](https://github.com/axios/axios/pull/2317))
- Fixing custom config options ([#2207](https://github.com/axios/axios/pull/2207))
- Fixing set `config.method` after mergeConfig for Axios.prototype.request ([#2383](https://github.com/axios/axios/pull/2383))
- Axios create url bug ([#2290](https://github.com/axios/axios/pull/2290))
- Do not modify config.url when using a relative baseURL (resolves [#1628](https://github.com/axios/axios/issues/1098)) ([#2391](https://github.com/axios/axios/pull/2391))
- Add typescript HTTP method definition for LINK and UNLINK ([#2444](https://github.com/axios/axios/pull/2444))

Internal:

- Revert "Update Webpack + deps, remove now unnecessary polyfills" ([#2479](https://github.com/axios/axios/pull/2479))
- Order of if/else blocks is causing unit tests mocking XHR. ([#2201](https://github.com/axios/axios/pull/2201))
- Add license badge ([#2446](https://github.com/axios/axios/pull/2446))
- Fix travis CI build [#2386](https://github.com/axios/axios/pull/2386)
- Fix cancellation error on build master. #2290 #2207 ([#2407](https://github.com/axios/axios/pull/2407))

Documentation:

- Fixing typo in CHANGELOG.md: s/Functionallity/Functionality ([#2639](https://github.com/axios/axios/pull/2639))
- Fix badge, use master branch ([#2538](https://github.com/axios/axios/pull/2538))
- Fix typo in changelog [#2193](https://github.com/axios/axios/pull/2193)
- Document fix ([#2514](https://github.com/axios/axios/pull/2514))
- Update docs with no_proxy change, issue #2484 ([#2513](https://github.com/axios/axios/pull/2513))
- Fixing missing words in docs template ([#2259](https://github.com/axios/axios/pull/2259))
- 🐛Fix request finally documentation in README ([#2189](https://github.com/axios/axios/pull/2189))
- updating spelling and adding link to docs ([#2212](https://github.com/axios/axios/pull/2212))
- docs: minor tweak ([#2404](https://github.com/axios/axios/pull/2404))
- Update response interceptor docs ([#2399](https://github.com/axios/axios/pull/2399))
- Update README.md ([#2504](https://github.com/axios/axios/pull/2504))
- Fix word 'sintaxe' to 'syntax' in README.md ([#2432](https://github.com/axios/axios/pull/2432))
- upadating README: notes on CommonJS autocomplete ([#2256](https://github.com/axios/axios/pull/2256))
- Fix grammar in README.md ([#2271](https://github.com/axios/axios/pull/2271))
- Doc fixes, minor examples cleanup ([#2198](https://github.com/axios/axios/pull/2198))

### 0.19.0 (May 30, 2019)

Fixes and Functionality:

- Added support for no_proxy env variable ([#1693](https://github.com/axios/axios/pull/1693/files)) - Chance Dickson
- Unzip response body only for statuses != 204 ([#1129](https://github.com/axios/axios/pull/1129)) - drawski
- Destroy stream on exceeding maxContentLength (fixes [#1098](https://github.com/axios/axios/issues/1098)) ([#1485](https://github.com/axios/axios/pull/1485)) - Gadzhi Gadzhiev
- Makes Axios error generic to use AxiosResponse ([#1738](https://github.com/axios/axios/pull/1738)) - Suman Lama
- Fixing Mocha tests by locking follow-redirects version to 1.5.10 ([#1993](https://github.com/axios/axios/pull/1993)) - grumblerchester
- Allow uppercase methods in typings. ([#1781](https://github.com/axios/axios/pull/1781)) - Ken Powers
- Fixing building url with hash mark ([#1771](https://github.com/axios/axios/pull/1771)) - Anatoly Ryabov
- This commit fix building url with hash map (fragment identifier) when parameters are present: they must not be added after `#`, because client cut everything after `#`
- Preserve HTTP method when following redirect ([#1758](https://github.com/axios/axios/pull/1758)) - Rikki Gibson
- Add `getUri` signature to TypeScript definition. ([#1736](https://github.com/axios/axios/pull/1736)) - Alexander Trauzzi
- Adding isAxiosError flag to errors thrown by axios ([#1419](https://github.com/axios/axios/pull/1419)) - Ayush Gupta

Internal:

- Fixing .eslintrc without extension ([#1789](https://github.com/axios/axios/pull/1789)) - Manoel
- Fix failing SauceLabs tests by updating configuration - Emily Morehouse
- Add issue templates - Emily Morehouse

Documentation:

- Consistent coding style in README ([#1787](https://github.com/axios/axios/pull/1787)) - Ali Servet Donmez
- Add information about auth parameter to README ([#2166](https://github.com/axios/axios/pull/2166)) - xlaguna
- Add DELETE to list of methods that allow data as a config option ([#2169](https://github.com/axios/axios/pull/2169)) - Daniela Borges Matos de Carvalho
- Update ECOSYSTEM.md - Add Axios Endpoints ([#2176](https://github.com/axios/axios/pull/2176)) - Renan
- Add r2curl in ECOSYSTEM ([#2141](https://github.com/axios/axios/pull/2141)) - 유용우 / CX
- Update README.md - Add instructions for installing with yarn ([#2036](https://github.com/axios/axios/pull/2036)) - Victor Hermes
- Fixing spacing for README.md ([#2066](https://github.com/axios/axios/pull/2066)) - Josh McCarty
- Update README.md. - Change `.then` to `.finally` in example code ([#2090](https://github.com/axios/axios/pull/2090)) - Omar Cai
- Clarify what values responseType can have in Node ([#2121](https://github.com/axios/axios/pull/2121)) - Tyler Breisacher
- docs(ECOSYSTEM): add axios-api-versioning ([#2020](https://github.com/axios/axios/pull/2020)) - Weffe
- It seems that `responseType: 'blob'` doesn't actually work in Node (when I tried using it, response.data was a string, not a Blob, since Node doesn't have Blobs), so this clarifies that this option should only be used in the browser
- Update README.md. - Add Querystring library note ([#1896](https://github.com/axios/axios/pull/1896)) - Dmitriy Eroshenko
- Add react-hooks-axios to Libraries section of ECOSYSTEM.md ([#1925](https://github.com/axios/axios/pull/1925)) - Cody Chan
- Clarify in README that default timeout is 0 (no timeout) ([#1750](https://github.com/axios/axios/pull/1750)) - Ben Standefer

### 0.19.0-beta.1 (Aug 9, 2018)

**NOTE:** This is a beta version of this release. There may be functionality that is broken in
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Expand Up @@ -17,11 +17,11 @@ Commit messages should be verb based, using the following pattern:

### Testing

Please update the tests to reflect your code changes. Pull requests will not be accepted if they are failing on [Travis CI](https://travis-ci.org/mzabriskie/axios).
Please update the tests to reflect your code changes. Pull requests will not be accepted if they are failing on [Travis CI](https://travis-ci.org/axios/axios).

### Documentation

Please update the docs accordingly so that there are no discrepencies between the API and the documentation.
Please update the [docs](README.md) accordingly so that there are no discrepancies between the API and the documentation.

### Developing

Expand Down
4 changes: 2 additions & 2 deletions COOKBOOK.md
@@ -1,8 +1,8 @@
# Cookbook

In an effort to keep axios as light weight as possible, and to avoid a rats nest of code for supporting every possible integration, it is often necessary to say no to feature requests. This doesn't mean that those use cases aren't legitimate, but rather that they are easily supported by augmenting axios with other libraries.
This cookbook contains recipes for some commonly requested features.

The following are the recipes for some of the commonly requested features.
In order to keep axios as lightweight as possible, it is often necessary to say no to feature requests. Many of these use cases can be supported by augmenting axios with other libraries.

### Promise.prototype.done

Expand Down

0 comments on commit 6e0ae4d

Please sign in to comment.