-
-
Notifications
You must be signed in to change notification settings - Fork 18.3k
Remove res.send(status, body) signature #2942
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
Remove res.send(status, body) signature #2942
Conversation
History.md
Outdated
@@ -26,6 +26,7 @@ This is the first Express 5.0 alpha release, based off 4.10.1. | |||
- `res.json(obj, status)` signature - use `res.json(status, obj)` | |||
- `res.jsonp(obj, status)` signature - use `res.jsonp(status, obj)` | |||
- `res.send(body, status)` signature - use `res.send(status, body)` | |||
- `res.send(status, body)` signature - use `res.status(status).send(body)` |
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.
You can't add this to an already-released version.
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.
Yeah, I just noticed that I changed the wrong section of the file. I'll go fix all these, sorry 'bout that.
2c97448
to
92ab1f0
Compare
Fixed the History.md mistake. |
92ab1f0
to
24cb914
Compare
@tunniclm coverage has decreased by a fraction, otherwise looks good to me. |
As mentioned in the other similar pull request (see #2939 (comment)), the slight reduction in coverage is due to the reduced number of lines in the changed file (response.js). |
24cb914
to
60b214e
Compare
ma ma ma merged into 5.0 branch 🎉 |
No description provided.