Skip to content
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.jsonp(status, obj) signature #2940

Conversation

tunniclm
Copy link
Contributor

No description provided.

@@ -25,6 +25,7 @@ This is the first Express 5.0 alpha release, based off 4.10.1.
- `req.acceptsLanguage` - use `req.acceptsLanguages`
- `res.json(obj, status)` signature - use `res.json(status, obj)`
- `res.jsonp(obj, status)` signature - use `res.jsonp(status, obj)`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should this existing line be rewritten to:

- `res.jsonp(obj, status)` signature - use `res.status(status).jsonp(obj)`

?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, because that is the change log for the first alpha. You can't changed what has already been released.

@tunniclm tunniclm force-pushed the remove_deprecated_res_jsonp_status_obj_sig branch from 03eb2da to 37c8352 Compare March 14, 2016 13:24
@tunniclm
Copy link
Contributor Author

Fixed the History.md mistake.

@tunniclm tunniclm force-pushed the remove_deprecated_res_jsonp_status_obj_sig branch from 37c8352 to 05c9a5a Compare April 5, 2016 16:16
@tunniclm
Copy link
Contributor Author

tunniclm commented Apr 5, 2016

Updated due to comments on similar pull request (#2939)

@hacksparrow
Copy link
Member

@tunniclm coverage has decreased by a fraction, otherwise looks good to me.

@tunniclm
Copy link
Contributor Author

tunniclm commented May 4, 2016

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).

@tunniclm tunniclm force-pushed the remove_deprecated_res_jsonp_status_obj_sig branch from 05c9a5a to 2f2c636 Compare June 20, 2016 16:09
@dougwilson dougwilson self-assigned this Jan 29, 2017
@dougwilson dougwilson mentioned this pull request Jan 29, 2017
39 tasks
dougwilson pushed a commit that referenced this pull request Jan 29, 2017
@dougwilson
Copy link
Contributor

Merged into the 5.0 branch :)

@dougwilson dougwilson closed this Jan 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants