clasp icon indicating copy to clipboard operation
clasp copied to clipboard

(node:17396) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

Open JeanRemiDelteil opened this issue 6 years ago • 7 comments

Expected Behavior

No deprecation warrning when using clasp push

Actual Behavior

when using clasp push we have a deprecation warrning on Node v12.3.1

(node:17396) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated

Steps to Reproduce the Problem

  1. update Node to the current version (12.x)
  2. use clasp push in a project

Specifications

  • Node version (node -v): v12.3.1
  • Version (clasp -v): 2.1.0
  • OS (Mac/Linux/Windows): Windows10

JeanRemiDelteil avatar Jul 02 '19 13:07 JeanRemiDelteil

@JeanRemiDelteil just to be certain, this issue occurs with the latest npm? Have you tried using a local build from the current master of this repository?

PopGoesTheWza avatar Jul 02 '19 14:07 PopGoesTheWza

For reference: DEP0066: OutgoingMessage.prototype._headers, OutgoingMessage.prototype._headerNames

@JeanRemiDelteil @grant I was able to reproduce this issue on Mac OS, using Node 12.3.1 and npm's [email protected] I then used a local build from this repository and the deprecation warning no longer occured.

This issue is likely to be closed with next release of clasp.

PopGoesTheWza avatar Jul 03 '19 08:07 PopGoesTheWza

Great !

JeanRemiDelteil avatar Jul 03 '19 13:07 JeanRemiDelteil

Note: I've published @google/[email protected]

grant avatar Jul 03 '19 19:07 grant

any updates on this? I'm still seeing "(node:...) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated"

koconnor3 avatar Jan 30 '20 18:01 koconnor3

@koconnor3 what version of nodejs and clasp are you using?

PopGoesTheWza avatar Feb 14 '20 03:02 PopGoesTheWza

@koconnor3 what version of nodejs and clasp are you using?

my bad, looks like I had only updated clasp on my other machine 🤦‍♂️

koconnor3 avatar Feb 14 '20 14:02 koconnor3