Skip to content

Commit 2e64afd

Browse files
chore(release): v1.8.1 (#6800)
Co-authored-by: jasonsaayman <[email protected]>
1 parent 36a5a62 commit 2e64afd

17 files changed

Lines changed: 67 additions & 136 deletions

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## [1.8.1](https://github.com/axios/axios/compare/v1.8.0...v1.8.1) (2025-02-26)
4+
5+
6+
### Bug Fixes
7+
8+
* **utils:** move `generateString` to platform utils to avoid importing crypto module into client builds; ([#6789](https://github.com/axios/axios/issues/6789)) ([36a5a62](https://github.com/axios/axios/commit/36a5a620bec0b181451927f13ac85b9888b86cec))
9+
10+
### Contributors to this release
11+
12+
- <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 "+51/-47 (#6789 )")
13+
314
# [1.8.0](https://github.com/axios/axios/compare/v1.7.9...v1.8.0) (2025-02-25)
415

516

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "axios",
33
"main": "./dist/axios.js",
4-
"version": "1.8.0",
4+
"version": "1.8.1",
55
"homepage": "https://axios-http.com",
66
"authors": [
77
"Matt Zabriskie"

dist/axios.js

Lines changed: 6 additions & 31 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/axios.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/axios.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/axios.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/browser/axios.cjs

Lines changed: 2 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,6 @@
1-
/*! Axios v1.8.0 Copyright (c) 2025 Matt Zabriskie and contributors */
1+
/*! Axios v1.8.1 Copyright (c) 2025 Matt Zabriskie and contributors */
22
'use strict';
33

4-
var crypto = require('crypto');
5-
6-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
7-
8-
var crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto);
9-
104
function bind(fn, thisArg) {
115
return function wrap() {
126
return fn.apply(thisArg, arguments);
@@ -613,28 +607,6 @@ const toFiniteNumber = (value, defaultValue) => {
613607
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
614608
};
615609

616-
const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
617-
618-
const DIGIT = '0123456789';
619-
620-
const ALPHABET = {
621-
DIGIT,
622-
ALPHA,
623-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
624-
};
625-
626-
const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
627-
let str = '';
628-
const {length} = alphabet;
629-
const randomValues = new Uint32Array(size);
630-
crypto__default["default"].randomFillSync(randomValues);
631-
for (let i = 0; i < size; i++) {
632-
str += alphabet[randomValues[i] % length];
633-
}
634-
635-
return str;
636-
};
637-
638610
/**
639611
* If the thing is a FormData object, return true, otherwise return false.
640612
*
@@ -762,8 +734,6 @@ var utils$1 = {
762734
findKey,
763735
global: _global,
764736
isContextDefined,
765-
ALPHABET,
766-
generateString,
767737
isSpecCompliantForm,
768738
toJSONObject,
769739
isAsyncFn,
@@ -3098,7 +3068,7 @@ function dispatchRequest(config) {
30983068
});
30993069
}
31003070

3101-
const VERSION = "1.8.0";
3071+
const VERSION = "1.8.1";
31023072

31033073
const validators$1 = {};
31043074

dist/browser/axios.cjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/axios.js

Lines changed: 2 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/esm/axios.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)