mirror of
https://github.com/tenrok/axios.git
synced 2026-06-23 20:40:40 +03:00
Releasing v0.26.0
This commit is contained in:
@@ -1,5 +1,15 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
### 0.26.0 (February 13, 2022)
|
||||||
|
|
||||||
|
Fixes and Functionality:
|
||||||
|
- Fixed The timeoutErrorMessage property in config not work with Node.js ([#3581](https://github.com/axios/axios/pull/3581))
|
||||||
|
- Added errors to be displayed when the query parsing process itself fails ([#3961](https://github.com/axios/axios/pull/3961))
|
||||||
|
- Fix/remove url required ([#4426](https://github.com/axios/axios/pull/4426))
|
||||||
|
- Update follow-redirects dependency due to Vurnerbility ([#4462](https://github.com/axios/axios/pull/4462))
|
||||||
|
- Bump karma from 6.3.11 to 6.3.14 ([#4461](https://github.com/axios/axios/pull/4461))
|
||||||
|
- Bump follow-redirects from 1.14.7 to 1.14.8 ([#4473](https://github.com/axios/axios/pull/4473))
|
||||||
|
|
||||||
### 0.25.0 (January 18, 2022)
|
### 0.25.0 (January 18, 2022)
|
||||||
|
|
||||||
Breaking changes:
|
Breaking changes:
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "axios",
|
"name": "axios",
|
||||||
"main": "./dist/axios.js",
|
"main": "./dist/axios.js",
|
||||||
"version": "0.25.0",
|
"version": "0.26.0",
|
||||||
"homepage": "https://axios-http.com",
|
"homepage": "https://axios-http.com",
|
||||||
"authors": [
|
"authors": [
|
||||||
"Matt Zabriskie"
|
"Matt Zabriskie"
|
||||||
|
|||||||
Vendored
+14
-14
@@ -1,5 +1,3 @@
|
|||||||
/* axios v0.25.0 | (c) 2022 by Matt Zabriskie */
|
|
||||||
/* axios v0.24.0 | (c) 2022 by Matt Zabriskie */
|
|
||||||
(function webpackUniversalModuleDefinition(root, factory) {
|
(function webpackUniversalModuleDefinition(root, factory) {
|
||||||
if(typeof exports === 'object' && typeof module === 'object')
|
if(typeof exports === 'object' && typeof module === 'object')
|
||||||
module.exports = factory();
|
module.exports = factory();
|
||||||
@@ -617,14 +615,14 @@ function Axios(instanceConfig) {
|
|||||||
*
|
*
|
||||||
* @param {Object} config The config specific for this request (merged with this.defaults)
|
* @param {Object} config The config specific for this request (merged with this.defaults)
|
||||||
*/
|
*/
|
||||||
Axios.prototype.request = function request(config) {
|
Axios.prototype.request = function request(configOrUrl, config) {
|
||||||
/*eslint no-param-reassign:0*/
|
/*eslint no-param-reassign:0*/
|
||||||
// Allow for axios('example/url'[, config]) a la fetch API
|
// Allow for axios('example/url'[, config]) a la fetch API
|
||||||
if (typeof config === 'string') {
|
if (typeof configOrUrl === 'string') {
|
||||||
config = arguments[1] || {};
|
|
||||||
config.url = arguments[0];
|
|
||||||
} else {
|
|
||||||
config = config || {};
|
config = config || {};
|
||||||
|
config.url = configOrUrl;
|
||||||
|
} else {
|
||||||
|
config = configOrUrl || {};
|
||||||
}
|
}
|
||||||
|
|
||||||
config = mergeConfig(this.defaults, config);
|
config = mergeConfig(this.defaults, config);
|
||||||
@@ -1359,7 +1357,7 @@ module.exports = defaults;
|
|||||||
/***/ (function(module, exports) {
|
/***/ (function(module, exports) {
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
"version": "0.24.0"
|
"version": "0.26.0"
|
||||||
};
|
};
|
||||||
|
|
||||||
/***/ }),
|
/***/ }),
|
||||||
@@ -1580,7 +1578,7 @@ module.exports = function isAbsoluteURL(url) {
|
|||||||
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
// A URL is considered absolute if it begins with "<scheme>://" or "//" (protocol-relative URL).
|
||||||
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
// RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed
|
||||||
// by any combination of letters, digits, plus, period, or hyphen.
|
// by any combination of letters, digits, plus, period, or hyphen.
|
||||||
return /^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(url);
|
return /^([a-z][a-z\d+\-.]*:)?\/\//i.test(url);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -1596,6 +1594,8 @@ module.exports = function isAbsoluteURL(url) {
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
|
|
||||||
|
var utils = __webpack_require__(/*! ./../utils */ "./lib/utils.js");
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines whether the payload is an error thrown by Axios
|
* Determines whether the payload is an error thrown by Axios
|
||||||
*
|
*
|
||||||
@@ -1603,7 +1603,7 @@ module.exports = function isAbsoluteURL(url) {
|
|||||||
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
* @returns {boolean} True if the payload is an error thrown by Axios, otherwise false
|
||||||
*/
|
*/
|
||||||
module.exports = function isAxiosError(payload) {
|
module.exports = function isAxiosError(payload) {
|
||||||
return (typeof payload === 'object') && (payload.isAxiosError === true);
|
return utils.isObject(payload) && (payload.isAxiosError === true);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
@@ -1934,7 +1934,7 @@ var toString = Object.prototype.toString;
|
|||||||
* @returns {boolean} True if value is an Array, otherwise false
|
* @returns {boolean} True if value is an Array, otherwise false
|
||||||
*/
|
*/
|
||||||
function isArray(val) {
|
function isArray(val) {
|
||||||
return toString.call(val) === '[object Array]';
|
return Array.isArray(val);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1975,7 +1975,7 @@ function isArrayBuffer(val) {
|
|||||||
* @returns {boolean} True if value is an FormData, otherwise false
|
* @returns {boolean} True if value is an FormData, otherwise false
|
||||||
*/
|
*/
|
||||||
function isFormData(val) {
|
function isFormData(val) {
|
||||||
return (typeof FormData !== 'undefined') && (val instanceof FormData);
|
return toString.call(val) === '[object FormData]';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1989,7 +1989,7 @@ function isArrayBufferView(val) {
|
|||||||
if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
|
if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {
|
||||||
result = ArrayBuffer.isView(val);
|
result = ArrayBuffer.isView(val);
|
||||||
} else {
|
} else {
|
||||||
result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);
|
result = (val) && (val.buffer) && (isArrayBuffer(val.buffer));
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -2096,7 +2096,7 @@ function isStream(val) {
|
|||||||
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
* @returns {boolean} True if value is a URLSearchParams object, otherwise false
|
||||||
*/
|
*/
|
||||||
function isURLSearchParams(val) {
|
function isURLSearchParams(val) {
|
||||||
return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;
|
return toString.call(val) === '[object URLSearchParams]';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-3
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1,3 +1,3 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
"version": "0.25.0"
|
"version": "0.26.0"
|
||||||
};
|
};
|
||||||
Generated
+2
-2
@@ -1,11 +1,11 @@
|
|||||||
{
|
{
|
||||||
"name": "axios",
|
"name": "axios",
|
||||||
"version": "0.25.0",
|
"version": "0.26.0",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"version": "0.25.0",
|
"version": "0.26.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"follow-redirects": "^1.14.8"
|
"follow-redirects": "^1.14.8"
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "axios",
|
"name": "axios",
|
||||||
"version": "0.25.0",
|
"version": "0.26.0",
|
||||||
"description": "Promise based HTTP client for the browser and node.js",
|
"description": "Promise based HTTP client for the browser and node.js",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"types": "index.d.ts",
|
"types": "index.d.ts",
|
||||||
|
|||||||
Reference in New Issue
Block a user