docs: add send options and methods changes to Express 5 migration guide#2209
docs: add send options and methods changes to Express 5 migration guide#220922BRS1317 wants to merge 1 commit intoexpressjs:gh-pagesfrom
Conversation
✅ Deploy Preview for expressjscom-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
I haven't reviewed it thoroughly yet, but I'm pretty sure that some of the changes to |
Thank you for the feedback! You're right — after reviewing I'll update the PR to remove that section and keep only the Sorry for the noise and thanks for the review! |

Description
Fixes #1868
Added missing documentation to the Express 5 migration guide for
breaking changes from the
sendpackage that directly affectExpress users upgrading from v4 to v5.
Changes made
en/guide/migrating-5.mdAdded new section
res.sendFile() and express.static() optionsdocumenting removed options:
hidden→ usedotfilesinsteadfrom→ userootinsteadAdded new section
Removed send methodsdocumenting methodsno longer exported by the
sendpackage:send.etag()→ useetagoption insteadsend.index()→ useindexoption insteadsend.maxage()→ usemaxAgeoption insteadsend.root()→ userootoption insteadUpdated table of contents with links to both new sections
Motivation
Developers upgrading from Express 4 to Express 5 who relied on
these options and methods would encounter silent breakage with
no guidance in the migration guide. This PR fills that gap.