Skip to content

fix: remove unused httpx dependency #389

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

Merged

Conversation

taeold
Copy link
Contributor

@taeold taeold commented Jul 24, 2025

Summary

This PR removes the httpx dependency that was accidentally added in #364 but is never used in the codebase.

Context

While investigating our dependency growth, I discovered that httpx was added as a direct dependency but is not imported or used anywhere in the functions-framework codebase. This single dependency brought in 7 additional transitive dependencies.

Impact

Before this PR (28 packages):

  • Direct deps: 10 (including unused httpx)
  • Package size: ~29MB

After this PR (20 packages):

  • Direct deps: 9 (only what we actually use)
  • Package size: ~27MB
  • Removes 8 packages: httpx, anyio, httpcore, h11, certifi, idna, sniffio, typing_extensions

Dependency Analysis

From the last release to current:

  • Original: 17 packages
  • Added async support: +3 packages (starlette, uvicorn, uvicorn-worker)
  • Accidentally added httpx: +8 packages
  • Total: 28 packages

With this fix, we're back to the expected 20 packages (17 + 3 async).

Test Plan

All existing tests pass. The httpx package was never used, so its removal has no functional impact.

httpx was accidentally added in GoogleCloudPlatform#364 but is not used anywhere in the codebase.
Removing it reduces our dependency count from 28 to 20 packages.

Impact:
- Removes 8 unnecessary packages (httpx + 7 transitive deps)
- Reduces installation size by ~2MB
- Keeps only the actually needed async dependencies
@akerekes akerekes merged commit 26fb101 into GoogleCloudPlatform:main Jul 24, 2025
64 of 65 checks passed
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy