Update dependency express to v5
This MR contains the following updates:
| Package | Type | Update | Change |
|---|---|---|---|
| express (source) | dependencies | major | ^4.18.2 -> ^5.0.0 |
Release Notes
expressjs/express (express)
v5.1.0
========================
- Add support for
Uint8Arrayinres.send() - Add support for ETag option in
res.sendFile() - Add support for multiple links with the same rel in
res.links() - Add funding field to package.json
- perf: use loop for acceptParams
- refactor: prefix built-in node module imports
- deps: remove
setprototypeof - deps: remove
safe-buffer - deps: remove
utils-merge - deps: remove
methods - deps: remove
depd - deps:
debug@^4.4.0 - deps:
body-parser@^2.2.0 - deps:
router@^2.2.0 - deps:
content-type@^1.0.5 - deps:
finalhandler@^2.1.0 - deps:
qs@^6.14.0 - deps:
server-static@2.2.0 - deps:
type-is@2.0.1
v5.0.1
==========
- Update
cookiesemver lock to address CVE-2024-47764
v5.0.0
=========================
- remove:
-
path-is-absolutedependency - usepath.isAbsoluteinstead
-
- breaking:
-
res.status()accepts only integers, and input must be greater than 99 and less than 1000- will throw a
RangeError: Invalid status code: ${code}. Status code must be greater than 99 and less than 1000.for inputs outside this range - will throw a
TypeError: Invalid status code: ${code}. Status code must be an integer.for non integer inputs
- will throw a
- deps: send@1.0.0
-
res.redirect('back')andres.location('back')is no longer a supported magic string, explicitly usereq.get('Referrer') || '/'.
-
- change:
-
res.clearCookiewill ignore user providedmaxAgeandexpiresoptions
-
- deps: cookie-signature@^1.2.1
- deps: debug@4.3.6
- deps: merge-descriptors@^2.0.0
- deps: serve-static@^2.1.0
- deps: qs@6.13.0
- deps: accepts@^2.0.0
- deps: mime-types@^3.0.0
-
application/javascript=>text/javascript
-
- deps: type-is@^2.0.0
- deps: content-disposition@^1.0.0
- deps: finalhandler@^2.0.0
- deps: fresh@^2.0.0
- deps: body-parser@^2.0.1
- deps: send@^1.1.0
v4.21.2
What's Changed
- Add funding field (v4) by @bjohansebas in https://github.com/expressjs/express/pull/6065
- deps: path-to-regexp@0.1.11 by @blakeembrey in https://github.com/expressjs/express/pull/5956
- deps: bump path-to-regexp@0.1.12 by @jonchurch in https://github.com/expressjs/express/pull/6209
- Release: 4.21.2 by @UlisesGascon in https://github.com/expressjs/express/pull/6094
Full Changelog: https://github.com/expressjs/express/compare/4.21.1...4.21.2
v4.21.1
What's Changed
- Backport a fix for CVE-2024-47764 to the 4.x branch by @joshbuker in https://github.com/expressjs/express/pull/6029
- Release: 4.21.1 by @UlisesGascon in https://github.com/expressjs/express/pull/6031
Full Changelog: https://github.com/expressjs/express/compare/4.21.0...4.21.1
v4.21.0
What's Changed
- Deprecate
"back"magic string in redirects by @blakeembrey in https://github.com/expressjs/express/pull/5935 - finalhandler@1.3.1 by @wesleytodd in https://github.com/expressjs/express/pull/5954
- fix(deps): serve-static@1.16.2 by @wesleytodd in https://github.com/expressjs/express/pull/5951
- Upgraded dependency qs to 6.13.0 to match qs in body-parser by @agadzinski93 in https://github.com/expressjs/express/pull/5946
New Contributors
- @agadzinski93 made their first contribution in https://github.com/expressjs/express/pull/5946
Full Changelog: https://github.com/expressjs/express/compare/4.20.0...4.21.0
v4.20.0
==========
- deps: serve-static@0.16.0
- Remove link renderization in html while redirecting
- deps: send@0.19.0
- Remove link renderization in html while redirecting
- deps: body-parser@0.6.0
- add
depthoption to customize the depth level in the parser - IMPORTANT: The default
depthlevel for parsing URL-encoded data is now32(previously wasInfinity)
- add
- Remove link renderization in html while using
res.redirect - deps: path-to-regexp@0.1.10
- Adds support for named matching groups in the routes using a regex
- Adds backtracking protection to parameters without regexes defined
- deps: encodeurl@~2.0.0
- Removes encoding of
\,|, and^to align better with URL spec
- Removes encoding of
- Deprecate passing
options.maxAgeandoptions.expirestores.clearCookie- Will be ignored in v5, clearCookie will set a cookie with an expires in the past to instruct clients to delete the cookie
v4.19.2
==========
- Improved fix for open redirect allow list bypass
v4.19.1
==========
- Allow passing non-strings to res.location with new encoding handling checks
v4.19.0
==========
- Prevent open redirect allow list bypass due to encodeurl
- deps: cookie@0.6.0
v4.18.3
==========
- Fix routing requests without method
- deps: body-parser@1.20.2
- Fix strict json error message on Node.js 19+
- deps: content-type@~1.0.5
- deps: raw-body@2.5.2
- deps: cookie@0.6.0
- Add
partitionedoption
- Add
Configuration
-
If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.