Skip to content

feat!: Migrate to fetch #7717

Open
Open

Description

@danielbankhead

As we plan to support multiple environments and runtimes it makes sense to migrate from node-fetch to the Fetch API. Transitioning this library to a interface on top of fetch provides a ton of flexibility and will greatly decrease package size.

Additionally:

  • Update Github "about" section to:
An HTTP request client that provides a lightweight interface on top of `fetch`.

Activity

  1. added
    type: feature request
    priority: p3
    on May 15, 2024
  2. unilynx commented on Dec 6, 2024

    @unilynx

    This will also fix googleapis/gaxios#640 and the deprecation warning reported by gaxios in node 22.1+

  3. jordanebelanger commented on Apr 9, 2025

    @jordanebelanger

    This related ticket was closed in August 2024 googleapis/nodejs-storage#2356

    Any update on this? It would notably fix a BUN compatibility issue with gziped files (they get decompressed twice for some reason under bun). @sofisl

  4. dbartholomae commented on Jun 4, 2025

    @dbartholomae

    Looking forward to this as well, the punycode deprecation warning is very noisy.

  5. manucorporat commented on Jun 27, 2025

    @manucorporat

    Looking forward for this!

  6. unilynx commented on Oct 31, 2025

    @unilynx

    It's also great when you're already intercepting fetch() to log all http traffic a script generates - I do that regularly and it's really great to not have to figure out whatever http client a package is using and where it's debug/traffic log options are.

  7. added
    library: google-cloud-node-core
    on Mar 18, 2026
  8. slagiewka commented on Jun 19, 2026

    @slagiewka

    FTR a major issue related to gaxios using the (effectively) dead node-fetch nodejs/node#63989
    Not to say that this should happen, but using the built-in fetch raise chances of any breaking being caught earlier.

  9. YasharF commented on Jul 1, 2026

    @YasharF

    Any chance this can get prioritized?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    library: google-cloud-node-corepriority: p3type: feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions