Remove use of fs.Stats constructor
Starting in Node.js 22, use of the fs.Stats constructor generates a Node.js warning (which appears in the user's console). In Node.js 20, the following recommendation was added to the documentation:
Stat objects are not to be created directly using the new keyword.
Antora should replace the call to fs.Stats constructor with a custom object. Unfortunately, gulp-vinyl-zip also uses fs.Stats, so the warning cannot be entirely removed by changes to Antora. That either needs to be addressed in gulp-vinly-zip or the dependency on gulp-vinyl-zip needs to be removed (see #1087).
In the meantime, this warning can be suppressed using the following environment variable:
NODE_NO_WARNINGS=1