Skip to content

Compatible with Express 5? #200

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

Open
Nickk4 opened this issue Oct 28, 2024 · 3 comments
Open

Compatible with Express 5? #200

Nickk4 opened this issue Oct 28, 2024 · 3 comments

Comments

@Nickk4
Copy link

Nickk4 commented Oct 28, 2024

I'm trying to implement express-mongo-sanitize with Express 5.0.1.
No matter the configuration, after adding express-mongo-sanitize I get the error:

TypeError: Cannot set property query of #<IncomingMessage> which has only a getter
    at C:\***\node_modules\express-mongo-sanitize\index.js:113:18   // points to: req[key] = target;
    at Array.forEach (<anonymous>)

Any ideas if it's possible to make express-mongo-sanitize work with Express 5?

@ghostd
Copy link

ghostd commented Nov 5, 2024

A PR is already open: #199

@Nickk4
Copy link
Author

Nickk4 commented Mar 31, 2025

@fiznool, @lorand-horvath
Anything in the planning regarding Express 5 compatibility?

@fiznool
Copy link
Owner

fiznool commented Mar 31, 2025

I'm afraid not. I haven't used this library in years and have no immediate intention to make any changes to it.

If someone is interested in taking it over, please get in touch.

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

No branches or pull requests

3 participants