You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ node --trace-deprecation src/zip.js
(node:59666) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated.
at Transform.normalize [as _transform] (/node_modules/vinyl-fs/lib/dest/prepare.js:38:32)
at Transform._write (/node_modules/streamx/index.js:981:12)
at WritableState.update (/node_modules/streamx/index.js:187:16)
at WritableState.updateWriteNT (/node_modules/streamx/index.js:550:10)
at process.processTicksAndRejections (node:internal/process/task_queues:77:11)
Please provide the following information:
OS & version [e.g. MacOS Catalina 10.15.4]: n/a
node version (run node -v): v22.3.0
npm version (run npm -v): 10.8.1
gulp version (run gulp -v): CLI version: 3.0.0 / Local version: 5.0.0
Before you open this issue, please complete the following tasks:
What were you expecting to happen?
No deprecation warning.
What actually happened?
Deprecation warning for the fs.Stats constructor.
Please give us a sample of your gulpfile
Terminal output / screenshots
Please provide the following information:
node -v
): v22.3.0npm -v
): 10.8.1gulp -v
): CLI version: 3.0.0 / Local version: 5.0.0Additional information
API was deprecated in Node v22.0.0 - https://nodejs.org/api/deprecations.html#DEP0180:
Docs also mention:
Not sure what the alternative is here. Maybe just use fs.statSync() or return an empty object if the file doesn't exist?
The text was updated successfully, but these errors were encountered: