-
Notifications
You must be signed in to change notification settings - Fork 68
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 #4664
Upgrade to express 5 #4664
Conversation
I used the checklist in #4611 (generated from the migration guide) to ensure we hit all the necessary items. A summary of the changes:
The new promise rejections should only be helpful, we might have a few unnecessary |
f0670ec
to
90f2de4
Compare
🤖 This is an automated code coverage reportTotal coverage (lines): 14.56% |
eb1f13c
to
58feead
Compare
api/routers/report.js
Outdated
@@ -4,6 +4,6 @@ const MainController = require('../controllers/main'); | |||
const { csrfProtection } = require('../middlewares'); | |||
|
|||
// add csrf middleware to app route so that we can use request.csrfToken() | |||
router.get('/report(/*)?', csrfProtection, MainController.report); | |||
router.get('/report{*splat}', csrfProtection, MainController.report); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be {/*splat}
with the forward slash like the routes/main.js
changes?
58feead
to
f4a5306
Compare
f4a5306
to
f9f000e
Compare
Changes proposed in this pull request:
security considerations
Upgrading express should provide security upgrades by avoiding relying on outdated dependencies