-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
meta: add express 5 as peer dependency #304
Conversation
Hi @InSantoshMahto, Thanks for taking the time to make the PR :) However, Express v5 is still in beta - I think it would make more sense to update the peer dependency once v5.0.0 is officially released and tested with this library. |
Could you please undo the rename of the |
I just rename the source directory to src to look the same as other projects. and remove some comments |
Can we make it available express-rate-limit@next so that we can use with express@next for V5 |
I think we could do that. AFAIK usage with Express v5 should be possible even if the peer dependency is not updated though - npm only warns if peer dependencies are not met. Have you tested the library and checked if it works with the newer version without any changes? |
Could you please undo those changes? The comments are helpful for new contributors and I prefer keeping full form directory names in projects. Also, the tests are failing because of the incomplete rename. |
sure |
Yes. work perfectly with waring while using npm. But while using pnpm I faced the issue. it break my docker build. |
What error do you receive? In a test project, running
|
yes I also received error |
This is just a warning, and shouldn't result in a failure during installation. Anyways, I don't see an issue in publishing a new version under the |
I think express 5.x compatibility is fine to declare in a regular semver minor release. I would like to see us run our automated tests against both 4.x and 5.x then - but I think that could be as simple as adding a few lines to test/external/run-all-tests - basically, after the two |
@InSantoshMahto could you please check the "allow maintainer edits" box on the right hand side on this page so I can push a commit updating the tests? Thanks! |
|
Ohk, thank you |
849bd18
to
8eeec25
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
@nfriedly Do take a look at the changes, the tests now run with express 4 and 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like it!
it might be good to add a couple of echo "running test $foo"; npm ls express
sort of comments to run-all-tests
, but that's more cosmetic than anything else.
Sure, will do |
Added some colors 🎆 |
Merging after fixing a merge conflict, will release a minor version by tomorrow :D |
Released as part of v6.4.0 |
Related Issues
What Does This PR Do?
This PR will resolve the peer dependency error fix for express v5
Added
Changed
Removed
Caveats/Problems/Issues
Checklist
npm test
) pass.methods/classes/constants/types have been annotated with TSDoc comments.
added for the same.