Calling fs.Stats class directly with Stats() or new Stats() is deprecated due to being internals, not intended for public use.
It's used all over including for example in gulp/vinyl-fs: https://github.com/gulpjs/vinyl-fs/issues/356, and it's not clear to me what an alternative could be. Would it make sense to patch it in this library?
The fs.Stats constructor function is marked as deprecated as of Node v22.0.0 - https://nodejs.org/api/deprecations.html#DEP0180:
It's used all over including for example in gulp/vinyl-fs: https://github.com/gulpjs/vinyl-fs/issues/356, and it's not clear to me what an alternative could be. Would it make sense to patch it in this library?