-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Reflect body-parser changes in 5.x API docs and include those that where missing #1883
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reflect body-parser changes in 5.x API docs and include those that where missing #1883
Conversation
✅ Deploy Preview for expressjscom-preview ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
This is expressjs@8225868, but for 5.x API.
| <li id="express-raw-middleware"><a href="#express.raw">express.raw()</a></li> | ||
| <li id="express-router"><a href="#express.router">express.Router()</a></li> | ||
| <li id="express-static-middleware"><a href="#express.static">express.static()</a></li> | ||
| <li id="express-text-middleware"><a href="#express.text">express.text()</a></li> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added the menu entries with ids suffixed with -middleware for consistency, but in 4.x express.raw() and express.text() menu items have no such suffix in ids.
I don't think anyone makes links with anchors to menu elements, so it should be ok.
expressjs.com/_includes/api/en/4x/menu.md
Lines 6 to 11 in 9e00f5a
| <li id="express-json-middleware"><a href="#express.json">express.json()</a></li> | |
| <li id="express-raw"><a href="#express.raw">express.raw()</a></li> | |
| <li id="express-router"><a href="#express.router">express.Router()</a></li> | |
| <li id="express-static-middleware"><a href="#express.static">express.static()</a></li> | |
| <li id="express-text"><a href="#express.text">express.text()</a></li> | |
| <li id="express-urlencoded-middleware"><a href="#express.urlencoded">express.urlencoded()</a></li> |
|
thanks @krzysdz! |
The body-parser change that no longer sets
req.body = {}is noted in migration guide and v5 release post, but has not been reflected inexpress.json(),express.raw(),express.text()andexpress.urlencoded()API documentation.Found by @LorenzoLeonardini in expressjs/express#6432 (comment).
express.raw()andexpress.text()had own.mdfiles with docs, but were not included inexpress.mdandmenu.md(see 8225868 for 4.x) - #1881