Open cirvladimir opened 3 months ago
I think this probably needs some attention from the google-gax folks?
@sofisl this is related to the #1097 and the fact that node-fetch v3 is esm only, right?
Correct, unfortunately we can't upgrade to node-fetch until we've migrated to dual format for ESM, or until we're on Node 22 and can use native-fetch with proxy support. However, we'll have to do some complicated loading to use node-fetch as v2 for CJS, and V3 for ESM if we upgrade this when we migrate to ESM. I'll create a separate bug to track.
Hello, I'm getting a deprecation warning when I use the @google-cloud/pubsub library. Here is the warning:
I checked where it's comming from, and I can see that in
node_modules/whatwg-url/lib/url-state-machine.js
there's arequire("punycode")
, which I assume causes the warning. Checking why my app imports that version of thewhatwg-url
pacakge I get the following:Is there a newer version of something I'm supposed to be using so I don't get the warning?
Environment details
@google-cloud/pubsub
version: 4.3.3Steps to reproduce