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

Upgrade to Express 5 #4611

Closed
26 tasks done
drewbo opened this issue Sep 27, 2024 · 1 comment
Closed
26 tasks done

Upgrade to Express 5 #4611

drewbo opened this issue Sep 27, 2024 · 1 comment
Assignees

Comments

@drewbo
Copy link
Contributor

drewbo commented Sep 27, 2024

Express 5 is the first major version upgrade in a decade. It has two nice improvements for us: improved promise rejection handling (which has caused errors or annoying code her in the past) and reduction of (older) dependencies

Notes

Acceptance Criteria

  • Application uses express 5
  • Confirm no use of removed methods and properties
    • app.del()
    • app.param(fn)
    • Pluralized method names
    • Leading colon (:) in the name for app.param(name, fn)
    • req.param(name)
    • res.json(obj, status)
    • res.jsonp(obj, status)
    • res.redirect(url, status)
    • res.redirect('back') and res.location('back')
    • res.send(body, status)
    • res.send(status)
    • res.sendfile()
  • Check new path route matching syntax
  • Accommodate new rejected promises handled from middleware and handlers
  • Review other changes related to these methods
    • express.urlencoded
    • app.router
    • req.body
    • req.host
    • req.query
    • res.clearCookie
    • res.status
    • res.vary
    • res.render
@drewbo
Copy link
Contributor Author

drewbo commented Nov 21, 2024

Closed via #4664

@drewbo drewbo closed this as completed Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant