Skip to content

5.x docs are missing some documentation added in late 4.x versions #1881

Description

@krzysdz

@paulhiggs in expressjs/express#6479 reported that express.text() is missing from 5.x docs.

express.text() and express.raw() were added in Express 4.17.0. The 4.x documentation reflects that (18dfac1, 958e581, b49ab1b), but 5.x documentation has not been updated after changes from 4.17.0/4.17.1 were merged into 5.0/5.x branches (expressjs/express@121fe99).

TODO:

Other differences include:

  • Admonitions are used inconsistently (e.g. in 4.x express.static(), but not in 5.x; there are still many .doc-box <div>s)
  • One warning about open redirect was removed in 5.x res.location() in docs: add deprecation note for 'back' redirect in res-redirect.md and res-location.md v4 #1835
  • In 4.x most strings in comments use single quotes, but in 5.x many more use double quotes (and one in res.type() has a typo - after redesign the typo is here)
    • 5.x docs sometimes place comments showing expected value (// => sth) in the same line as code, while 4.x consistently uses new line
  • In some 5x docs available in Express 4.?? onwards or similar notes have been removed (or never added), but in most places those still exist
  • req.host and req.hostname sections are sorted differently
  • Page description uses request/response in 5.x and req/res in 4.x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions