Bump body-parser from 1.20.3 to 2.2.0 #326

Closed
dependabot[bot] wants to merge 1 commits from dependabot/npm_and_yarn/body-parser-2.2.0 into main
dependabot[bot] commented 2025-10-02 14:57:58 +10:00 (Migrated from github.com)

Bumps body-parser from 1.20.3 to 2.2.0.

Release notes

Sourced from body-parser's releases.

v2.2.0

What's Changed

New Contributors

Full Changelog: https://github.com/expressjs/body-parser/compare/v2.1.0...v2.2.0

v2.1.0

What's Changed

Full Changelog: https://github.com/expressjs/body-parser/compare/2.0.1...v2.1.0

2.0.2

What's Changed

... (truncated)

Changelog

Sourced from body-parser's changelog.

2.2.0 / 2025-03-27

  • refactor: normalize common options for all parsers
  • deps:
    • iconv-lite@^0.6.3

2.1.0 / 2025-02-10

  • deps:
    • type-is@^2.0.0
    • debug@^4.4.0
    • Removed destroy
  • refactor: prefix built-in node module imports
  • use the node require cache instead of custom caching

2.0.2 / 2024-10-31

  • remove unpipe package and use native unpipe() method

2.0.1 / 2024-09-10

  • Restore expected behavior extended to false

2.0.0 / 2024-09-10

Breaking Changes

  • Node.js 18 is the minimum supported version
  • req.body is no longer always initialized to {}
    • it is left undefined unless a body is parsed
  • Remove deprecated bodyParser() combination middleware
  • urlencoded parser now defaults extended to false as released, this is not the case, fixed in 2.0.1
  • urlencoded simple parser now uses qs module instead of querystring module

Features

  • Add brotli support #406
  • urlencoded: Add option to customize the depth with a default value of 32
  • urlencoded: Support iso-8859-1, utf8 sentinel, and numeric entities
  • Use on-finished to determine when body read

Dependencies

... (truncated)

Commits

Dependabot compatibility score

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 commands and options

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 show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @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)
Bumps [body-parser](https://github.com/expressjs/body-parser) from 1.20.3 to 2.2.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/expressjs/body-parser/releases">body-parser's releases</a>.</em></p> <blockquote> <h2>v2.2.0</h2> <h2>What's Changed</h2> <ul> <li>test: remove <code>--bail</code> from test script by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/583">expressjs/body-parser#583</a></li> <li>ci: separate lint step by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/582">expressjs/body-parser#582</a></li> <li>fix: remove skip of test by <a href="https://github.com/bjohansebas"><code>@​bjohansebas</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/589">expressjs/body-parser#589</a></li> <li>ci: use <code>lcovonly</code> reporter for the <code>test-ci</code> script by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/584">expressjs/body-parser#584</a></li> <li>docs: remove security file by <a href="https://github.com/bjohansebas"><code>@​bjohansebas</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/590">expressjs/body-parser#590</a></li> <li>fix(docs): replace var with let or const in ReadMe by <a href="https://github.com/Binilkks"><code>@​Binilkks</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/581">expressjs/body-parser#581</a></li> <li>chore: update test dependencies by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/585">expressjs/body-parser#585</a></li> <li>dep: upgrade iconv-lite to ^0.6.3 by <a href="https://github.com/aqeelat"><code>@​aqeelat</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/588">expressjs/body-parser#588</a></li> <li>Refactor parameterCount to optimize performance by <a href="https://github.com/wojtekmaj"><code>@​wojtekmaj</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/591">expressjs/body-parser#591</a></li> <li>refactor: normalize common options for all parsers by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/551">expressjs/body-parser#551</a></li> <li>refactor: cleanup parser options by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/596">expressjs/body-parser#596</a></li> <li>Release 2.2.0 by <a href="https://github.com/UlisesGascon"><code>@​UlisesGascon</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/597">expressjs/body-parser#597</a></li> </ul> <h2>New Contributors</h2> <ul> <li><a href="https://github.com/Binilkks"><code>@​Binilkks</code></a> made their first contribution in <a href="https://redirect.github.com/expressjs/body-parser/pull/581">expressjs/body-parser#581</a></li> <li><a href="https://github.com/aqeelat"><code>@​aqeelat</code></a> made their first contribution in <a href="https://redirect.github.com/expressjs/body-parser/pull/588">expressjs/body-parser#588</a></li> <li><a href="https://github.com/wojtekmaj"><code>@​wojtekmaj</code></a> made their first contribution in <a href="https://redirect.github.com/expressjs/body-parser/pull/591">expressjs/body-parser#591</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/expressjs/body-parser/compare/v2.1.0...v2.2.0">https://github.com/expressjs/body-parser/compare/v2.1.0...v2.2.0</a></p> <h2>v2.1.0</h2> <h2>What's Changed</h2> <ul> <li>fix: update package.json engines field to reflect minimum supported node version by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/541">expressjs/body-parser#541</a></li> <li>fix: remove brotli support check by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/542">expressjs/body-parser#542</a></li> <li>fix: remove unpipe package and use native unpipe method by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/543">expressjs/body-parser#543</a></li> <li>Remove unused devDependency <code>methods</code> by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/548">expressjs/body-parser#548</a></li> <li>ci: updated github actions ci workflow by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/546">expressjs/body-parser#546</a></li> <li>Remove devDependency <code>safe-buffer</code> by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/547">expressjs/body-parser#547</a></li> <li>test: remove AsyncLocalStorage check by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/549">expressjs/body-parser#549</a></li> <li>perf: use the node require cache instead of custom caching by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/562">expressjs/body-parser#562</a></li> <li>ci: disable fail-fast in CI workflow by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/565">expressjs/body-parser#565</a></li> <li>chore(deps): update <code>type-is</code> to v2.0.0 by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/571">expressjs/body-parser#571</a></li> <li>refactor: prefix built-in node module imports by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/573">expressjs/body-parser#573</a></li> <li>fix: remove obsolete dependency <code>destroy</code> by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/570">expressjs/body-parser#570</a></li> <li>cleanup: remove obsolete test env file by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/569">expressjs/body-parser#569</a></li> <li>Refactor decompression stream creation to remove code duplication by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/564">expressjs/body-parser#564</a></li> <li>Add caret for body-parser dependencies by <a href="https://github.com/wesleytodd"><code>@​wesleytodd</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/577">expressjs/body-parser#577</a></li> <li>ci: add CodeQL (SAST) by <a href="https://github.com/bjohansebas"><code>@​bjohansebas</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/559">expressjs/body-parser#559</a></li> <li>chore(deps): update <code>debug</code> to ^4.4.0 by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/579">expressjs/body-parser#579</a></li> <li>Release v2.1.0 by <a href="https://github.com/wesleytodd"><code>@​wesleytodd</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/578">expressjs/body-parser#578</a></li> </ul> <p><strong>Full Changelog</strong>: <a href="https://github.com/expressjs/body-parser/compare/2.0.1...v2.1.0">https://github.com/expressjs/body-parser/compare/2.0.1...v2.1.0</a></p> <h2>2.0.2</h2> <h2>What's Changed</h2> <ul> <li>fix: update package.json engines field to reflect minimum supported node version by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/541">expressjs/body-parser#541</a></li> <li>fix: remove brotli support check by <a href="https://github.com/Phillip9587"><code>@​Phillip9587</code></a> in <a href="https://redirect.github.com/expressjs/body-parser/pull/542">expressjs/body-parser#542</a></li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/expressjs/body-parser/blob/master/HISTORY.md">body-parser's changelog</a>.</em></p> <blockquote> <h1>2.2.0 / 2025-03-27</h1> <ul> <li>refactor: normalize common options for all parsers</li> <li>deps: <ul> <li>iconv-lite@^0.6.3</li> </ul> </li> </ul> <h1>2.1.0 / 2025-02-10</h1> <ul> <li>deps: <ul> <li>type-is@^2.0.0</li> <li>debug@^4.4.0</li> <li>Removed destroy</li> </ul> </li> <li>refactor: prefix built-in node module imports</li> <li>use the node require cache instead of custom caching</li> </ul> <h1>2.0.2 / 2024-10-31</h1> <ul> <li>remove <code>unpipe</code> package and use native <code>unpipe()</code> method</li> </ul> <h1>2.0.1 / 2024-09-10</h1> <ul> <li>Restore expected behavior <code>extended</code> to <code>false</code></li> </ul> <h1>2.0.0 / 2024-09-10</h1> <h2>Breaking Changes</h2> <ul> <li>Node.js 18 is the minimum supported version</li> <li><code>req.body</code> is no longer always initialized to <code>{}</code> <ul> <li>it is left <code>undefined</code> unless a body is parsed</li> </ul> </li> <li>Remove deprecated <code>bodyParser()</code> combination middleware</li> <li><del><code>urlencoded</code> parser now defaults <code>extended</code> to <code>false</code></del> as released, this is not the case, fixed in 2.0.1</li> <li><code>urlencoded</code> simple parser now uses <code>qs</code> module instead of <code>querystring</code> module</li> </ul> <h2>Features</h2> <ul> <li>Add brotli support <a href="https://redirect.github.com/expressjs/body-parser/issues/406">#406</a></li> <li>urlencoded: Add option to customize the depth with a default value of 32</li> <li>urlencoded: Support iso-8859-1, utf8 sentinel, and numeric entities</li> <li>Use <code>on-finished</code> to determine when body read</li> </ul> <h2>Dependencies</h2> <ul> <li>deps: raw-body@^3.0.0</li> <li>deps: [email protected]</li> <li>deps: [email protected]</li> <li>deps: [email protected]</li> </ul> <!-- raw HTML omitted --> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/expressjs/body-parser/commit/0aa4e1128ef88c7f68a851a44c6adbbed35dbfd4"><code>0aa4e11</code></a> 2.2.0 (<a href="https://redirect.github.com/expressjs/body-parser/issues/597">#597</a>)</li> <li><a href="https://github.com/expressjs/body-parser/commit/4d85c4c285870bbf27d07e5058a29f6794917193"><code>4d85c4c</code></a> refactor: cleanup parser options (<a href="https://redirect.github.com/expressjs/body-parser/issues/596">#596</a>)</li> <li><a href="https://github.com/expressjs/body-parser/commit/d11899bff54846e4ad24e94c27fc66956f9b93cd"><code>d11899b</code></a> refactor: normalize common options for all parsers (<a href="https://redirect.github.com/expressjs/body-parser/issues/551">#551</a>)</li> <li><a href="https://github.com/expressjs/body-parser/commit/f27f2ced83d2f2a19e5305d09b4e31dec75b3e5c"><code>f27f2ce</code></a> perf: refactor <code>parameterCount</code> to optimize performance (<a href="https://redirect.github.com/expressjs/body-parser/issues/591">#591</a>)</li> <li><a href="https://github.com/expressjs/body-parser/commit/ccad155f488b95374794a57a9a8ae6de1d38a054"><code>ccad155</code></a> dep: upgrade [email protected] (<a href="https://redirect.github.com/expressjs/body-parser/issues/588">#588</a>)</li> <li><a href="https://github.com/expressjs/body-parser/commit/f75bd255a1839d3dea3e5e96ede380c1fed5ca55"><code>f75bd25</code></a> chore: update test dependencies (<a href="https://redirect.github.com/expressjs/body-parser/issues/585">#585</a>)</li> <li><a href="https://github.com/expressjs/body-parser/commit/0f1250971b6155ee13eb3d4aad2ce47b40c073f2"><code>0f12509</code></a> fix(docs): replace var with let or const in ReadMe (<a href="https://redirect.github.com/expressjs/body-parser/issues/581">#581</a>)</li> <li><a href="https://github.com/expressjs/body-parser/commit/5e6dd0874e478a94b7b7e080e10ba75192cbd1ac"><code>5e6dd08</code></a> fix(docs): remove security file (<a href="https://redirect.github.com/expressjs/body-parser/issues/590">#590</a>)</li> <li><a href="https://github.com/expressjs/body-parser/commit/d127b9c6c8989e130991b13c938d4da4621e9a31"><code>d127b9c</code></a> ci: use <code>lcovonly</code> reporter for the <code>test-ci</code> script (<a href="https://redirect.github.com/expressjs/body-parser/issues/584">#584</a>)</li> <li><a href="https://github.com/expressjs/body-parser/commit/d0bf2be1114ee3025c552c53d29f290f0677272d"><code>d0bf2be</code></a> fix: remove skip of test (<a href="https://redirect.github.com/expressjs/body-parser/issues/589">#589</a>)</li> <li>Additional commits viewable in <a href="https://github.com/expressjs/body-parser/compare/1.20.3...v2.2.0">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=body-parser&package-manager=npm_and_yarn&previous-version=1.20.3&new-version=2.2.0)](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 show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@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>
dependabot[bot] commented 2025-10-03 05:32:06 +10:00 (Migrated from github.com)

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting `@dependabot ignore this major version` or `@dependabot ignore this minor version`. You can also ignore all major, minor, or patch releases for a dependency by adding an [`ignore` condition](https://docs.github.com/en/code-security/supply-chain-security/configuration-options-for-dependency-updates#ignore) with the desired `update_types` to your config file. If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

Pull request closed

This pull request cannot be reopened because the branch was deleted.
Sign in to join this conversation.