Skip to content

Outstanding issues with the 5.x api docs #1126

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

Closed
7 tasks done
dougwilson opened this issue Apr 1, 2020 · 13 comments
Closed
7 tasks done

Outstanding issues with the 5.x api docs #1126

dougwilson opened this issue Apr 1, 2020 · 13 comments
Labels
docs Issues/pr concerning content help wanted

Comments

@dougwilson
Copy link
Contributor

dougwilson commented Apr 1, 2020

5.x docs investigation notes:

@jonchurch jonchurch added the docs Issues/pr concerning content label Apr 1, 2020
@gireeshpunathil
Copy link
Contributor

I can help with few of these; the key question is: how critical those are for express 5.0?

@gireeshpunathil
Copy link
Contributor

req.param does not exist any longer

@dougwilson - I may be missing something; but https://github.com/expressjs/express/blob/2d519077ea6c7c52a16098c7cf6d8d667a863c7b/lib/request.js#L235 still shows the function definition; Is there a pending PR that removes this?

@dougwilson
Copy link
Contributor Author

This list is regarding the express 5.x code; linking to 4.x code would indeed showing it as existing, as it did exist in 4.x series :)

@dougwilson
Copy link
Contributor Author

Github provides a neat feature where you can browse the code for a particular version, but using the branch drop down and changing it to tag and picking the version tag of code to view. For example, the latest 5 request helpers can be viewed at the url https://github.com/expressjs/express/blob/5.0.0-alpha.8/lib/request.js . Another method is to git clone the repository and you can git checkout a specific version tag to explore the code of that version. I hope this is helpful 👍

@HarshithaKP
Copy link
Contributor

app.param documents name as optional, but that whole system was removed.

@dougwilson, can you pls explain what this is? I looked at the doc of app.param(), and found that it is complete. what is missing here?

@HarshithaKP
Copy link
Contributor

@dougwilson, http://expressjs.com/en/guide/using-middleware.html#middleware.router has explanation for next('router'). Is this sufficient or more detail is required ?. If yes , where should I add it ?

@ryhinchey
Copy link
Contributor

I'm starting work on the 5.x api reference for how to use promises in handlers/middleware. I see there are other places on the site that should reference promise based middleware and the express error handler (like the getting started docs). I'll take a stab at those and create separate PRs for each

@dougwilson
Copy link
Contributor Author

@dougwilson, can you pls explain what this is? I looked at the doc of app.param(), and found that it is complete. what is missing here?

In the 5.x docs, the name parameter is still documented as an optional parameter, but that parameter support has been removed.

@dougwilson, http://expressjs.com/en/guide/using-middleware.html#middleware.router has explanation for next('router'). Is this sufficient or more detail is required ?. If yes , where should I add it ?

Right. This tracker is mainly about the 5.x api docs (http://expressjs.com/en/5x/api.html) not including it. All the places that are documenting next('route') in the api docs also need to document next('router') as well.

@ryhinchey
Copy link
Contributor

Looking here #398 (comment), there are some good things to do for the 5.0 production release.

For the actual non-beta 5.0 release:

- Update all content in Getting Started and Guide with changes for 5.0. Also, Resources and Advanced Topics should also be updated for 5.0.
- 5.x API docs become default for API menu item, and remove "Beta" label.
Revised / "final" migration guide & release notes
- 5.0 official release announcement (replacing beta announcment above)

I believe the first item is mostly covered in Doug's list here. The last two need to be accounted. One other thing that comes to mind is that we need to make sure all links in Guide and Getting Started point to the 5.x api docs.

I can create separate issues for these or perhaps add them to the tasks above?

@dougwilson
Copy link
Contributor Author

I can create separate issues for these or perhaps add them to the tasks above?

I think only the OP can edit the top comment, is that right? @ryhinchey if you can edit, let's just use this issue; if not, do you want to open a new issue so you can own updating th task list in it?

@gireeshpunathil
Copy link
Contributor

for the context, the only pending item in the list is #1131 really.

One other thing that comes to mind is that we need to make sure all links in Guide and Getting Started point to the 5.x api docs.

I suggest we stick to the original list and not doing this at this point of time - it is not a blocker, and can be done post release as well.

@jonchurch
Copy link
Member

You need write perms on the repo to edit comments that aren't yours

@dougwilson
Copy link
Contributor Author

Alrightly, with that, and 1131 merged, I'm going to close this issue as completed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Issues/pr concerning content help wanted
Projects
None yet
Development

No branches or pull requests

5 participants