Skip to content

Commit

Permalink
fix(deps): bump axios from 0.21.2 to 0.27.2 (#277)
Browse files Browse the repository at this point in the history
Bumps [axios](https://github.com/axios/axios) from 0.21.2 to 0.27.2.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/axios/axios/releases">axios's releases</a>.</em></p>
<blockquote>
<h2>v0.27.2</h2>
<h3>0.27.2 (April 27, 2022)</h3>
<p>Fixes and Functionality:</p>
<ul>
<li>Fixed FormData posting in browser environment by reverting <a href="https://github-redirect.dependabot.com/axios/axios/issues/3785">#3785</a> (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4640">#4640</a>)</li>
<li>Enhanced protocol parsing implementation (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4639">#4639</a>)</li>
<li>Fixed bundle size</li>
</ul>
<h2>v0.27.1</h2>
<h3>0.27.1 (April 26, 2022)</h3>
<p>Fixes and Functionality:</p>
<ul>
<li>Removed import of url module in browser build due to huge size overhead and builds being broken (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4594">#4594</a>)</li>
<li>Bumped follow-redirects to ^1.14.9 (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4615">#4615</a>)</li>
</ul>
<h2>v0.27.0</h2>
<h3>0.27.0 (April 25, 2022)</h3>
<p>Breaking changes:</p>
<ul>
<li>New toFormData helper function that allows the implementor to pass an object and allow axios to convert it to FormData (<a href="https://github-redirect.dependabot.com/axios/axios/pull/3757">#3757</a>)</li>
<li>Removed functionality that removed the the <code>Content-Type</code> request header when passing FormData (<a href="https://github-redirect.dependabot.com/axios/axios/pull/3785">#3785</a>)</li>
<li><strong>(*)</strong> Refactored error handling implementing AxiosError as a constructor, this is a large change to error handling on the whole (<a href="https://github-redirect.dependabot.com/axios/axios/pull/3645">#3645</a>)</li>
<li>Separated responsibility for FormData instantiation between <code>transformRequest</code> and <code>toFormData</code> (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4470">#4470</a>)</li>
<li><strong>(*)</strong> Improved and fixed multiple issues with FormData support (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4448">#4448</a>)</li>
</ul>
<p>QOL and DevX improvements:</p>
<ul>
<li>Added a multipart/form-data testing playground allowing contributors to debug changes easily (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4465">#4465</a>)</li>
</ul>
<p>Fixes and Functionality:</p>
<ul>
<li>Refactored project file structure to avoid circular imports (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4516">#4515</a>) &amp; (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4516">#4516</a>)</li>
<li>Bumped follow-redirects to ^1.14.9 (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4562">#4562</a>)</li>
</ul>
<p>Internal and Tests:</p>
<ul>
<li>Updated dev dependencies to latest version</li>
</ul>
<p>Documentation:</p>
<ul>
<li>Fixing incorrect link in changelog (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4551">#4551</a>)</li>
</ul>
<p>Notes:</p>
<ul>
<li><strong>(*)</strong> Please read these pull requests before updating, these changes are very impactful and far reaching.</li>
</ul>
<h2>v0.26.1</h2>
<h3>0.26.1 (March 9, 2022)</h3>
<p>Fixes and Functionality:</p>
<ul>
<li>Refactored project file structure to avoid circular imports (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4220">#4220</a>)</li>
</ul>
<h2>v0.26.0</h2>
<h3>0.26.0 (February 13, 2022)</h3>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/axios/axios/blob/master/CHANGELOG.md">axios's changelog</a>.</em></p>
<blockquote>
<h3>0.27.2 (April 27, 2022)</h3>
<p>Fixes and Functionality:</p>
<ul>
<li>Fixed FormData posting in browser environment by reverting <a href="https://github-redirect.dependabot.com/axios/axios/issues/3785">#3785</a> (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4640">#4640</a>)</li>
<li>Enhanced protocol parsing implementation (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4639">#4639</a>)</li>
<li>Fixed bundle size</li>
</ul>
<h3>0.27.1 (April 26, 2022)</h3>
<p>Fixes and Functionality:</p>
<ul>
<li>Removed import of url module in browser build due to huge size overhead and builds being broken (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4594">#4594</a>)</li>
<li>Bumped follow-redirects to ^1.14.9 (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4615">#4615</a>)</li>
</ul>
<h3>0.27.0 (April 25, 2022)</h3>
<p>Breaking changes:</p>
<ul>
<li>New toFormData helper function that allows the implementor to pass an object and allow axios to convert it to FormData (<a href="https://github-redirect.dependabot.com/axios/axios/pull/3757">#3757</a>)</li>
<li>Removed functionality that removed the the <code>Content-Type</code> request header when passing FormData (<a href="https://github-redirect.dependabot.com/axios/axios/pull/3785">#3785</a>)</li>
<li><strong>(*)</strong> Refactored error handling implementing AxiosError as a constructor, this is a large change to error handling on the whole (<a href="https://github-redirect.dependabot.com/axios/axios/pull/3645">#3645</a>)</li>
<li>Separated responsibility for FormData instantiation between <code>transformRequest</code> and <code>toFormData</code> (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4470">#4470</a>)</li>
<li><strong>(*)</strong> Improved and fixed multiple issues with FormData support (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4448">#4448</a>)</li>
</ul>
<p>QOL and DevX improvements:</p>
<ul>
<li>Added a multipart/form-data testing playground allowing contributors to debug changes easily (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4465">#4465</a>)</li>
</ul>
<p>Fixes and Functionality:</p>
<ul>
<li>Refactored project file structure to avoid circular imports (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4516">#4515</a>) &amp; (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4516">#4516</a>)</li>
<li>Bumped follow-redirects to ^1.14.9 (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4562">#4562</a>)</li>
</ul>
<p>Internal and Tests:</p>
<ul>
<li>Updated dev dependencies to latest version</li>
</ul>
<p>Documentation:</p>
<ul>
<li>Fixing incorrect link in changelog (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4551">#4551</a>)</li>
</ul>
<p>Notes:</p>
<ul>
<li><strong>(*)</strong> Please read these pull requests before updating, these changes are very impactful and far reaching.</li>
</ul>
<h3>0.26.1 (March 9, 2022)</h3>
<p>Fixes and Functionality:</p>
<ul>
<li>Refactored project file structure to avoid circular imports (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4220">#4220</a>)</li>
</ul>
<h3>0.26.0 (February 13, 2022)</h3>
<p>Fixes and Functionality:</p>
<ul>
<li>Fixed The timeoutErrorMessage property in config not work with Node.js (<a href="https://github-redirect.dependabot.com/axios/axios/pull/3581">#3581</a>)</li>
<li>Added errors to be displayed when the query parsing process itself fails (<a href="https://github-redirect.dependabot.com/axios/axios/pull/3961">#3961</a>)</li>
<li>Fix/remove url required (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4426">#4426</a>)</li>
<li>Update follow-redirects dependency due to Vulnerability (<a href="https://github-redirect.dependabot.com/axios/axios/pull/4462">#4462</a>)</li>
</ul>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="https://github.com/axios/axios/commit/bc733fec78326609e751187c9d453cee9bf1993a"><code>bc733fe</code></a> Releasing v0.27.2</li>
<li><a href="https://github.com/axios/axios/commit/b9e9fb4fa0ab1e0f4bc9ac8d8cf493f5f8507dc3"><code>b9e9fb4</code></a> Enhanced protocol parsing implementation to fix <a href="https://github-redirect.dependabot.com/axios/axios/issues/4633">#4633</a>; (<a href="https://github-redirect.dependabot.com/axios/axios/issues/4639">#4639</a>)</li>
<li><a href="https://github.com/axios/axios/commit/76432c18bee20e2cbd9e673af8a3bf43641ad115"><code>76432c1</code></a> Fixed FormData posting in browser environment by reverting <a href="https://github-redirect.dependabot.com/axios/axios/issues/3785">#3785</a>; (<a href="https://github-redirect.dependabot.com/axios/axios/issues/4640">#4640</a>)</li>
<li><a href="https://github.com/axios/axios/commit/82fd15f3d4d0af5c965701d05deed98c6c056e94"><code>82fd15f</code></a> Combined build process and cleaned it up a bit</li>
<li><a href="https://github.com/axios/axios/commit/1d82af1a504dd85925738a80c125209ecc178752"><code>1d82af1</code></a> Fixing issues with bundle sizes</li>
<li><a href="https://github.com/axios/axios/commit/bcb166e6e8fe5425d480c967750a103216f9ba22"><code>bcb166e</code></a> Fixed incorrect date in changelog</li>
<li><a href="https://github.com/axios/axios/commit/838f53b4bb6616d8ec8efdae0612c9c74b8c3804"><code>838f53b</code></a> Merge branch 'master' of github.com:axios/axios</li>
<li><a href="https://github.com/axios/axios/commit/cb9c534963a99292f1d0c6137a7d32d9c859f6d5"><code>cb9c534</code></a> Releasing v0.27.1</li>
<li><a href="https://github.com/axios/axios/commit/91d21fc5fb0eeb4c60f6a75ab6db303c5d23f3c5"><code>91d21fc</code></a> Releasing v0.72.1</li>
<li><a href="https://github.com/axios/axios/commit/167cb8b8e7dbef7acd0be9b05bd50e4af2335291"><code>167cb8b</code></a> Remove eslint-g package as this seems have been added in error</li>
<li>Additional commits viewable in <a href="https://github.com/axios/axios/compare/v0.21.2...v0.27.2">compare view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=axios&package-manager=npm_and_yarn&previous-version=0.21.2&new-version=0.27.2)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)


</details>
  • Loading branch information
dependabot[bot] authored Jun 13, 2022
1 parent 4f2112b commit 408c277
Show file tree
Hide file tree
Showing 3 changed files with 58 additions and 61 deletions.
113 changes: 55 additions & 58 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
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"dependencies": {
"@relaycorp/relaynet-core": "^1.63.0",
"abort-controller": "^3.0.0",
"axios": "^0.21.2",
"axios": "^0.27.2",
"buffer-to-arraybuffer": "0.0.6",
"it-pipe": "^1.1.0",
"stream-to-it": "^0.2.4",
Expand All @@ -56,7 +56,7 @@
"@types/jest": "^27.4.1",
"@types/verror": "^1.10.5",
"@types/ws": "^7.4.7",
"axios-mock-adapter": "^1.20.0",
"axios-mock-adapter": "^1.21.1",
"del-cli": "^4.0.1",
"jest": "^27.5.1",
"jest-extended": "^2.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/PoWebClient.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -378,7 +378,7 @@ describe('deliverParcel', () => {

await client.deliverParcel(parcelSerialized, signer);

const authorizationHeaderValue = mockAxios.history.post[0].headers.authorization;
const authorizationHeaderValue = mockAxios.history.post[0].headers!.authorization as string;
expect(authorizationHeaderValue).toBeDefined();
expect(authorizationHeaderValue).toStartWith('Relaynet-Countersignature ');
const [, countersignatureBase64] = authorizationHeaderValue.split(' ', 2);
Expand Down

0 comments on commit 408c277

Please sign in to comment.