Skip to content
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

refactor: remove dotenv and axios from dev dependencies #15157

Merged
merged 1 commit into from
Jan 4, 2025

Conversation

vkarpov15
Copy link
Collaborator

Summary

Remove 2 quick dev deps. dotenv isn't used in Mongoose, I think it was accidentally installed by the TypeScript benchmark. axios is just used for one dev-only HTTP request, figure we can easily replace that with fetch(). Technically Mongoose 8 allows node engines down to v16.20.1 and fetch is only available starting in Node 17, but the script that uses axios is dev-only so we don't need to be as strict about engine support. If this can save us a dependabot PR per month, I think that's worth it.

Examples

Copy link
Collaborator

@AbdelrahmanHafez AbdelrahmanHafez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@vkarpov15 vkarpov15 merged commit bf0140a into master Jan 4, 2025
79 checks passed
@vkarpov15 vkarpov15 deleted the vkarpov15/remove-dev-deps branch January 4, 2025 18:25
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

Successfully merging this pull request may close these issues.

3 participants