Skip to content

fix: match Express 4 body-parser and query parser defaults under compat=4 - #38

Merged
otnc merged 1 commit into
mainfrom
fix/v4-body-query-defaults
Sep 21, 2026
Merged

otnc merged 1 commit into
mainfrom
fix/v4-body-query-defaults

Conversation

@otnc

@otnc otnc commented Sep 21, 2026

Copy link
Copy Markdown
Owner

Fixes six Express 4 suite failures (1156 -> 1162 of 1198 on main; Express 5 unchanged).

  • express.urlencoded() defaults to extended: true under compat=4 (body-parser 1.x)
  • a missing query parser setting acts like extended under compat=4
  • express.json()/raw()/text()/urlencoded() answer 500 stream.not.readable under compat=4 when something already read the request stream to its end (both the Node stream and the pumped Fetch body are tracked)

baseline.json and the README count are not touched, to avoid conflicts with the other open PRs; they get refreshed once those are merged.

@otnc
otnc merged commit 745b2a8 into main Sep 21, 2026
5 checks passed
@otnc
otnc deleted the fix/v4-body-query-defaults branch September 21, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant