tinify / tinify-nodejs

Node.js client for the Tinify API.
https://tinypng.com/developers
MIT License
423 stars 74 forks source link

`util._extend` API is deprecated via proxying-agent dependency #49

Open gnomebrew opened 3 months ago

gnomebrew commented 3 months ago

I am receiving the warning below when launching my node app. It appears to be coming from the proxying-agent module which, in my app, is only a dependency of tinify.

(node:84446) [DEP0060] DeprecationWarning: The util._extend API is deprecated. Please use Object.assign() instead. at Object. (/Users/{folder name}/{folder name}/node_modules/proxying-agent/lib/proxying-agent.js:336:6) at Module._compile (node:internal/modules/cjs/loader:1467:14) at Module._extensions..js (node:internal/modules/cjs/loader:1551:10) at Module.load (node:internal/modules/cjs/loader:1282:32) at Module._load (node:internal/modules/cjs/loader:1098:12) at TracingChannel.traceSync (node:diagnostics_channel:315:14) at wrapModuleLoad (node:internal/modules/cjs/loader:215:24) at Module.require (node:internal/modules/cjs/loader:1304:12) at require (node:internal/modules/helpers:123:16) at Object. (/Users/}folder name}/{folder name}/node_modules/proxying-agent/index.js:1:18)

Here is the entry from my package-json:

"node_modules/tinify": { "version": "1.7.1", "resolved": "https://registry.npmjs.org/tinify/-/tinify-1.7.1.tgz", "integrity": "sha512-IbZwiVG0iN/BwZB0XTA45uNyv3DxDByL9TK0jI++hyWtnV68BgNKl0r+iNLsIEDasN3IntHaeaQbiVfaQVnLdQ==", "dependencies": { "promise-nodeify": ">= 0.1", "proxying-agent": ">= 2.1" }, "engines": { "node": ">= 6.0" } },

...

"node_modules/proxying-agent": { "version": "2.4.0", "resolved": "https://registry.npmjs.org/proxying-agent/-/proxying-agent-2.4.0.tgz", "integrity": "sha512-b9vDqIcViJZVsWPpQlp9Py74u+Wqd0a+kMkkg7zX58mwNtrNbOChNlRTM7lUrlpiwNzyJCV8+5D8rnZYLDFh7Q==", "engines": { "node": ">=0.8.0" } },

Thanks for any help.