hparra / gulp-rename

Rename files easily
MIT License
692 stars 73 forks source link

(node:167518) [DEP0180] DeprecationWarning: fs.Stats constructor is deprecated with nodejs 22.9.0 #105

Closed gabrielpoetaa closed 1 day ago

gabrielpoetaa commented 1 month ago

fs.Stats deprecation warning on Nodejs 22.9.0.

Running a gulp task with gulp-rename in it leads to a fs.Stats deprecation warning message


Description

Whenever I run a gulp.series that includes gulp-rename, I receive a deprecation warning related to fs.Stats. The script executes correctly, and the file renaming works as expected. However, I noticed that this deprecation warning appears when using Node.js version 22.9.0. I tested it with versions 16.16.0 and 21.7.3, and the warning did not occur in those cases.

Steps to Reproduce

  1. Install Nodejs v.22.9.0
  2. Install Gulp
  3. Install dependencies
  4. Run task

Expected Behavior

No warning messages.

Actual Behavior

fs.Stats deprecation warning message

Environment

Screenshot of this issue

image

yocontra commented 1 day ago

This is a ticket for vinyl-fs which I believe has been opened already, going to close this since its not related to this package