Skip to content

Remove axios dependency#10

Merged
snoack merged 1 commit into
masterfrom
no-axios
May 14, 2026
Merged

Remove axios dependency#10
snoack merged 1 commit into
masterfrom
no-axios

Conversation

@snoack
Copy link
Copy Markdown
Contributor

@snoack snoack commented May 14, 2026

This change is Reviewable

@pkaminski
Copy link
Copy Markdown
Member

@codex review

Triggered automatically because this PR was opened ready for review or was marked ready for review.

@socket-security
Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatednpm-check-updates@​20.0.0 ⏵ 20.0.299 +110099 +197 +1100

View full report

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: db00f6e263

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread index.js
params: qs, agent, responseType: 'text', transformResponse: [x => x]
});
data = response.data;
const response = await fetch(url);
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Restore custom agent support for REST requests

The switch from axios.get(..., { agent }) to fetch(url) drops the transport override path entirely, so callers that pass options.agent (for proxies, custom CA trust, or mTLS) now have that option silently ignored and requests can fail in those environments. This is a functional regression introduced by this commit; please wire options.agent into the fetch call (e.g., via a compatible dispatcher) or explicitly reject the option so failures are not silent.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Contributor Author

@snoack snoack left a comment

Choose a reason for hiding this comment

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

@snoack made 1 comment.
Reviewable status: 0 of 3 files reviewed, 2 unresolved discussions.


package.json line 3 at r1 (raw file):

{
  "name": "firebase-childrenkeys",
  "version": "3.0.0",

Whether this should be a major version bump is debatable:

  1. Dropping the agent option is essentially no-op because axios ignored the agent config key (but expected httpAgent/httpsAgent instead).
  2. Node 18 was already required previously since it is required by firebase-admin >=12, the engines.node value was merely stale.
  3. The shape of network/HTTP errors changed but it seems hubkit and reviewable-server don't need to be adapted for that, though one could argue that this is technically a breaking change.

Copy link
Copy Markdown
Contributor Author

@snoack snoack left a comment

Choose a reason for hiding this comment

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

@snoack resolved 1 discussion.
Reviewable status: 0 of 3 files reviewed, 1 unresolved discussion.

Copy link
Copy Markdown
Member

@pkaminski pkaminski left a comment

Choose a reason for hiding this comment

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

@pkaminski reviewed 3 files and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on snoack).


package.json line 3 at r1 (raw file):

Previously, snoack (Sebastian Noack) wrote…

Whether this should be a major version bump is debatable:

  1. Dropping the agent option is essentially no-op because axios ignored the agent config key (but expected httpAgent/httpsAgent instead).
  2. Node 18 was already required previously since it is required by firebase-admin >=12, the engines.node value was merely stale.
  3. The shape of network/HTTP errors changed but it seems hubkit and reviewable-server don't need to be adapted for that, though one could argue that this is technically a breaking change.

I don't think it's a big deal either way, might as well keep it as major.

Copy link
Copy Markdown
Contributor Author

@snoack snoack left a comment

Choose a reason for hiding this comment

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

@snoack made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on snoack).


package.json line 3 at r1 (raw file):

Previously, pkaminski (Piotr Kaminski) wrote…

I don't think it's a big deal either way, might as well keep it as major.

No strong preference either, but I suppose what ever we decide here also extends to Reviewable/nodefire#51.

Copy link
Copy Markdown
Member

@pkaminski pkaminski left a comment

Choose a reason for hiding this comment

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

@pkaminski made 1 comment.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on snoack).


package.json line 3 at r1 (raw file):

Previously, snoack (Sebastian Noack) wrote…

No strong preference either, but I suppose what ever we decide here also extends to Reviewable/nodefire#51.

When in doubt bump the major, I say.

@snoack snoack merged commit d74830e into master May 14, 2026
4 of 5 checks passed
@snoack snoack deleted the no-axios branch May 14, 2026 22:57
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.

2 participants