1. 01 10月, 2021 1 次提交
    • J
      Release/v0.22.0 (#4107) · 76f09afc
      Jay 提交于
      * fix/Avoid package.json import; (#4041)
      
      * Added auto-generated config module `env/data.js` for importing package environment vars without importing the whole `package.json`;
      Refactored `http.js` to use `env/data.js` instead of package.json;
      
      * Added `env/data.js`;
      Added `env/README.md`;
      
      * Feat/export package version constant (#4065)
      
      * Added auto-generated config module `env/data.js` for importing package environment vars without importing the whole `package.json`;
      Refactored `http.js` to use `env/data.js` instead of package.json;
      
      * Added `env/data.js`;
      Added `env/README.md`;
      
      * Export package version constant;
      
      * Fixed cancelToken leakage; Added AbortController support; (#3305)
      
      * Fixed cancelToken leakage;
      Added AbortController support;
      
      * Fixed typings;
      
      * Documented `signal` option;
      
      * Added processing of early cancellation using AbortController without sending a request;
      Co-authored-by: NJay <jasonsaayman@gmail.com>
      
      * Updating CI to run on release branches
      
      * Fixed default transitional config for custom Axios instance; (#4052)
      
      Refactored `/core/mergeConfig`;
      Co-authored-by: NJay <jasonsaayman@gmail.com>
      
      * Prepping v0.22.0 for release
      
      * Updated date
      Co-authored-by: NDmitriy Mozgovoy <robotshara@gmail.com>
      76f09afc
  2. 17 9月, 2021 3 次提交
  3. 08 9月, 2021 1 次提交
    • M
      Caseless header comparing in HTTP adapter. (#2880) · f3ca6371
      Matt R. Wilson 提交于
      * Caseless header comparing in HTTP adapter.
      
      It was adding User-Agent and removing Authorization, but only when
      existing headers had the exact right casing. Node uses caseless logic
      when managing headers.
      
      This was causing some requests to have `User-Agent` appended to the
      headers object and overriding provided agent strings.
      
      Also included is an update to not override the `Content-Length` if it
      was already defined in the options. It can be desirable to manually
      specify a content length that does not match the data on hand.
      Especially for testing.
      
      * Fix eslint error
      
      * fixup: update state UA logic
      
      Play nice with https://github.com/axios/axios/pull/3703Co-authored-by: NJay <jasonsaayman@gmail.com>
      f3ca6371
  4. 06 9月, 2021 1 次提交
  5. 05 9月, 2021 10 次提交
  6. 04 9月, 2021 2 次提交
  7. 02 9月, 2021 1 次提交
  8. 30 8月, 2021 1 次提交
  9. 13 8月, 2021 7 次提交
  10. 27 5月, 2021 1 次提交
  11. 21 5月, 2021 1 次提交
  12. 18 5月, 2021 1 次提交
  13. 14 5月, 2021 1 次提交
  14. 13 5月, 2021 1 次提交
  15. 06 5月, 2021 1 次提交
  16. 05 5月, 2021 2 次提交
  17. 30 4月, 2021 2 次提交
  18. 20 4月, 2021 2 次提交
    • D
      Feat/json improvements (#3763) · 7821ed20
      Dmitriy Mozgovoy 提交于
      * Draft
      
      * Added support for primitive types to be converted to JSON if the request Content-Type is 'application/json';
      Added throwing SyntaxError if JSON parsing failed and responseType is json;
      Added transitional option object;
      Added options validator to assert transitional options;
      Added transitional option `silentJSONParsing= true` for backward compatibility;
      Updated README.md;
      Updated typings;
      
      * Fixed isOlderVersion helper;
      Fixed typo;
      Added validator.spec.js;
      
      * Added forcedJSONParsing transitional option #2791
      
      * `transformData` is now called in the default configuration context if the function context is not specified (for tests compatibility);
      
      * Added `transitional.clarifyTimeoutError` to throw ETIMEDOUT error instead of generic ECONNABORTED on request timeouts;
      Added support of onloadend handler if available instead of onreadystatechange;
      Added xhr timeout test;
      Fixed potential bug of xhr adapter with proper handling timeouts&errors (FakeXMLHTTPRequest failed to handle timeouts);
      
      * Removed unnecessary assertion;
      7821ed20
    • D
      JSON improvements: throw if JSON parsing failed; number, boolean can be passed... · 5ad6994d
      Dmitriy Mozgovoy 提交于
      JSON improvements: throw if JSON parsing failed; number, boolean can be passed directly as payload for encoding to JSON #2613, #61, #907 (#3688)
      
      * Draft
      
      * Added support for primitive types to be converted to JSON if the request Content-Type is 'application/json';
      Added throwing SyntaxError if JSON parsing failed and responseType is json;
      Added transitional option object;
      Added options validator to assert transitional options;
      Added transitional option `silentJSONParsing= true` for backward compatibility;
      Updated README.md;
      Updated typings;
      
      * Fixed isOlderVersion helper;
      Fixed typo;
      Added validator.spec.js;
      
      * Added forcedJSONParsing transitional option #2791
      
      * `transformData` is now called in the default configuration context if the function context is not specified (for tests compatibility);
      
      * Added `transitional.clarifyTimeoutError` to throw ETIMEDOUT error instead of generic ECONNABORTED on request timeouts;
      Added support of onloadend handler if available instead of onreadystatechange;
      Added xhr timeout test;
      Fixed potential bug of xhr adapter with proper handling timeouts&errors (FakeXMLHTTPRequest failed to handle timeouts);
      5ad6994d
  19. 01 4月, 2021 1 次提交
    • J
      Fix/karma sauce errors (#3717) · d99d5faa
      Jay 提交于
      * [Updated] karma sauce launcher which should fix suace tests that are no longer showing as passed and rather completed
      
      * [Updated] karma config to follow es-lint rules of axios
      
      * [Updated] karma version to latest
      
      * [Added] propper browsers when testing local
      d99d5faa