Skip to content

Upgrade npms 23#107

Merged
cdeutsch merged 3 commits intomasterfrom
upgrade-npms-23
Apr 8, 2026
Merged

Upgrade npms 23#107
cdeutsch merged 3 commits intomasterfrom
upgrade-npms-23

Conversation

@cdeutsch
Copy link
Copy Markdown
Owner

@cdeutsch cdeutsch commented Apr 8, 2026

No description provided.

cdeutsch added 3 commits April 8, 2026 12:05
…iguration

- Changed the request handling method in server.ts from `app.all('*', ...)` to `app.use(...)` for better middleware integration.
- Added `moduleResolution: "node"` to tsconfig.server.json for improved module resolution.
- Updated dependencies in package.json: upgraded `body-parser` to version 2.2.0, `express` to version 5.0.0, and `@types/express` to version 5.0.0 for compatibility with the latest Express features.
Updated the typescript-eslint dependency in package.json and package-lock.json to version 8.58.1, ensuring compatibility with the latest TypeScript features and improvements.
@cdeutsch cdeutsch merged commit 6242097 into master Apr 8, 2026
1 check passed
Comment on lines +32 to 34
app.use((req, res) => {
void nextRequestHandler(req, res);
});
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Critical error handling issue: Using void on the promise returned by nextRequestHandler will cause unhandled promise rejections if the handler throws an error or rejects. This will crash the Node.js process in production.

In Express 5, async errors need to be properly handled. The fix should either:

app.use((req, res, next) => {
  nextRequestHandler(req, res).catch(next);
});

Or if using async/await:

app.use(async (req, res, next) => {
  try {
    await nextRequestHandler(req, res);
  } catch (error) {
    next(error);
  }
});
Suggested change
app.use((req, res) => {
void nextRequestHandler(req, res);
});
app.use((req, res, next) => {
nextRequestHandler(req, res).catch(next);
});

Spotted by Graphite

Fix in Graphite


Is this helpful? React 👍 or 👎 to let us know.

@cdeutsch cdeutsch deleted the upgrade-npms-23 branch April 8, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant