Skip to content

Commit

Permalink
chore(release): v1.3.4 (#5565)
Browse files Browse the repository at this point in the history
Co-authored-by: Dmitriy Mozgovoy <robotshara@gmail.com>
  • Loading branch information
github-actions[bot] and DigitalBrainJS committed Feb 22, 2023
1 parent cbe2de6 commit 2e70cec
Show file tree
Hide file tree
Showing 17 changed files with 79 additions and 51 deletions.
14 changes: 14 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,19 @@
# Changelog

## [1.3.4](https://github.com/axios/axios/compare/v1.3.3...v1.3.4) (2023-02-22)


### Bug Fixes

* **blob:** added a check to make sure the Blob class is available in the browser's global scope; ([#5548](https://github.com/axios/axios/issues/5548)) ([3772c8f](https://github.com/axios/axios/commit/3772c8fe74112a56e3e9551f894d899bc3a9443a))
* **http:** fixed regression bug when handling synchronous errors inside the adapter; ([#5564](https://github.com/axios/axios/issues/5564)) ([a3b246c](https://github.com/axios/axios/commit/a3b246c9de5c3bc4b5a742e15add55b375479451))

### Contributors to this release

- <img src="https://avatars.githubusercontent.com/u/12586868?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Dmitriy Mozgovoy](https://github.com/DigitalBrainJS "+38/-26 (#5564 )")
- <img src="https://avatars.githubusercontent.com/u/19550000?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [lcysgsg](https://github.com/lcysgsg "+4/-0 (#5548 )")
- <img src="https://avatars.githubusercontent.com/u/5492927?v&#x3D;4&amp;s&#x3D;18" alt="avatar" width="18"/> [Michael Di Prisco](https://github.com/Cadienvan "+3/-0 (#5444 )")

## [1.3.3](https://github.com/axios/axios/compare/v1.3.2...v1.3.3) (2023-02-13)


Expand Down
2 changes: 1 addition & 1 deletion bower.json
@@ -1,7 +1,7 @@
{
"name": "axios",
"main": "./dist/axios.js",
"version": "1.3.3",
"version": "1.3.4",
"homepage": "https://axios-http.com",
"authors": [
"Matt Zabriskie"
Expand Down
8 changes: 5 additions & 3 deletions dist/axios.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/axios.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/axios.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/axios.min.js.map

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions dist/browser/axios.cjs
@@ -1,4 +1,4 @@
// Axios v1.3.3 Copyright (c) 2023 Matt Zabriskie and contributors
// Axios v1.3.4 Copyright (c) 2023 Matt Zabriskie and contributors
'use strict';

function bind(fn, thisArg) {
Expand Down Expand Up @@ -1214,6 +1214,8 @@ var URLSearchParams$1 = typeof URLSearchParams !== 'undefined' ? URLSearchParams

var FormData$1 = typeof FormData !== 'undefined' ? FormData : null;

var Blob$1 = typeof Blob !== 'undefined' ? Blob : null;

/**
* Determine if we're running in a standard browser environment
*
Expand Down Expand Up @@ -1268,7 +1270,7 @@ var platform = {
classes: {
URLSearchParams: URLSearchParams$1,
FormData: FormData$1,
Blob
Blob: Blob$1
},
isStandardBrowserEnv,
isStandardBrowserWebWorkerEnv,
Expand Down Expand Up @@ -2616,7 +2618,7 @@ function mergeConfig(config1, config2) {
return config;
}

const VERSION = "1.3.3";
const VERSION = "1.3.4";

const validators$1 = {};

Expand Down
2 changes: 1 addition & 1 deletion dist/browser/axios.cjs.map

Large diffs are not rendered by default.

8 changes: 5 additions & 3 deletions dist/esm/axios.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/esm/axios.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/axios.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/esm/axios.min.js.map

Large diffs are not rendered by default.

64 changes: 36 additions & 28 deletions dist/node/axios.cjs
@@ -1,4 +1,4 @@
// Axios v1.3.3 Copyright (c) 2023 Matt Zabriskie and contributors
// Axios v1.3.4 Copyright (c) 2023 Matt Zabriskie and contributors
'use strict';

const FormData$1 = require('form-data');
Expand Down Expand Up @@ -1952,7 +1952,7 @@ function buildFullPath(baseURL, requestedURL) {
return requestedURL;
}

const VERSION = "1.3.3";
const VERSION = "1.3.4";

function parseProtocol(url) {
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
Expand Down Expand Up @@ -2514,26 +2514,47 @@ function setProxy(options, configProxy, location) {

const isHttpAdapterSupported = typeof process !== 'undefined' && utils.kindOf(process) === 'process';

// temporary hotfix

const wrapAsync = (asyncExecutor) => {
return new Promise((resolve, reject) => {
let onDone;
let isDone;

const done = (value, isRejected) => {
if (isDone) return;
isDone = true;
onDone && onDone(value, isRejected);
};

const _resolve = (value) => {
done(value);
resolve(value);
};

const _reject = (reason) => {
done(reason, true);
reject(reason);
};

asyncExecutor(_resolve, _reject, (onDoneHandler) => (onDone = onDoneHandler)).catch(_reject);
})
};

/*eslint consistent-return:0*/
const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
/*eslint no-async-promise-executor:0*/
return new Promise(async function dispatchHttpRequest(resolvePromise, rejectPromise) {
let data = config.data;
const responseType = config.responseType;
const responseEncoding = config.responseEncoding;
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
let {data} = config;
const {responseType, responseEncoding} = config;
const method = config.method.toUpperCase();
let isFinished;
let isDone;
let rejected = false;
let req;

// temporary internal emitter until the AxiosRequest class will be implemented
const emitter = new EventEmitter__default["default"]();

function onFinished() {
if (isFinished) return;
isFinished = true;

const onFinished = () => {
if (config.cancelToken) {
config.cancelToken.unsubscribe(abort);
}
Expand All @@ -2543,28 +2564,15 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
}

emitter.removeAllListeners();
}

function done(value, isRejected) {
if (isDone) return;
};

onDone((value, isRejected) => {
isDone = true;

if (isRejected) {
rejected = true;
onFinished();
}

isRejected ? rejectPromise(value) : resolvePromise(value);
}

const resolve = function resolve(value) {
done(value);
};

const reject = function reject(value) {
done(value, true);
};
});

function abort(reason) {
emitter.emit('abort', !reason || reason.type ? new CanceledError(null, config, req) : reason);
Expand Down
2 changes: 1 addition & 1 deletion dist/node/axios.cjs.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/env/data.js
@@ -1 +1 @@
export const VERSION = "1.3.3";
export const VERSION = "1.3.4";
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "axios",
"version": "1.3.3",
"version": "1.3.4",
"description": "Promise based HTTP client for the browser and node.js",
"main": "index.js",
"exports": {
Expand Down Expand Up @@ -203,4 +203,4 @@
"@commitlint/config-conventional"
]
}
}
}

0 comments on commit 2e70cec

Please sign in to comment.