Skip to content

Conversation

@bjohansebas
Copy link
Member

@bjohansebas bjohansebas commented Mar 19, 2025


🛑 No Merge before #6404 has landed in v6


With this, those arguments are deprecated when they are undefined or different from their data type

Related #6404
Closes #6391

@UlisesGascon
Copy link
Member

I added a warning message in the description to prevent early merges 👍

@bjohansebas
Copy link
Member Author

I think it should be the other way around—this should be merged first before #6404, since it needs to be deprecated in v5 first for the effect to result in throwing errors in v6. Does that make sense?

@bjohansebas
Copy link
Member Author

@wesleytodd @UlisesGascon @expressjs/express-collaborators Any objections to releasing this in the next minor version of Express?

@bjohansebas bjohansebas merged commit c5b8d55 into expressjs:master Jul 15, 2025
23 checks passed
@bjohansebas bjohansebas deleted the deprecate-res.redirect(undefined) branch July 15, 2025 03:18
@UlisesGascon UlisesGascon mentioned this pull request Nov 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Throw when the path is undefined in res.redirect.

2 participants