express
express copied to clipboard
Fast, unopinionated, minimalist web framework for node.
- The function signature has been updated to accept a variable number of type arguments using the spread operator (`...types`). - The internal logic now directly invokes `accepts(this).types(...types)`, simplifying the...
Quite often when we need to do releases we need to follow a quite long process to prepare and publish sub-dependencies that we own. This process is even crucial when...
### Summary This pull request introduces a pre-commit hook that uses Husky to automatically run ESLint on staged files before each commit. The goal is to enforce consistent code quality...
This PR updates the `logerror` function in `application.js` to use `console.error(err)` instead of `err.stack || err.toString()`. This change improves error visibility, especially for complex or nested errors (like those thrown...
Express configures finalhandler’s `onError` function in [application.js:156](https://github.com/expressjs/express/blob/master/lib/application.js#L156) to call [logError](https://github.com/expressjs/express/blob/master/lib/application.js#L615), which basically calls `console.error(err.stack || err.toString())`. Some years ago logging `err.stack` was the only way to print out the error...
### Description Refactored the header lookup logic in req.get() by replacing the switch statement with a simpler if-else condition. Since only the referer/referrer headers are treated as special cases, this...
Validations are being added, this would ideally be for Express 6. Maybe sending a deprecation message would be great, what do you think? closes #6391
Address https://github.com/expressjs/typescript-wg/issues/1 , labeled as "top priority". - moving types from DT into the repository for the further maintenance - including the correction on removing the type for `express.query` —...
HTTP/2 has a great feature called push promises. It allows you to push files from server to client pro-actively because you know the client will need it. To do this...
So currently in Express 4 (and lower) there is `req.path`, which is added by Express. This property will return the _pathname_ of the given request. There has surfaced two issues...