Skip to content

Releases: axios/axios

v0.21.4

06 Sep 15:36
66c4602
Compare
Choose a tag to compare

Fixes and Functionality:

  • Fixing JSON transform when data is stringified. Providing backward compatibility and complying to the JSON RFC standard (#4020)

Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:

v0.21.3

04 Sep 19:02
Compare
Choose a tag to compare

Fixes and Functionality:

  • Fixing response interceptor not being called when request interceptor is attached (#4013)

Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:

v0.21.2

04 Sep 10:19
Compare
Choose a tag to compare

Fixes and Functionality:

  • Updating axios requests to be delayed by pre-emptive promise creation (#2702)
  • Adding "synchronous" and "runWhen" options to interceptors api (#2702)
  • Updating of transformResponse (#3377)
  • Adding ability to omit User-Agent header (#3703)
  • Adding multiple JSON improvements (#3688, #3763)
  • Fixing quadratic runtime and extra memory usage when setting a maxContentLength (#3738)
  • Adding parseInt to config.timeout (#3781)
  • Adding custom return type support to interceptor (#3783)
  • Adding security fix for ReDoS vulnerability (#3980)

Internal and Tests:

  • Updating build dev dependancies (#3401)
  • Fixing builds running on Travis CI (#3538)
  • Updating follow rediect version (#3694, #3771)
  • Updating karma sauce launcher to fix failing sauce tests (#3712, #3717)
  • Updating content-type header for application/json to not contain charset field, according do RFC 8259 (#2154)
  • Fixing tests by bumping karma-sauce-launcher version (#3813)
  • Changing testing process from Travis CI to GitHub Actions (#3938)

Documentation:

  • Updating documentation around the use of AUTH_TOKEN with multiple domain endpoints (#3539)
  • Remove duplication of item in changelog (#3523)
  • Fixing gramatical errors (#2642)
  • Fixing spelling error (#3567)
  • Moving gitpod metion (#2637)
  • Adding new axios documentation website link (#3681, #3707)
  • Updating documentation around dispatching requests (#3772)
  • Adding documentation for the type guard isAxiosError (#3767)
  • Adding explanation of cancel token (#3803)
  • Updating CI status badge (#3953)
  • Fixing errors with JSON documentation (#3936)
  • Fixing README typo under Request Config (#3825)
  • Adding axios-multi-api to the ecosystem file (#3817)
  • Adding SECURITY.md to properly disclose security vulnerabilities (#3981)

Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:

v0.21.1

04 Jan 15:04
v0.21.1
a64050a
Compare
Choose a tag to compare

Fixes and Functionality:

  • Hotfix: Prevent SSRF (#3410)
  • Protocol not parsed when setting proxy config from env vars (#3070)
  • Updating axios in types to be lower case (#2797)
  • Adding a type guard for AxiosError (#2949)

Internal and Tests:

  • Remove the skipping of the socket http test (#3364)
  • Use different socket for Win32 test (#3375)

Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:

v0.21.0

23 Oct 19:05
v0.21.0
94ca24b
Compare
Choose a tag to compare

Fixes and Functionality:

  • Fixing requestHeaders.Authorization (#3287)
  • Fixing node types (#3237)
  • Fixing axios.delete ignores config.data (#3282)
  • Revert "Fixing overwrite Blob/File type as Content-Type in browser. (#1773)" (#3289)
  • Fixing an issue that type 'null' and 'undefined' is not assignable to validateStatus when typescript strict option is enabled (#3200)

Internal and Tests:

  • Lock travis to not use node v15 (#3361)

Documentation:

  • Fixing simple typo, existant -> existent (#3252)
  • Fixing typos (#3309)

Huge thanks to everyone who contributed to this release via code (authors listed below) or via reviews and triaging on GitHub:

v0.20.0

21 Aug 03:15
v0.20.0
0d87655
Compare
Choose a tag to compare

Release of 0.20.0-pre as a full release with no other changes.

v0.20.0-0

15 Jul 16:13
v0.20.0-0
ffea034
Compare
Choose a tag to compare
v0.20.0-0 Pre-release
Pre-release

Fixes and Functionality:

  • Fixing response with utf-8 BOM can not parse to json (#2419)
    • fix: remove byte order marker (UTF-8 BOM) when transform response
    • fix: remove BOM only utf-8
    • test: utf-8 BOM
    • fix: incorrect param name
  • Refactor mergeConfig without utils.deepMerge (#2844)
    • Adding failing test
    • Fixing #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
  • Fixing overwrite Blob/File type as Content-Type in browser. (#1773)
  • Fixing an issue that type 'null' is not assignable to validateStatus (#2773)
  • Fixing special char encoding (#1671)
    • removing @ character from replacement list since it is a reserved character
    • Updating buildURL test to not include the @ character
    • Removing console logs
  • Fixing password encoding with special characters in basic authentication (#1492)
    • Fixing password encoding with special characters in basic authentication
    • Adding test to check if password with non-Latin1 characters pass
  • Fixing 'Network Error' in react native android (#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.
  • Fixing Cookie Helper with Asyc Components (#1105) (#1107)
  • Fixing 'progressEvent' type (#2851)
    • Fix 'progressEvent' type
    • Update axios.ts
  • Fixing getting local files (file://) failed (#2470)
    • fix issue #2416, #2396
    • fix Eslint warn
    • Modify judgment conditions
    • add unit test
    • update unit test
    • update unit test
  • Allow PURGE method in typings (#2191)
  • Adding option to disable automatic decompression (#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
  • Add independent maxBodyLength option (#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 responseEncoding to mergeConfig (#1745)
  • Compatible with follow-redirect aborts the request (#2689)
    • Compatible with follow-redirect aborts the request
    • Use the error code
  • Fix merging of params (#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.
  • Revert finally as then (#2683)

Internal and Tests:

  • Fix stale bot config (#3049)
    • fix stale bot config
    • fix multiple lines
  • Add days and change name to work (#3035)
  • Update close-issues.yml (#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 GitHub actions to close stale issues/prs (#3029)
    • prepare stale actions
    • update messages
    • Add exempt labels and lighten up comments
  • Add GitHub actions to close invalid issues (#3022)
    • add close actions
    • fix with checkout
    • update issue templates
    • add reminder
    • update close message
  • Add test with Node.js 12 (#2860)
    • test with Node.js 12
    • test with latest
  • Adding console log on sandbox server startup (#2210)
    • Adding console log on sandbox server startup
    • Update server.js
      Add server error handeling
    • Update server.js
      Better error message, remove retry.
  • Adding tests for method options type definitions (#1996)
    Update tests.
  • Add test for redirecting with too large response (#2695)
  • Fixing unit test failure in Windows OS (#2601)
  • Fixing issue for HEAD method and gziped repsonse (#2666)
  • Fix tests in browsers (#2748)
  • chore: add jsdelivr and unpkg support (#2443)

Documentation:

  • Adding support for URLSearchParams in node (#1900)
    • Adding support for URLSearchParams in node
    • Remove un-needed code
    • Update utils.js
    • Make changes as suggested
  • Adding table of content (preview) (#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
  • Replace 'blacklist' with 'blocklist' (#3006)
  • docs(): Detailed config options environment. (#2088)
    • docs(): Detailed config options environment.
    • Update README.md
  • Include axios-data-unpacker in ECOSYSTEM.md (#2080)
  • Allow opening examples in Gitpod (#1958)
  • Remove axios.all() and axios.spread() from Readme.md (#2727)
    • remove axios.all(), axios.spread()
    • replace example
    • axios.all() -> Promise.all()
    • axios.spread(function (acct, perms)) -> function (acct, perms)
    • add deprecated mark
  • Update README.md (#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.
  • Include swagger-taxos-codegen in ECOSYSTEM.md (#2162)
  • Add CDNJS version badge in README.md (#878)
    This badge will show the version on CDNJS!
  • Documentation update to clear up ambiguity in code examples (#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.
  • Update README.md about validateStatus (#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"
  • Updating documentation for usage form-data (#2805)
    Closes #2049
  • Fixing CHANGELOG.md issue link (#2784)
  • Include axios-hooks in ECOSYSTEM.md (#2003)
  • Added Response header access instructions (#1901)
    • Added Response header access instructions
    • Added note about using bracket notation
  • Add onUploadProgress and onDownloadProgress are browser only (#2763)
    Saw in #928 and #1966 that onUploadProgress and onDownloadProgress only work in the browser and was missing that from the README.
  • Update ' sign to ` in proxy spec (#2778)
  • Adding jsDelivr link in README (#1110)
    • Adding jsDelivr link
    • Add SRI
    • Remove SRI

Huge thanks to everyone who contributed to this release via code (authors listed
below) or via reviews and triaging on GitHub:

Read more

v0.19.2

22 Jan 04:29
2a0ff47
Compare
Choose a tag to compare
  • Remove unnecessary XSS check (#2679) (see (#2646) for discussion)

v0.19.1

07 Jan 18:55
351cf29
Compare
Choose a tag to compare

Fixes and Functionality:

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

Internal:

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

Documentation:

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

v0.18.1

01 Jun 00:48
Compare
Choose a tag to compare

Security Fix:

  • Destroy stream on exceeding maxContentLength (fixes #1098) (#1485) - Gadzhi Gadzhiev