NREL / OpenStudio-PAT

The Parametric Analysis Tool (PAT) is part of the OpenStudio collection of software tools.
https://www.openstudio.net/
Other
27 stars 13 forks source link

Upgrade browser-sync to v2.27.10 #214

Closed bstein closed 2 years ago

bstein commented 2 years ago

~2.13.0 → ~2.27.10 Required for Node v18 (#197)

The following warning is printed when when attempting to use browser-sync v2.13.0 with Node v18: (node:89870) [DEP0066] DeprecationWarning: OutgoingMessage.prototype._headers is deprecated     at SendStream.isFresh (/Users/baileystein/OpenStudio-PAT/node_modules/send/index.js:372:43)     at SendStream.send (/Users/baileystein/OpenStudio-PAT/node_modules/send/index.js:539:13)     at onstat (/Users/baileystein/OpenStudio-PAT/node_modules/send/index.js:624:10)     at FSReqCallback.oncomplete (node:fs:212:5)

Upon further investigation, the send@0.13.2 package is a dependency of serve-static@1.10.3, which is a dependency of browser-sync@2.13.0.

browser-sync v2.27.10 uses serve-static@1.13.2 per its package.json, which uses send@0.16.2 per its package.json. send@0.16.2 should not produce this deprecation warning.