chore(npm): replace axios with native node:http/node:https#2350
Open
rafaeelaudibert wants to merge 1 commit intoaxodotdev:mainfrom
Open
chore(npm): replace axios with native node:http/node:https#2350rafaeelaudibert wants to merge 1 commit intoaxodotdev:mainfrom
rafaeelaudibert wants to merge 1 commit intoaxodotdev:mainfrom
Conversation
This was referenced Apr 1, 2026
WarningImHack3r
approved these changes
Apr 1, 2026
Part of the e18e (https://e18e.dev) ecosystem cleanup effort. Remove axios, axios-proxy-builder, console.table, and rimraf from the npm installer template dependencies, replacing them with Node.js built-in modules. This reduces production dependencies from 42 packages to 1 (detect-libc). See: https://e18e.dev/docs/replacements/fetch.html - Replace axios HTTP client with node:https/node:http built-in modules - Implement redirect following (up to 5 hops) inline - Implement HTTP CONNECT proxy tunneling for HTTPS through HTTP proxies, with support for proxy authentication and NO_PROXY - Replace rimraf.sync() with fs.rmSync() (available since Node 14.14) - Remove dead console.table import (cTable was never referenced) - Regenerate npm-shrinkwrap.json (537 lines → 49 lines) - Update test snapshots
2e40960 to
a649eab
Compare
Author
|
CC @mistydemeo since you seem to be the most active maintainer here :) |
Author
|
Thanks for the confirmation @tnkuehne! @mistydemeo would love a review here! |
Contributor
|
Good work! I was just about to open a PR for the same 😄 rimraf was 5MB of transitive deps removed alone (glob was the main offender) This PR closes #2224 |
Contributor
|
This PR reduces installed size by 56%, 11M -> 4.8M |
Author
|
Nice, even better! 4.8M is cool 😎 |
Contributor
|
Sorry for the delay getting to this; will review soon. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The only reason why @PostHog depends on axios is because of
cargo-dist. We don't want that anymore, so... here's a contribution!Part of the e18e (https://e18e.dev) ecosystem cleanup effort. Remove axios, axios-proxy-builder, console.table, and rimraf from the npm installer template dependencies, replacing them with Node.js built-in modules. This reduces production dependencies from 42 packages to 1 (detect-libc).
See: https://e18e.dev/docs/replacements/fetch.html