Skip to content
Myr

feat: upgrade to body-parser@1.20.3 (#5926)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Ulises Gascón · committed by Ulises Gascón · parent 54271f6 · Browse files · 3 files+7 added−4 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • PR-URL: https://github.com/expressjs/express/pull/5926

Diff stats

3 files+7 added−4 removed

  • tests:+2 added−2 removed
  • other:+5 added−2 removed

3 files+7 added−4 removed

modified:test/express.urlencoded.js+2 added-2 removed
210 unmodified lines
211212 it('should parse deep object', function (done) {213 var str = 'foo'214215 for (var i = 0; i < 500; i++) {215 for (var i = 0; i < 32; i++) {216 str += '[p]'217 }218219 str += '=bar'
9 unmodified lines
229230 var depth = 0231 var ref = obj.foo232 while ((ref = ref.p)) { depth++ }233 assert.strictEqual(depth, 500)233 assert.strictEqual(depth, 32)234 })235 .expect(200, done)236 })237 })
629 unmodified lines
modified:History.md+4 added-1 removed
1unreleased2==========33 * deps: body-parser@0.6.04 * add `depth` option to customize the depth level in the parser5 * IMPORTANT: The default `depth` level for parsing URL-encoded data is now `32` (previously was `Infinity`)6 * Remove link renderization in html while using `res.redirect`7 * deps: path-to-regexp@0.1.108 - Adds support for named matching groups in the routes using a regex9 - Adds backtracking protection to parameters without regexes defined10 * deps: encodeurl@~2.0.0
3619 unmodified lines
modified:package.json+1 added-1 removed